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

     1  ---
     2  schema: |-
     3    definition user {}
     4  
     5    definition organization {
     6    	relation with_container: container
     7    	permission entitled_service = with_container->view
     8    }
     9  
    10    definition granted_service {
    11    	relation arbiter: organization#with_container
    12    	permission service1 = arbiter->entitled_service
    13    }
    14  
    15    definition container {
    16    	relation viewer: user
    17    	permission view = viewer
    18    }
    19  
    20  relationships: |-
    21    container:s1#viewer@user:u1
    22    container:s1#viewer@user:u2
    23    organization:o1#with_container@container:s1
    24    granted_service:gs1#arbiter@organization:o1#with_container
    25  assertions:
    26    assertTrue:
    27      - "granted_service:gs1#service1@user:u1"
    28      - "granted_service:gs1#service1@user:u2"
    29    assertFalse: []