-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathtuple-test-cases.yaml
More file actions
24 lines (23 loc) · 1.13 KB
/
tuple-test-cases.yaml
File metadata and controls
24 lines (23 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
config:
inherit-env: true
tests:
001 - it successfully writes tuples to a store:
command: fga tuple write --file=./tests/fixtures/basic-tuples.json --max-tuples-per-write=1 --max-parallel-requests=1 --store-id=$(./tests/scripts/test-data/get-store-id.sh) --model-id=$(./tests/scripts/test-data/get-model-id.sh)
exit-code: 0
stdout:
json:
successful.0.user: "user:anne"
002 - it successfully deletes tuples from a store:
command: fga tuple delete --file=./tests/fixtures/basic-tuples.json --max-tuples-per-write=1 --max-parallel-requests=1 --store-id=$(./tests/scripts/test-data/get-store-id.sh) --model-id=$(./tests/scripts/test-data/get-model-id.sh)
exit-code: 0
stdout:
json:
successful.0.user: "user:anne"
003 - it shows only counts when hide-imported-tuples is true:
command: fga tuple write --file=./tests/fixtures/basic-tuples.json --hide-imported-tuples --store-id=$(./tests/scripts/test-data/get-store-id.sh) --model-id=$(./tests/scripts/test-data/get-model-id.sh)
exit-code: 0
stdout:
json:
total_count: "1"
successful_count: "1"
failed_count: "0"