From 542b9d143da57bcb3894f730c9ca2200aa7b89cb Mon Sep 17 00:00:00 2001 From: gururajarao79 Date: Fri, 22 Nov 2024 14:28:41 +0100 Subject: phase1 opa pdp changes For details on scope and implementation, please check. https://lf-onap.atlassian.net/wiki/spaces/DW/pages/51150925/OPA+PDP Code Coverage Total: 70.8% Issue-ID: POLICY-5156 Change-Id: Ied07ee1596e9f447183fb715baaa68c704a9fe99 Signed-off-by: gururajarao79 --- test/policies/data/organization/data.json | 32 +++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 test/policies/data/organization/data.json (limited to 'test/policies/data/organization/data.json') diff --git a/test/policies/data/organization/data.json b/test/policies/data/organization/data.json new file mode 100644 index 0000000..35fe4a1 --- /dev/null +++ b/test/policies/data/organization/data.json @@ -0,0 +1,32 @@ +{ + "acls": [ + { + "user": "alice", + "actions": [ + "edit", + "read" + ], + "component": "component_A", + "project": "project_A", + "organization": "org_A" + }, + { + "user": "bob", + "actions": ["read"], + "organization": "org_A" + }, + { + "user": "bob", + "action": ["edit"], + "component": "component_A", + "project": "project_B", + "organization": "org_A" + }, + { + "user": "charlie", + "action": ["read"], + "project": "project_B", + "organization": "org_A" + } + ] +} -- cgit 1.2.3-korg