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

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