github.com/authzed/spicedb@v1.32.1-0.20240520085336-ebda56537386/internal/services/integrationtesting/testconfigs/public.yaml (about) 1 --- 2 schema: >- 3 definition test/user {} 4 5 definition test/anotherkindofuser {} 6 7 definition test/resource { 8 relation editor: test/user 9 relation viewer: test/user | test/user:* | test/anotherkindofuser | test/anotherkindofuser:* 10 11 permission view = viewer + editor 12 } 13 relationships: | 14 test/resource:first#editor@test/user:editordude 15 test/resource:first#viewer@test/user:somegal 16 test/resource:first#viewer@test/user:* 17 test/resource:first#viewer@test/anotherkindofuser:editordude 18 assertions: 19 assertTrue: 20 - "test/resource:first#view@test/user:editordude" 21 - "test/resource:first#editor@test/user:editordude" 22 - "test/resource:first#view@test/user:somegal" 23 - "test/resource:first#view@test/user:editordude" 24 - "test/resource:first#view@test/user:anotheruser" 25 - "test/resource:first#view@test/user:aseconduser" 26 - "test/resource:first#view@test/user:athirduser" 27 assertFalse: 28 - "test/resource:second#view@test/user:editordude" 29 - "test/resource:second#view@test/user:anotheruser" 30 - "test/resource:second#view@test/user:aseconduser" 31 - "test/resource:second#view@test/user:athirduser" 32 - "test/resource:first#editor@test/user:somegal" 33 - "test/resource:first#editor@test/user:anotheruser" 34 - "test/resource:first#editor@test/anotherkindofuser:editordude" 35 - "test/resource:first#viewer@test/anotherkindofuser:anotheruser" 36 - "test/resource:first#viewer@test/anotherkindofuser:aseconduser" 37 - "test/resource:first#viewer@test/anotherkindofuser:athirduser"