diff options
Diffstat (limited to 'runtime-acm/src/test')
-rw-r--r-- | runtime-acm/src/test/java/org/onap/policy/clamp/acm/runtime/util/rest/CommonRestController.java | 5 | ||||
-rw-r--r-- | runtime-acm/src/test/resources/application-test.yaml | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/runtime-acm/src/test/java/org/onap/policy/clamp/acm/runtime/util/rest/CommonRestController.java b/runtime-acm/src/test/java/org/onap/policy/clamp/acm/runtime/util/rest/CommonRestController.java index 89d956aea..eb2abd06d 100644 --- a/runtime-acm/src/test/java/org/onap/policy/clamp/acm/runtime/util/rest/CommonRestController.java +++ b/runtime-acm/src/test/java/org/onap/policy/clamp/acm/runtime/util/rest/CommonRestController.java @@ -44,6 +44,7 @@ public class CommonRestController { public static final String SELF = NetworkUtil.getHostname(); public static final String CONTEXT_PATH = "onap/policy/clamp/acm"; public static final String ENDPOINT_PREFIX = CONTEXT_PATH + "/v2/"; + public static final String ACTUATOR_ENDPOINT = CONTEXT_PATH + "/"; private static String httpPrefix; @@ -76,7 +77,7 @@ public class CommonRestController { * @return a request builder */ protected Invocation.Builder sendActRequest(final String endpoint) { - return sendFqeRequest(httpPrefix + endpoint, true); + return sendFqeRequest(httpPrefix + ACTUATOR_ENDPOINT + endpoint, true); } /** @@ -96,7 +97,7 @@ public class CommonRestController { * @return a request builder */ protected Invocation.Builder sendNoAuthActRequest(final String endpoint) { - return sendFqeRequest(httpPrefix + endpoint, false); + return sendFqeRequest(httpPrefix + ACTUATOR_ENDPOINT + endpoint, false); } /** diff --git a/runtime-acm/src/test/resources/application-test.yaml b/runtime-acm/src/test/resources/application-test.yaml index 9d0754a29..2179cdf5e 100644 --- a/runtime-acm/src/test/resources/application-test.yaml +++ b/runtime-acm/src/test/resources/application-test.yaml @@ -12,6 +12,10 @@ spring: hibernate: dialect: org.hibernate.dialect.HSQLDialect +server: + servlet: + context-path: /onap/policy/clamp/acm + runtime: participantParameters: updateParameters: |