You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+27-13Lines changed: 27 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -303,6 +303,13 @@ tests:
303
303
assertions:
304
304
member: true
305
305
moderator: false
306
+
# checks can also be defined for multiple users sharing the same expectation
307
+
- object: group:employees
308
+
users:
309
+
- user: user:3
310
+
- user: user:4
311
+
assertions:
312
+
member: true
306
313
```
307
314
308
315
If using `output-file`, the response will be written to the specified file on disk. If the desired file already exists, you will be prompted to overwrite the file.
@@ -558,19 +565,26 @@ tests: # required
558
565
- name: test-1
559
566
description: testing that the model works # optional
560
567
# tuple_file: ./tuples.json # tuples that would apply per test
561
-
tuples:
562
-
- user: user:anne
563
-
relation: owner
564
-
object: folder:1
565
-
check: # a set of checks to run
566
-
- user: user:anne
567
-
object: folder:1
568
-
assertions:
569
-
# a set of expected results for each relation
570
-
can_view: true
571
-
can_write: true
572
-
can_share: false
573
-
list_objects: # a set of list objects to run
568
+
tuples:
569
+
- user: user:anne
570
+
relation: owner
571
+
object: folder:1
572
+
check: # a set of checks to run
573
+
- user: user:anne
574
+
object: folder:1
575
+
assertions:
576
+
# a set of expected results for each relation
577
+
can_view: true
578
+
can_write: true
579
+
can_share: false
580
+
# checks can group multiple users that share the same expected results
0 commit comments