github.com/authzed/spicedb@v1.32.1-0.20240520085336-ebda56537386/internal/services/integrationtesting/testconfigs/nestedrecursive.yaml (about)

     1  ---
     2  schema: |+
     3      definition srrr/user {}
     4  
     5      definition srrr/resource {
     6      	relation viewer: srrr/group#member
     7      }
     8  
     9      definition srrr/group {
    10      	relation direct_member: srrr/user | srrr/group#member | srrr/group#manager
    11      	relation manager: srrr/user | srrr/group#member | srrr/group#manager
    12          permission member = direct_member + manager
    13      }
    14  
    15  relationships: >-
    16      srrr/group:megagroup#manager@srrr/user:someguy#...
    17  
    18      srrr/group:supergroup#manager@srrr/group:megagroup#member
    19  
    20      srrr/group:subgroup#direct_member@srrr/group:supergroup#member
    21  
    22      srrr/resource:someresource#viewer@srrr/group:subgroup#member
    23  assertions:
    24      assertTrue: []
    25      assertFalse: []