Rework the activate pdp group payload
Rework the payload which triggers the activate pdp group policy API
based on the new requirement.
Issue-ID: CLAMP-646
Change-Id: I9bd7e3f2d1907c7e22c5435c792910b8245780b2
Signed-off-by: xuegao <xg353y@intl.att.com>
diff --git a/src/test/resources/tosca/pdp-group-policy-payload.json b/src/test/resources/tosca/pdp-group-policy-payload.json
index ad3a5b4..93a8545 100644
--- a/src/test/resources/tosca/pdp-group-policy-payload.json
+++ b/src/test/resources/tosca/pdp-group-policy-payload.json
@@ -1,16 +1,34 @@
{
- "policies": [
+ "groups": [
{
- "policy-id": "GuardOpPolicyTest"
+ "name": "pdpGroup2",
+ "deploymentSubgroups": [
+ {
+ "pdpType": "pdpSubgroup2",
+ "action": "POST",
+ "policies": [
+ {
+ "name": "onap.policies.controlloop.Operational",
+ "version": "1.0.0"
+ }
+ ]
+ }
+ ]
},
{
- "policy-id": "guard.minmax.new"
- },
- {
- "policy-id": "guard.frequency.new"
- },
- {
- "policy-id": "configPolicyTest"
+ "name": "pdpGroup1",
+ "deploymentSubgroups": [
+ {
+ "pdpType": "pdpSubgroup1",
+ "action": "POST",
+ "policies": [
+ {
+ "name": "onap.policies.monitoring.test",
+ "version": "1.0.0"
+ }
+ ]
+ }
+ ]
}
]
}
\ No newline at end of file