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

     1  ---
     2  schema: >-
     3    definition test/user {}
     4  
     5    definition test/resource {
     6      relation viewer: test/user | test/user:*
     7      relation maybebanned: test/user | test/user:*
     8      relation notreallybanned: test/user | test/user:*
     9  
    10      permission possiblybanned = maybebanned - notreallybanned
    11      permission view = viewer - possiblybanned
    12    }
    13  relationships: |
    14    test/resource:first#viewer@test/user:*
    15    test/resource:first#maybebanned@test/user:*
    16    test/resource:first#notreallybanned@test/user:sarah
    17  assertions:
    18    assertTrue:
    19      - "test/resource:first#view@test/user:sarah"
    20    assertFalse:
    21      - "test/resource:first#view@test/user:tom"