github.com/authzed/spicedb@v1.32.1-0.20240520085336-ebda56537386/internal/services/integrationtesting/testconfigs/linuxfoundation.yaml (about) 1 --- 2 schema: |+ 3 definition linux/user {} 4 5 definition linux/list { 6 relation member: linux/user 7 } 8 9 definition linux/talk { 10 relation speaker: linux/user 11 relation positivefeedback: linux/user 12 relation negativefeedback: linux/user 13 } 14 15 definition linux/event { 16 relation attendee: linux/user 17 relation talk: linux/talk 18 relation relatedevent: linux/event 19 relation blacklist: linux/list#member 20 relation invitee: linux/user 21 22 permission speaker = talk->speaker 23 permission positivelyratedspeaker = talk->positivefeedback 24 permission renegadespeaker = relatedevent->positivelyratedspeaker & blacklist->member 25 permission invited = (invitee + relatedevent->speaker) - blacklist->member 26 } 27 28 relationships: >- 29 linux/event:kubecon19#attendee@linux/user:well_rated_speaker#... 30 31 linux/event:kubecon19#attendee@linux/user:poorly_rated_speaker#... 32 33 linux/event:kubecon19#attendee@linux/user:previous_attendee#... 34 35 linux/event:kubecon19#talk@linux/talk:k8sintro#... 36 37 linux/talk:k8sintro#speaker@linux/user:well_rated_speaker#... 38 39 linux/talk:k8sintro#positivefeedback@linux/user:well_rated_speaker#... 40 41 linux/talk:k8sintro#speaker@linux/user:poorly_rated_speaker#... 42 43 linux/talk:k8sintro#negativefeedback@linux/user:poorly_rated_speaker#... 44 45 linux/event:kubecon20#relatedevent@linux/event:kubecon19#... 46 47 linux/event:kubecon20#invitee@linux/user:directly_invited#... 48 49 linux/event:kubecon20#invitee@linux/user:villain#... 50 51 linux/event:kubecon20#talk@linux/talk:advancedk8s#... 52 53 linux/talk:advancedk8s#speaker@linux/user:well_rated_speaker#... 54 55 linux/event:kubecon19#blacklist@linux/list:globalblacklist#member 56 57 linux/event:kubecon20#blacklist@linux/list:globalblacklist#member 58 59 linux/list:globalblacklist#member@linux/user:villain#... 60 61 linux/event:kubecon19#talk@linux/talk:blackhat#... 62 63 linux/talk:blackhat#speaker@linux/user:villain#... 64 65 linux/talk:blackhat#positivefeedback@linux/user:villain#... 66 67 assertions: 68 assertTrue: 69 - "linux/event:kubecon20#speaker@linux/user:well_rated_speaker#..." 70 - "linux/event:kubecon20#invited@linux/user:well_rated_speaker#..." 71 assertFalse: 72 - "linux/event:kubecon20#invited@linux/user:villain#..."