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

     1  ---
     2  schema: >-
     3    definition test/user {}
     4  
     5    definition test/resource {
     6      relation viewer: test/user | test/user:*
     7    }
     8  relationships: |
     9    test/resource:first#viewer@test/user:*
    10    test/resource:first#viewer@test/user:concreteguy
    11  assertions:
    12    assertTrue:
    13      - "test/resource:first#viewer@test/user:concreteguy"
    14      - "test/resource:first#viewer@test/user:anotheruser"
    15      - "test/resource:first#viewer@test/user:aseconduser"
    16      - "test/resource:first#viewer@test/user:athirduser"