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

     1  ---
     2  schema: >-
     3    definition test/user {}
     4  
     5    definition test/resource {
     6      relation viewer: test/user
     7      relation banned: test/user | test/user:*
     8  
     9      permission view = viewer - banned
    10    }
    11  relationships: |
    12    test/resource:first#banned@test/user:*
    13    test/resource:first#viewer@test/user:somegal
    14  
    15    test/resource:second#banned@test/user:otherperson
    16    test/resource:second#viewer@test/user:somegal
    17  assertions:
    18    assertTrue:
    19      - "test/resource:first#viewer@test/user:somegal"
    20      - "test/resource:second#viewer@test/user:somegal"
    21    assertFalse:
    22      - "test/resource:first#view@test/user:editordude"
    23      - "test/resource:first#view@test/user:anotheruser"
    24      - "test/resource:first#view@test/user:aseconduser"
    25      - "test/resource:first#view@test/user:athirduser"
    26      - "test/resource:first#view@test/user:somegal"
    27      - "test/resource:second#view@test/user:otherperson"