github.com/authzed/spicedb@v1.32.1-0.20240520085336-ebda56537386/internal/services/integrationtesting/testconfigs/wildcardwithnestedexclusions.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
     8      relation notreallybanned: 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:tom
    16    test/resource:first#maybebanned@test/user:sarah
    17    test/resource:first#notreallybanned@test/user:sarah
    18  assertions:
    19    assertTrue:
    20      - "test/resource:first#view@test/user:sarah"
    21    assertFalse:
    22      - "test/resource:first#view@test/user:tom"