Leave xacml-pdp REST server always running 12/122912/1
authorJim Hahn <jrh3@att.com>
Fri, 6 Aug 2021 20:57:45 +0000 (16:57 -0400)
committerJorge Hernandez <jorge.hernandez-herrero@att.com>
Sat, 7 Aug 2021 19:57:09 +0000 (19:57 +0000)
commit2670cce1b59839033aa233d72e51f0f31cc4b6e1
treeffc40a715dcd892d2377fdd5606ce905ff9f0161
parentc640bfeee6bb9f8062704acc151dc63377963bc6
Leave xacml-pdp REST server always running

Liveness checks depend on the xacml-pdp REST server being available.
However, the REST server is only running when PAP puts it in an active
state.  Modified the code to always leave it running.

In a subsequent review, we should split the healthcheck REST service
onto its own port so it can be left running, while the other services
are started/stopped in response to PAP active/passive requests.

Issue-ID: POLICY-3531
Change-Id: I412064abaf91bb966d40adc46cee771b3a0a5dfc
Signed-off-by: Jim Hahn <jrh3@att.com>
(cherry picked from commit 031a0fe51dff21445034befc8a6d8732622acd07)
main/src/main/java/org/onap/policy/pdpx/main/XacmlState.java
main/src/main/java/org/onap/policy/pdpx/main/startstop/XacmlPdpActivator.java
main/src/test/java/org/onap/policy/pdpx/main/XacmlStateTest.java
main/src/test/java/org/onap/policy/pdpx/main/startstop/TestXacmlPdpActivator.java