github.com/authzed/spicedb@v1.32.1-0.20240520085336-ebda56537386/internal/services/integrationtesting/testconfigs/walkbackandforth.yaml (about) 1 --- 2 schema: >- 3 definition test/user {} 4 definition test/otherdocument { 5 relation viewer: test/user | test/document#viewer 6 permission view = viewer 7 } 8 definition test/document { 9 relation viewer: test/user | test/otherdocument#viewer 10 permission view = viewer 11 } 12 relationships: | 13 test/document:d1#viewer@test/user:tom 14 test/otherdocument:o2#viewer@test/user:jill 15 test/document:d3#viewer@test/user:frank 16 test/document:d1#viewer@test/otherdocument:o2#viewer 17 test/otherdocument:o2#viewer@test/document:d3#viewer 18 assertions: 19 assertTrue: 20 - "test/document:d1#view@test/user:tom" 21 - "test/document:d1#view@test/user:jill" 22 - "test/document:d1#view@test/user:frank" 23 - "test/otherdocument:o2#view@test/user:jill" 24 - "test/otherdocument:o2#view@test/user:frank" 25 - "test/document:d3#view@test/user:frank" 26 - "test/document:d1#view@test/otherdocument:o2#viewer" 27 - "test/otherdocument:o2#view@test/document:d3#viewer" 28 - "test/document:d1#view@test/document:d3#viewer" 29 assertFalse: 30 - "test/otherdocument:o2#view@test/user:tom" 31 - "test/document:d3#view@test/user:tom" 32 - "test/document:d3#view@test/user:jill"