aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/test/resources
diff options
context:
space:
mode:
authorJim Hahn <jrh3@att.com>2020-02-03 21:45:35 -0500
committerJim Hahn <jrh3@att.com>2020-02-03 22:11:29 -0500
commit96f3a97fe849c657c4afc7b0ba199a08cc0646c2 (patch)
tree3bd17de6e6b8e410facb2030251ead28cc29eb10 /main/src/test/resources
parented9690a42e5fd7007a91275a6ad208d1a7dafcaa (diff)
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 <jrh3@att.com> Change-Id: I7d18dad1a7500e1efb7074e89ddaca4b1d368965
Diffstat (limited to 'main/src/test/resources')
-rw-r--r--main/src/test/resources/e2e/deployPolicies.json4
-rw-r--r--main/src/test/resources/e2e/deployPoliciesReq2.json7
2 files changed, 9 insertions, 2 deletions
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