-
Notifications
You must be signed in to change notification settings - Fork 1
/
documentsScenario.json
34 lines (34 loc) · 1.21 KB
/
documentsScenario.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
"validationMode": "STRICT",
"policyStoreDescription": "Policy store for the Documents Scenario, created via avp-cli tool",
"name": "Documents Scenario",
"description": "This is a basic scenario with a document management platform schema and two policies.",
"schemaPath": "./scenarios/documentsScenario/schema.json",
"policies": [
{
"path": "./scenarios/documentsScenario/allow_policy.cedar",
"description": "Allow all users to view all documents"
},
{
"path": "./scenarios/documentsScenario/deny_policy.cedar",
"description": "Forbid user X from viewing any documents"
}
],
"tests": [
{
"path": "./scenarios/documentsScenario/allow_test_1.json",
"description": "User Daniel is allowed the ability to view (action) the Payslip (resource)",
"type": "allow"
},
{
"path": "./scenarios/documentsScenario/deny_test_1.json",
"description": "User xyz is denied the ability to view (action) the Payslip (resource)",
"type": "forbid"
},
{
"path": "./scenarios/documentsScenario/deny_test_2.json",
"description": "User Daniel is denied the ability to edit (action) the Payslip (resource)",
"type": "forbid"
}
]
}