Eliminate spurious notifications from PAP 78/107078/3
authorJim Hahn <jrh3@att.com>
Tue, 5 May 2020 00:13:11 +0000 (20:13 -0400)
committerJim Hahn <jrh3@att.com>
Tue, 5 May 2020 00:19:11 +0000 (20:19 -0400)
commit26df07d10d9b0a7e6e9e9ab2d9cc14ed735c0d1d
treead4887722c794b6e8b5b8b87ac894aaf60107803
parented81ba9cc8e54c3c2d8c70972a6307a1b5bbe86a
Eliminate spurious notifications from PAP

Tracked it down to the following sequence:
- policies were deployed to the pdp
- received a request to undeploy a policy
- generated a notification for the formerly deployed policy
  - this should not have been generated
- undeployed the policy
- received a response from the pdp indicating the policy had
  been undeployed
- generated a notification indicating the policy was undeployed

Removed the code that generated a notification when a policy is
initially moved from deployed to undeployed (or vice versa).

Issue-ID: POLICY-2539
Signed-off-by: Jim Hahn <jrh3@att.com>
Change-Id: If175974b5fa5ccda6a1e1ab8fa1326b263bb8005
main/src/main/java/org/onap/policy/pap/main/notification/PolicyCommonTracker.java
main/src/main/java/org/onap/policy/pap/main/notification/PolicyNotifier.java
main/src/test/java/org/onap/policy/pap/main/notification/PolicyCommonTrackerTest.java
main/src/test/java/org/onap/policy/pap/main/notification/PolicyNotifierTest.java