Add timestamp to Pdp records 74/122074/3
authorJim Hahn <jrh3@att.com>
Fri, 18 Jun 2021 20:03:04 +0000 (16:03 -0400)
committerAjith Sreekumar <ajith.sreekumar@bell.ca>
Tue, 22 Jun 2021 08:37:55 +0000 (08:37 +0000)
commitf144c7386aff063dc9f696cc2e1bbb393e9e3f93
tree26df0aaa4cdc551d83810bc85a93adfcb17ec5fd
parent9e01b2e7180f61d8a57e55fed6a2fa5619f9f947
Add timestamp to Pdp records

To support the case where multiple PAPs are running, added a timestamp
to the PDP records so the PAPs can all be kept in sync as far as when a
PDP was last responsive.

Issue-ID: POLICY-2898
Change-Id: Ia7e0fd17363ff5827564cbc1537e516156b7f53a
Signed-off-by: Jim Hahn <jrh3@att.com>
models-pdp/src/main/java/org/onap/policy/models/pdp/concepts/Pdp.java
models-pdp/src/main/java/org/onap/policy/models/pdp/persistence/concepts/JpaPdp.java
models-pdp/src/test/java/org/onap/policy/models/pdp/persistence/concepts/JpaPdpTest.java
models-pdp/src/test/resources/testdata/PdpGroups0.json
models-pdp/src/test/resources/testdata/PdpGroups0Update.json
models-pdp/src/test/resources/testdata/PdpGroupsForFiltering.json
models-pdp/src/test/resources/testdata/PdpGroupsNoPDPs.json