Leave xacml-pdp REST server always running 74/123174/1
authorJim Hahn <jrh3@att.com>
Fri, 6 Aug 2021 20:57:45 +0000 (16:57 -0400)
committerJim Hahn <jrh3@att.com>
Fri, 6 Aug 2021 21:01:08 +0000 (17:01 -0400)
commit031a0fe51dff21445034befc8a6d8732622acd07
treeff7739543e26cb75519b67a514ff4e411339917f
parent39159b5a308f5da96f48a3e9d8cd17b42fa5fed4
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>
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