aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/test/resources/simpleDeploy/createGroupsDelSub.json
diff options
context:
space:
mode:
authorJim Hahn <jrh3@att.com>2019-06-04 17:27:31 -0400
committerJim Hahn <jrh3@att.com>2019-06-04 18:06:49 -0400
commit23b2730941fff26082de9e8a308e1a29758c96a5 (patch)
tree5aefc3af87b59109d380d60e7290fb7fc773ea6a /main/src/test/resources/simpleDeploy/createGroupsDelSub.json
parent6ece57498b8eccbe8e4b1d76f7116592b933f7c3 (diff)
Undeploy policies when subgroup is deleted
When a subgroup is deleted via the PDP Group create/update API, any PDPs in the subgroup should have all of its policies undeployed. In the process, refactored addOrUpdateSubGroups() out of updateGroup(). Change-Id: I0750802bfb133a655e38493a868744b512ca3fb4 Issue-ID: POLICY-1803 Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'main/src/test/resources/simpleDeploy/createGroupsDelSub.json')
-rw-r--r--main/src/test/resources/simpleDeploy/createGroupsDelSub.json64
1 files changed, 64 insertions, 0 deletions
diff --git a/main/src/test/resources/simpleDeploy/createGroupsDelSub.json b/main/src/test/resources/simpleDeploy/createGroupsDelSub.json
new file mode 100644
index 00000000..cba308ec
--- /dev/null
+++ b/main/src/test/resources/simpleDeploy/createGroupsDelSub.json
@@ -0,0 +1,64 @@
+{
+ "groups": [
+ {
+ "name": "groupA",
+ "version": "200.2.3",
+ "description": "my description",
+ "pdpGroupState": "ACTIVE",
+ "properties": {
+ "hello": "world"
+ },
+ "pdpSubgroups": [
+ {
+ "pdpType": "pdpTypeA",
+ "desiredInstanceCount": 1,
+ "properties": {
+ "abc": "def"
+ },
+ "supportedPolicyTypes": [
+ {
+ "name": "typeA",
+ "version": "100.2.3"
+ }
+ ],
+ "pdpInstances": [
+ {
+ "instanceId": "pdpA"
+ }
+ ],
+ "policies": [
+ {
+ "name": "policyA",
+ "version": "1.2.3"
+ }
+ ]
+ },
+ {
+ "pdpType": "pdpTypeB",
+ "desiredInstanceCount": 1,
+ "currentInstanceCount": 22,
+ "supportedPolicyTypes": [
+ {
+ "name": "typeA",
+ "version": "100.2.3"
+ }
+ ],
+ "pdpInstances": [
+ {
+ "instanceId": "pdpB"
+ },
+ {
+ "instanceId": "pdpD"
+ }
+ ],
+ "policies": [
+ {
+ "name": "policyA",
+ "version": "1.2.3"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+}