diff --git a/test.yaml b/test.yaml deleted file mode 100644 index bb61d5ca0..000000000 --- a/test.yaml +++ /dev/null @@ -1,69 +0,0 @@ -schema: >- - entity user {} - - entity organization { - relation group @group - relation document @document - relation administrator @user @group#member @group#manager - relation direct_member @user - - permission admin = administrator - permission member = direct_member or administrator or group.member - } - - entity group { - relation manager @user @group#member @group#manager - relation member @user @group#member @group#manager - - permission member = direct_member + manager - } - - entity document { - relation org @organization - - relation viewer @user @group#member @group#manager - relation manager @user @group#member @group#manager - - action edit = manager or org.admin - action view = viewer or manager or org.admin - } - -relationships: - - group:tech#manager@user:ashley - - group:tech#member@user:david - - group:marketing#manager@user:john - - group:marketing#member@user:jenny - - group:hr#manager@user:josh - - group:hr#member@user:joe - - group:tech#member@group:marketing#member - - group:tech#member@group:hr#member - - organization:acme#group@group:tech - - organization:acme#group@group:marketing - - organization:acme#group@group:hr - - organization:acme#document@document:product_database - - organization:acme#document@document:marketing_materials - - organization:acme#document@document:hr_documents - - organization:acme#administrator@group:tech#manager - - organization:acme#administrator@user:jenny - - document:product_database#manager@group:tech#manager - - document:product_database#viewer@group:tech#member - - document:marketing_materials#viewer@group:marketing#member - - document:hr_documents#manager@group:hr#manager - - document:hr_documents#viewer@group:hr#member - -scenarios: - - name: "scenario 1" - description: "test description" - checks: - - entity: "document:product_database" - subject: "user:ashley" - assertions: - edit: true - - entity: "document:hr_documents" - subject: "user:joe" - assertions: - view: true - - entity: "document:marketing_materials" - subject: "user:david" - assertions: - view: false \ No newline at end of file