github.com/authzed/spicedb@v1.32.1-0.20240520085336-ebda56537386/internal/services/integrationtesting/testconfigs/publicwithexclusion.yaml (about) 1 --- 2 schema: >- 3 definition test/user {} 4 5 definition test/resource { 6 relation viewer: test/user | test/user:* 7 relation banned: test/user 8 9 permission view = viewer - banned 10 } 11 relationships: | 12 test/resource:first#viewer@test/user:* 13 test/resource:first#banned@test/user:somegal 14 assertions: 15 assertTrue: 16 - "test/resource:first#view@test/user:editordude" 17 - "test/resource:first#view@test/user:anotheruser" 18 - "test/resource:first#view@test/user:aseconduser" 19 - "test/resource:first#view@test/user:athirduser" 20 assertFalse: 21 - "test/resource:first#view@test/user:somegal"