-
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.
Fix exclusion operation in Check dispatch to *always* request the ful…
…l set of results for the first branch
- Loading branch information
1 parent
c50701a
commit 684f857
Showing
4 changed files
with
327 additions
and
1 deletion.
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
32 changes: 32 additions & 0 deletions
32
internal/services/integrationtesting/arrowovermultiexclusion.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,32 @@ | ||
--- | ||
schema: |+ | ||
definition user {} | ||
definition group { | ||
relation direct_member: user | ||
relation excluded: user:* | ||
permission view = direct_member - excluded | ||
} | ||
definition resource { | ||
relation group: group | ||
permission view = group->view | ||
} | ||
relationships: >- | ||
resource:one#group@group:group1 | ||
resource:one#group@group:group2 | ||
group:group1#direct_member@user:fred | ||
group:group1#excluded@user:* | ||
group:group2#direct_member@user:fred | ||
assertions: | ||
assertTrue: | ||
- "group:group1#direct_member@user:fred" | ||
- "group:group2#direct_member@user:fred" | ||
- "group:group2#view@user:fred" | ||
assertFalse: | ||
- "group:group1#view@user:fred" |