From d91a3d8b9d6e2142c3258e72554234c7e4f31d29 Mon Sep 17 00:00:00 2001 From: Kevin McKiou Date: Wed, 1 Nov 2017 14:18:12 -0500 Subject: Modify state-management properties Patch 1: Removed hostPort and added server.TEST properties from feature-state-management.properties and modified associated code in IntegrityMonitor and properties in associated JUnit tests. Patch 2: Modified in response to comments from Jorge Hernandez. Including adding contant usage instead of strings and replacing generic exceptions with specific exceptions. Patch 3: Tied property constants to PolicyProperties. Added default property contants. Added error/warning log statemeents when something other than expected value is used. Add logging of all constant values for inspection in debugging. Issue-ID: POLICY-369 Change-Id: Ie2218b68761e0338642a2ed28ef840b1b6ece1a4 Signed-off-by: Kevin McKiou --- .../src/test/resources/feature-state-management.properties | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'feature-state-management/src/test/resources') diff --git a/feature-state-management/src/test/resources/feature-state-management.properties b/feature-state-management/src/test/resources/feature-state-management.properties index 64c7c660..56d18b54 100644 --- a/feature-state-management/src/test/resources/feature-state-management.properties +++ b/feature-state-management/src/test/resources/feature-state-management.properties @@ -25,7 +25,13 @@ javax.persistence.jdbc.user = sa javax.persistence.jdbc.password = # DroolsPDPIntegrityMonitor Properties -hostPort = 0.0.0.0:57692 +#Test interface host and port defaults may be overwritten here +http.server.services.TEST.host=0.0.0.0 +http.server.services.TEST.port=9981 +#These properties will default to the following if no other values are provided: +# http.server.services.TEST.restClasses=org.onap.policy.drools.statemanagement.IntegrityMonitorRestManager +# http.server.services.TEST.managed=false +# http.server.services.TEST.swagger=true #IntegrityMonitor Properties -- cgit 1.2.3-korg