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

     1  ---
     2  schema: |+
     3    definition user {}
     4  
     5    definition folder {
     6      relation parent: folder
     7      relation viewer: user
     8      permission view = viewer + parent->view
     9    }
    10  
    11    definition document {
    12      relation folder: folder
    13      permission view = folder->view
    14    }
    15  
    16  relationships: >-
    17    document:firstdoc#folder@folder:folder1
    18  
    19    document:firstdoc#folder@folder:folder2
    20  
    21    document:firstdoc#folder@folder:folder3
    22  
    23    folder:folder1#parent@folder:parentfolder
    24  
    25    folder:folder2#parent@folder:parentfolder
    26  
    27    folder:folder3#parent@folder:parentfolder
    28  
    29    folder:parentfolder#viewer@user:tom
    30  assertions:
    31    assertTrue:
    32      - "document:firstdoc#view@user:tom#..."