From 96f3a97fe849c657c4afc7b0ba199a08cc0646c2 Mon Sep 17 00:00:00 2001 From: Jim Hahn Date: Mon, 3 Feb 2020 21:45:35 -0500 Subject: Policy notifications appear to be reversed Modified the code as follows: Until all PDPs have responded (or been removed), no notifications for their associated policies will be generated. However, once a response has been received for every PDP, then a notification is generated. For deployed policies, the notifications will continue to be generated as PDPs move back and forth between the success and failed states, as long as the policy is not undeployed. For undeployed policies, on the other hand, no additional notifications will be generated once all PDPs have successfully undeployed the policy. However, until that point, like with deployed policies, notifications will continue to be generated as PDPs move back and forth between the success and failed states. Added notification verifications in deploy and undeploy end-to-end tests. Issue-ID: POLICY-2347 Signed-off-by: Jim Hahn Change-Id: I7d18dad1a7500e1efb7074e89ddaca4b1d368965 --- main/src/test/resources/e2e/deployPolicies.json | 4 ++-- main/src/test/resources/e2e/deployPoliciesReq2.json | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 main/src/test/resources/e2e/deployPoliciesReq2.json (limited to 'main/src/test/resources/e2e') diff --git a/main/src/test/resources/e2e/deployPolicies.json b/main/src/test/resources/e2e/deployPolicies.json index 90363ee7..d9cdfe83 100644 --- a/main/src/test/resources/e2e/deployPolicies.json +++ b/main/src/test/resources/e2e/deployPolicies.json @@ -1,7 +1,7 @@ { "groups": [ { - "name": "deployGroups", + "name": "deployPolicies", "pdpGroupState": "ACTIVE", "pdpSubgroups": [ { @@ -45,7 +45,7 @@ ], "policies": [ { - "name": "onap.restart.tca", + "name": "onap.restart.tcaB", "version": "1.0.0" } ] diff --git a/main/src/test/resources/e2e/deployPoliciesReq2.json b/main/src/test/resources/e2e/deployPoliciesReq2.json new file mode 100644 index 00000000..cd6ed4f6 --- /dev/null +++ b/main/src/test/resources/e2e/deployPoliciesReq2.json @@ -0,0 +1,7 @@ +{ + "policies": [ + { + "policy-id": "onap.restart.tcaB" + } + ] +} \ No newline at end of file -- cgit 1.2.3-korg