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

     1  ---
     2  schema: |-
     3    definition user {}
     4  
     5    definition organization {
     6    	relation entitled : service
     7    	permission service = entitled->service
     8    }
     9  
    10    definition project {
    11    	relation granted : granted_service
    12    	permission service = granted->service
    13    }
    14  
    15    definition granted_service {
    16    	relation arbiter : organization#entitled
    17    	relation granted : service
    18  
    19    	permission service1 = arbiter->service & granted->service
    20    	permission service2 = granted->service & arbiter->service
    21    }
    22  
    23    definition service {
    24    	relation servicer: user
    25  
    26    	permission service = servicer
    27    }
    28  
    29    definition widget {
    30    	relation project: project
    31    	permission service = project->service
    32    }
    33  relationships: |-
    34    service:s1#servicer@user:u1
    35    service:s1#servicer@user:u2
    36    organization:o1#entitled@service:s1
    37    granted_service:gs1#arbiter@organization:o1#entitled
    38    service:just_u1#servicer@user:u1
    39    granted_service:gs1#granted@service:just_u1
    40    project:p1#granted@granted_service:gs1
    41    widget:w1#project@project:p1
    42  assertions:
    43    assertTrue: []
    44    assertFalse: []