Send pdp-update if PDP response doesn't match DB 18/122218/3
authorJim Hahn <jrh3@att.com>
Wed, 23 Jun 2021 20:27:20 +0000 (16:27 -0400)
committerJim Hahn <jrh3@att.com>
Fri, 25 Jun 2021 19:23:39 +0000 (15:23 -0400)
commitf76d2083c9440bac3ac866b30b52a3abedb9292c
treeae9819860b4c257222567bdca5aabb96d84b62c0
parent1a4b8b99c9903847640363b36beceffcfe44e1ac
Send pdp-update if PDP response doesn't match DB

Because multiple PAPs can be updating the DB, it's possible that a
pdp-update sent by a PAP does not reflect the latest deployment data
in the DB. To solve that problem, modified code to compare any response
received from a PDP with what's in the DB, potentially generating a new
pdp-update (and/or pdp-state-change).

Issue-ID: POLICY-3426
Change-Id: I241994330d7645c0fffe66abc33de67d71d77250
Signed-off-by: Jim Hahn <jrh3@att.com>
main/src/main/java/org/onap/policy/pap/main/comm/PdpModifyRequestMap.java
main/src/main/java/org/onap/policy/pap/main/comm/PdpStatusMessageHandler.java
main/src/main/java/org/onap/policy/pap/main/comm/msgdata/RequestImpl.java
main/src/main/java/org/onap/policy/pap/main/comm/msgdata/RequestListener.java
main/src/main/java/org/onap/policy/pap/main/startstop/PapActivator.java
main/src/test/java/org/onap/policy/pap/main/comm/PdpModifyRequestMapTest.java
main/src/test/java/org/onap/policy/pap/main/comm/PdpStatusMessageHandlerTest.java [new file with mode: 0644]
main/src/test/java/org/onap/policy/pap/main/comm/msgdata/RequestImplTest.java