github.com/authzed/spicedb@v1.32.1-0.20240520085336-ebda56537386/internal/services/integrationtesting/testconfigs/aliasing.yaml (about) 1 --- 2 schema: >- 3 definition test/user {} 4 5 definition test/resource { 6 relation viewer: test/user 7 relation writer: test/user 8 9 permission both = viewer + writer 10 permission another_both = viewer + writer 11 12 permission view = viewer 13 permission another_view = viewer 14 15 permission one = view 16 permission two = one 17 18 permission emptyone = nil 19 permission emptytwo = nil 20 21 permission viewandempty = view + nil 22 } 23 relationships: | 24 test/resource:first#viewer@test/user:tom 25 test/resource:first#writer@test/user:jill 26 assertions: 27 assertTrue: 28 - "test/resource:first#view@test/user:tom" 29 - "test/resource:first#viewandempty@test/user:tom" 30 - "test/resource:first#both@test/user:tom" 31 - "test/resource:first#one@test/user:tom" 32 - "test/resource:first#two@test/user:tom" 33 - "test/resource:first#another_view@test/user:tom" 34 - "test/resource:first#another_both@test/user:tom" 35 - "test/resource:first#view@test/resource:first#view" 36 - "test/resource:first#another_view@test/resource:first#another_view" 37 - "test/resource:first#one@test/resource:first#one" 38 - "test/resource:first#two@test/resource:first#two" 39 - "test/resource:first#viewandempty@test/resource:first#view" 40 assertFalse: 41 - "test/resource:first#emptyone@test/user:tom" 42 - "test/resource:first#emptytwo@test/user:tom" 43 - "test/resource:first#view@test/resource:first#another_view" 44 - "test/resource:first#another_view@test/resource:first#view"