diff options
author | sebdet <sebastien.determe@intl.att.com> | 2021-03-25 18:19:29 +0100 |
---|---|---|
committer | sebdet <sebastien.determe@intl.att.com> | 2021-04-07 10:14:00 +0200 |
commit | 7f685aa342813c611b6e43d7b4a869c7454baddc (patch) | |
tree | b1668e028b2b68fa928f4819ab52b0f2849f31f9 /src/test/resources/example | |
parent | df451dc64de36d571efb4f0457a83bc94e8f3969 (diff) |
Rework the backend to support PDP updates
Rework Pdp payloads builder so that we can integrate different actions in the same batch + Add a new endpoint to support pdp payload&query to PEF from UI
Issue-ID: POLICY-2930
Issue-ID: POLICY-2931
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Change-Id: I3c933272419770595b706f6950f821220a76f778
Diffstat (limited to 'src/test/resources/example')
-rw-r--r-- | src/test/resources/example/policy/pdp-group-multi-policies-payload.json | 94 | ||||
-rw-r--r-- | src/test/resources/example/policy/pdp-group-policy-payload.json | 64 |
2 files changed, 158 insertions, 0 deletions
diff --git a/src/test/resources/example/policy/pdp-group-multi-policies-payload.json b/src/test/resources/example/policy/pdp-group-multi-policies-payload.json new file mode 100644 index 000000000..f8625ebbb --- /dev/null +++ b/src/test/resources/example/policy/pdp-group-multi-policies-payload.json @@ -0,0 +1,94 @@ +{ + "groups": [ + { + "name": "pdpgroup1", + "deploymentSubgroups": [ + { + "pdpType": "pdpsubgroup1", + "action": "POST", + "policies": [ + { + "name": "policyname1", + "version": "1.0.0" + } + ] + } + ] + }, + { + "name": "pdpgroup1", + "deploymentSubgroups": [ + { + "pdpType": "pdpsubgroup1", + "action": "POST", + "policies": [ + { + "name": "policyname2", + "version": "1.0.0" + } + ] + } + ] + }, + { + "name": "pdpgroup1", + "deploymentSubgroups": [ + { + "pdpType": "pdpsubgroup1", + "action": "POST", + "policies": [ + { + "name": "policyname1", + "version": "2.0.0" + } + ] + } + ] + }, + { + "name": "pdpgroup2", + "deploymentSubgroups": [ + { + "pdpType": "pdpsubgroup2", + "action": "DELETE", + "policies": [ + { + "name": "policyname1", + "version": "1.0.0" + } + ] + } + ] + }, + { + "name": "pdpgroup2", + "deploymentSubgroups": [ + { + "pdpType": "pdpsubgroup2", + "action": "POST", + "policies": [ + { + "name": "policyname1", + "version": "2.0.0" + } + ] + } + ] + }, + { + "name": "pdpgroup2", + "deploymentSubgroups": [ + { + "pdpType": "pdpsubgroup2", + "action": "DELETE", + "policies": [ + { + "name": "policyname2", + "version": "1.0.0" + } + ] + } + ] + } + ] +}
\ No newline at end of file diff --git a/src/test/resources/example/policy/pdp-group-policy-payload.json b/src/test/resources/example/policy/pdp-group-policy-payload.json new file mode 100644 index 000000000..44a48dacb --- /dev/null +++ b/src/test/resources/example/policy/pdp-group-policy-payload.json @@ -0,0 +1,64 @@ +{ + "groups": [ + { + "name": "pdpGroup2", + "deploymentSubgroups": [ + { + "pdpType": "pdpSubgroup2", + "action": "POST", + "policies": [ + { + "name": "opLegacyPolicy", + "version": "1.0.0" + } + ] + } + ] + }, + { + "name": "pdpGroup2", + "deploymentSubgroups": [ + { + "pdpType": "pdpSubgroup2", + "action": "POST", + "policies": [ + { + "name": "opPolicy", + "version": "1.0.0" + } + ] + } + ] + }, + { + "name": "pdpGroup2", + "deploymentSubgroups": [ + { + "pdpType": "pdpSubgroup1", + "action": "POST", + "policies": [ + { + "name": "configPolicyTest2", + "version": "1.0.0" + } + ] + } + ] + }, + { + "name": "pdpGroup1", + "deploymentSubgroups": [ + { + "pdpType": "pdpSubgroup1", + "action": "POST", + "policies": [ + { + "name": "configPolicyTest", + "version": "1.0.0" + } + ] + } + ] + } + ] +}
\ No newline at end of file |