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