-
Notifications
You must be signed in to change notification settings - Fork 286
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also adds cached dispatcher tests to the overall consistency test suite, and an more complicated lookup example
- Loading branch information
1 parent
bc40650
commit c67714b
Showing
5 changed files
with
173 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
schema: >- | ||
definition test/user {} | ||
definition test/resource { | ||
relation viewer: test/user | test/usergroup#member | test/usergroup#manager | ||
relation editor: test/user | test/usergroup#member | test/usergroup#manager | ||
relation creator: test/user | test/usergroup#member | test/usergroup#manager | ||
relation owner: test/user | test/usergroup#member | test/usergroup#manager | ||
permission view = viewer + editor + creator + owner | ||
} | ||
definition test/usergroup { | ||
relation direct_member: test/user | test/usergroup#member | test/usergroup#manager | test/usergroup#contributor | ||
relation contributor: test/user | test/usergroup#member | test/usergroup#contributor | test/usergroup#manager | ||
relation manager: test/user | test/usergroup#member | test/usergroup#manager | ||
permission member = direct_member + contributor + manager | ||
} | ||
relationships: | | ||
test/usergroup:productname#manager@test/user:an_eng_manager#... | ||
test/usergroup:productname#direct_member@test/user:an_engineer#... | ||
test/usergroup:applications#manager@test/user:an_eng_director#... | ||
test/usergroup:engineering#manager@test/user:cto#... | ||
test/usergroup:csuite#manager@test/user:ceo#... | ||
test/usergroup:csuite#direct_member@test/user:cto#... | ||
test/usergroup:other#direct_member@test/user:denied#... | ||
test/usergroup:engineering#direct_member@test/usergroup:applications#member | ||
test/usergroup:applications#direct_member@test/usergroup:productname#member | ||
test/usergroup:engineering#direct_member@test/usergroup:csuite#member | ||
test/resource:promserver#creator@test/user:an_engineer#... | ||
test/resource:promserver#viewer@test/usergroup:engineering#member | ||
test/resource:jira#viewer@test/usergroup:engineering#member | ||
test/resource:promserver#viewer@test/user:an_external_test/user#... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters