-
Notifications
You must be signed in to change notification settings - Fork 279
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add additional steelthread tests for LookupResources and fix issue in…
… LR2
- Loading branch information
1 parent
72304fe
commit aea320d
Showing
10 changed files
with
443 additions
and
31 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
45 changes: 45 additions & 0 deletions
45
internal/services/integrationtesting/testconfigs/directandindirect.yaml
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,45 @@ | ||
--- | ||
schema: |+ | ||
definition user {} | ||
definition organization { | ||
relation admin: user | ||
relation member: user | ||
permission is_member = member + admin | ||
} | ||
definition document { | ||
relation banned: user | ||
relation viewer: user | user:* | ||
relation org: organization | ||
permission edit = org->is_member | ||
permission view = (viewer - banned) + edit | ||
permission vsb = viewer - banned | ||
permission indirect_view = vsb + edit | ||
} | ||
relationships: | | ||
document:firstdoc#viewer@user:tom | ||
document:firstdoc#banned@user:fred | ||
document:firstdoc#org@organization:someorg | ||
organization:someorg#member@user:fred | ||
document:publicdoc#viewer@user:* | ||
document:publicdoc#banned@user:fred | ||
document:publicdoc#org@organization:someorg | ||
assertions: | ||
assertTrue: | ||
- "document:firstdoc#view@user:tom" | ||
- "document:firstdoc#view@user:fred" | ||
- "document:firstdoc#indirect_view@user:tom" | ||
- "document:firstdoc#indirect_view@user:fred" | ||
- "document:firstdoc#vsb@user:tom" | ||
- "document:publicdoc#view@user:tom" | ||
- "document:publicdoc#view@user:fred" | ||
- "document:publicdoc#indirect_view@user:tom" | ||
- "document:publicdoc#indirect_view@user:fred" | ||
- "document:publicdoc#vsb@user:tom" | ||
assertFalse: | ||
- "document:firstdoc#vsb@user:fred" | ||
- "document:publicdoc#vsb@user:fred" |
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
11 changes: 11 additions & 0 deletions
11
...ces/steelthreadtesting/steelresults/basic-lookup-resources-edit-page-size-16-results.yaml
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,11 @@ | ||
--- | ||
- - 'doc-90' | ||
- 'doc-91' | ||
- 'doc-92' | ||
- 'doc-93' | ||
- 'doc-94' | ||
- 'doc-95' | ||
- 'doc-96' | ||
- 'doc-97' | ||
- 'doc-98' | ||
- 'doc-99' |
87 changes: 87 additions & 0 deletions
87
...esults/basic-lookup-resources-indirect-without-other-permission-page-size-16-results.yaml
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,87 @@ | ||
--- | ||
- - 'doc-0' | ||
- 'doc-1' | ||
- 'doc-10' | ||
- 'doc-11' | ||
- 'doc-12' | ||
- 'doc-13' | ||
- 'doc-14' | ||
- 'doc-15' | ||
- 'doc-16' | ||
- 'doc-17' | ||
- 'doc-18' | ||
- 'doc-19' | ||
- 'doc-2' | ||
- 'doc-20' | ||
- 'doc-21' | ||
- 'doc-22' | ||
- - 'doc-23' | ||
- 'doc-24' | ||
- 'doc-25' | ||
- 'doc-26' | ||
- 'doc-27' | ||
- 'doc-28' | ||
- 'doc-29' | ||
- 'doc-3' | ||
- 'doc-30' | ||
- 'doc-31' | ||
- 'doc-32' | ||
- 'doc-33' | ||
- 'doc-34' | ||
- 'doc-35' | ||
- 'doc-36' | ||
- 'doc-37' | ||
- - 'doc-38' | ||
- 'doc-39' | ||
- 'doc-4' | ||
- 'doc-40' | ||
- 'doc-41' | ||
- 'doc-42' | ||
- 'doc-43' | ||
- 'doc-44' | ||
- 'doc-45' | ||
- 'doc-46' | ||
- 'doc-47' | ||
- 'doc-48' | ||
- 'doc-49' | ||
- 'doc-5' | ||
- 'doc-50' | ||
- 'doc-51' | ||
- - 'doc-52' | ||
- 'doc-53' | ||
- 'doc-54' | ||
- 'doc-55' | ||
- 'doc-56' | ||
- 'doc-57' | ||
- 'doc-58' | ||
- 'doc-59' | ||
- 'doc-6' | ||
- 'doc-60' | ||
- 'doc-61' | ||
- 'doc-62' | ||
- 'doc-63' | ||
- 'doc-64' | ||
- 'doc-65' | ||
- 'doc-66' | ||
- - 'doc-67' | ||
- 'doc-68' | ||
- 'doc-69' | ||
- 'doc-7' | ||
- 'doc-70' | ||
- 'doc-71' | ||
- 'doc-72' | ||
- 'doc-73' | ||
- 'doc-74' | ||
- 'doc-75' | ||
- 'doc-76' | ||
- 'doc-77' | ||
- 'doc-78' | ||
- 'doc-79' | ||
- 'doc-8' | ||
- 'doc-9' | ||
- - 'doc-9' | ||
- 'public-doc-0' | ||
- 'public-doc-1' | ||
- 'public-doc-3' | ||
- - 'public-doc-1' | ||
- 'public-doc-3' |
Oops, something went wrong.