github.com/authzed/spicedb@v1.32.1-0.20240520085336-ebda56537386/internal/services/integrationtesting/testconfigs/basicrbac.yaml (about) 1 --- 2 schema: |+ 3 definition example/user {} 4 5 definition example/document { 6 relation writer: example/user 7 relation reader: example/user 8 permission write = writer 9 permission view = reader + write 10 } 11 12 relationships: >- 13 example/document:firstdoc#writer@example/user:tom#... 14 15 example/document:firstdoc#reader@example/user:fred#... 16 17 example/document:seconddoc#reader@example/user:tom#... 18 assertions: 19 assertTrue: 20 - "example/document:firstdoc#write@example/user:tom#..." 21 - "example/document:firstdoc#view@example/user:tom#..." 22 - "example/document:firstdoc#view@example/user:fred#..." 23 - "example/document:seconddoc#view@example/user:tom#..." 24 assertFalse: 25 - "example/document:firstdoc#write@example/user:fred#..." 26 - "example/document:seconddoc#write@example/user:tom#..."