aboutsummaryrefslogtreecommitdiffstats
path: root/gui-server
diff options
context:
space:
mode:
Diffstat (limited to 'gui-server')
-rw-r--r--gui-server/src/main/java/org/onap/policy/gui/server/rest/ApexEditorRestController.java1
-rw-r--r--gui-server/src/test/java/org/onap/policy/gui/server/test/util/KeyStoreHelper.java2
-rw-r--r--gui-server/src/test/resources/application_http.yaml19
3 files changed, 21 insertions, 1 deletions
diff --git a/gui-server/src/main/java/org/onap/policy/gui/server/rest/ApexEditorRestController.java b/gui-server/src/main/java/org/onap/policy/gui/server/rest/ApexEditorRestController.java
index 3d7b49f..a4b92ef 100644
--- a/gui-server/src/main/java/org/onap/policy/gui/server/rest/ApexEditorRestController.java
+++ b/gui-server/src/main/java/org/onap/policy/gui/server/rest/ApexEditorRestController.java
@@ -33,7 +33,6 @@ public class ApexEditorRestController {
/**
* Strip /apex-editor prefix from Apex Editor rest calls.
*/
- @SuppressWarnings("java:S3752") // Suppress warning about RequestMapping without HTTP method.
@RequestMapping("/**")
public ModelAndView forwardApexEditorRest(ModelMap model, HttpServletRequest request) {
String targetUrl = request.getRequestURI().replaceFirst("^/apex-editor", "");
diff --git a/gui-server/src/test/java/org/onap/policy/gui/server/test/util/KeyStoreHelper.java b/gui-server/src/test/java/org/onap/policy/gui/server/test/util/KeyStoreHelper.java
index a4aabb8..6df8318 100644
--- a/gui-server/src/test/java/org/onap/policy/gui/server/test/util/KeyStoreHelper.java
+++ b/gui-server/src/test/java/org/onap/policy/gui/server/test/util/KeyStoreHelper.java
@@ -81,6 +81,8 @@ public class KeyStoreHelper {
* Exception class for KeyStoreHelper methods.
*/
public static class CouldNotLoadCertificateException extends java.lang.Exception {
+ private static final long serialVersionUID = 4858081258043045085L;
+
protected CouldNotLoadCertificateException(String errorMessage) {
super(errorMessage);
}
diff --git a/gui-server/src/test/resources/application_http.yaml b/gui-server/src/test/resources/application_http.yaml
new file mode 100644
index 0000000..24f3e8e
--- /dev/null
+++ b/gui-server/src/test/resources/application_http.yaml
@@ -0,0 +1,19 @@
+server:
+ port: 2443
+ ssl:
+ enabled: false
+
+clamp:
+ url: http://localhost:30258
+ disable-ssl-validation: true
+ disable-ssl-hostname-check: true
+
+apex-editor:
+ upload-url:
+ upload-userid:
+
+management:
+ endpoints:
+ web:
+ exposure:
+ include: health, metrics, prometheus