aboutsummaryrefslogtreecommitdiffstats
path: root/policy-management
diff options
context:
space:
mode:
Diffstat (limited to 'policy-management')
-rw-r--r--policy-management/pom.xml10
-rw-r--r--policy-management/src/main/java/org/onap/policy/drools/server/restful/RestManager.java3
-rw-r--r--policy-management/src/main/java/org/onap/policy/drools/system/PolicyEngine.java4
-rw-r--r--policy-management/src/main/server/config/system.properties12
4 files changed, 21 insertions, 8 deletions
diff --git a/policy-management/pom.xml b/policy-management/pom.xml
index b01668b0..63914922 100644
--- a/policy-management/pom.xml
+++ b/policy-management/pom.xml
@@ -257,6 +257,11 @@
</dependency>
<dependency>
+ <groupId>org.eclipse.persistence</groupId>
+ <artifactId>org.eclipse.persistence.jpa</artifactId>
+ </dependency>
+
+ <dependency>
<groupId>org.mariadb.jdbc</groupId>
<artifactId>mariadb-java-client</artifactId>
</dependency>
@@ -270,6 +275,11 @@
<groupId>org.hibernate.common</groupId>
<artifactId>hibernate-commons-annotations</artifactId>
</dependency>
+
+ <dependency>
+ <groupId>commons-io</groupId>
+ <artifactId>commons-io</artifactId>
+ </dependency>
</dependencies>
diff --git a/policy-management/src/main/java/org/onap/policy/drools/server/restful/RestManager.java b/policy-management/src/main/java/org/onap/policy/drools/server/restful/RestManager.java
index d877f1e9..379ca6a2 100644
--- a/policy-management/src/main/java/org/onap/policy/drools/server/restful/RestManager.java
+++ b/policy-management/src/main/java/org/onap/policy/drools/server/restful/RestManager.java
@@ -2299,6 +2299,7 @@ public class RestManager {
@GET
@Path("engine/tools/loggers/{logger}")
+ @Produces(MediaType.TEXT_PLAIN)
@ApiOperation(
value="logging level of a logger"
)
@@ -2326,6 +2327,8 @@ public class RestManager {
@PUT
@Path("engine/tools/loggers/{logger}/{level}")
+ @Produces(MediaType.TEXT_PLAIN)
+ @Consumes(MediaType.TEXT_PLAIN)
@ApiOperation(
value="sets the logger level",
notes="Please use the SLF4J logger levels"
diff --git a/policy-management/src/main/java/org/onap/policy/drools/system/PolicyEngine.java b/policy-management/src/main/java/org/onap/policy/drools/system/PolicyEngine.java
index d7e0ecdd..bfda2450 100644
--- a/policy-management/src/main/java/org/onap/policy/drools/system/PolicyEngine.java
+++ b/policy-management/src/main/java/org/onap/policy/drools/system/PolicyEngine.java
@@ -429,11 +429,11 @@ class PolicyEngineManager implements PolicyEngine {
defaultConfig.put(PolicyProperties.PROPERTY_HTTP_SERVER_SERVICES + "." +
TELEMETRY_SERVER_DEFAULT_NAME +
PolicyProperties.PROPERTY_HTTP_SWAGGER_SUFFIX,
- true);
+ "" + Boolean.TRUE);
defaultConfig.put(PolicyProperties.PROPERTY_HTTP_SERVER_SERVICES + "." +
TELEMETRY_SERVER_DEFAULT_NAME +
PolicyProperties.PROPERTY_MANAGED_SUFFIX,
- false);
+ "" + Boolean.FALSE);
return defaultConfig;
}
diff --git a/policy-management/src/main/server/config/system.properties b/policy-management/src/main/server/config/system.properties
index 6456ef53..a968b103 100644
--- a/policy-management/src/main/server/config/system.properties
+++ b/policy-management/src/main/server/config/system.properties
@@ -22,17 +22,17 @@
# jmx
-com.sun.management.jmxremote.port = 9991
-com.sun.management.jmxremote.authenticate = false
-com.sun.management.jmxremote.ssl = false
+com.sun.management.jmxremote.port=9991
+com.sun.management.jmxremote.authenticate=false
+com.sun.management.jmxremote.ssl=false
# certs
javax.net.ssl.keyStore=/opt/app/policy/etc/ssl/policy-keystore
-javax.net.ssl.keyStorePassword = ${{KEYSTORE_PASSWD}}
+javax.net.ssl.keyStorePassword=${{KEYSTORE_PASSWD}}
javax.net.ssl.trustStore=/opt/app/policy/etc/ssl/policy-keystore
-javax.net.ssl.trustStorePassword = ${{KEYSTORE_PASSWD}}
+javax.net.ssl.trustStorePassword=${{KEYSTORE_PASSWD}}
# standard logging
-logback.configurationFile=config/logback.xml \ No newline at end of file
+logback.configurationFile=config/logback.xml