You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by sm...@apache.org on 2023/01/21 13:26:34 UTC

[directory-fortress-core] branch master updated: + overview hierarchical role test cases

This is an automated email from the ASF dual-hosted git repository.

smckinney pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/directory-fortress-core.git


The following commit(s) were added to refs/heads/master by this push:
     new 3a969098 + overview hierarchical role test cases
3a969098 is described below

commit 3a969098a1fe8629d15ff0fab09d8e5507cfc712
Author: Shawn McKinney <sm...@symas.com>
AuthorDate: Sat Jan 21 07:26:27 2023 -0600

    + overview hierarchical role test cases
---
 .../fortress/core/impl/README-TEST-CASES.md        | 46 ++++++++++++++++++++++
 1 file changed, 46 insertions(+)

diff --git a/src/test/java/org/apache/directory/fortress/core/impl/README-TEST-CASES.md b/src/test/java/org/apache/directory/fortress/core/impl/README-TEST-CASES.md
new file mode 100644
index 00000000..57ebd082
--- /dev/null
+++ b/src/test/java/org/apache/directory/fortress/core/impl/README-TEST-CASES.md
@@ -0,0 +1,46 @@
+# README TESTING
+
+## 1 - Hierarchical Roles
+
+### Sample Hierarchy - Graph
+
+```
+┌───────────────────────────────────────────────┐                               
+│A1                                             │                               
+└△─────────────────────────────────────────────△┘                               
+┌┴───────────────────────────────────────────┐┌┴─────────────────┐              
+│B2A1                                        ││B1A1              │              
+└△──────────────────────△───────────────────△┘└△────────────────△┘              
+┌┴────────────────────┐┌┴─────────────────┐┌┴──┴──────────────┐┌┴───────┐       
+│C4B2A1               ││C3B2A1            ││C2B1A1            ││C1B1A1  │       
+└△─────────△─────────△┘└△──────△─────────△┘└△──────△─────────△┘└△──────△┘       
+┌┴───────┐┌┴───────┐┌┴──┴────┐┌┴───────┐┌┴──┴────┐┌┴───────┐┌┴──┴────┐┌┴───────┐
+│D8C4B2A1││D7C4B2A1││D6C3B2A1││D5C3B2A1││D4C2B1A1││D3C2B1A1││D2C1B1A1││D1C1B1A1│
+└────────┘└────────┘└────────┘└────────┘└────────┘└────────┘└────────┘└────────┘
+```
+
+- In a top-down role hierarchy, privilege increases as we descend downward.
+- e.g. Assignees with role *D7C4B2A1* inherits all that are above: [ C4B2A1, B2A1, A1 ]
+- RBAC1 General role hierarchies supports multiple inheritance, from two or more parents.
+- e.g. Assignees with role *D4C2B1A1*: [ C3B2A1, C2B1A1,  B2A1, B1A1, A1 ]
+
+
+### Sample Hierarchy - Role: Parent(s)
+
+```
+A1
+B1A1: A1
+B2A1: A1
+C1B1A1: A1, B1A1
+C2B1A1: A1, B1A1
+C3B2A1: A1, B2A1
+C4B2A1: A1, B2A1
+D1C1B1A1: A1, B1A1, C1B1A1 
+D2C1B1A1: A1, B1A1, C1B1A1
+D3C2B1A1: A1, B1A1, C2B1A1
+D4C2B1A1: A1, B1A1, C2B1A1
+D5C3B2A1: A1, B2A1, C3B2A1
+D6C3B2A1: A1, B2A1, C3B2A1
+D7C4B2A1: A1, B2A1, C4B2A1
+D8C4B2A1: A1, B2A1, C4B2A1
+```