diff options
author | rameshiyer27 <ramesh.murugan.iyer@est.tech> | 2021-11-05 14:24:02 +0000 |
---|---|---|
committer | rameshiyer27 <ramesh.murugan.iyer@est.tech> | 2021-11-11 10:22:55 +0000 |
commit | 3d8fc9a77081886599cc93acd26105b433770b43 (patch) | |
tree | 7114b5b7f47a3e8ff8ad27c19c2840bb169e0b46 /runtime-controlloop | |
parent | ef52ec6f4b347868052b8532542f11b43c8c93b6 (diff) |
Add health check, metrics and prometheus endpoints for CL participants
Issue-ID: POLICY-3747
Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech>
Change-Id: I9cb1ffcc2f9996c5b0e9f67fec9c706e48cfa800
Diffstat (limited to 'runtime-controlloop')
3 files changed, 3 insertions, 3 deletions
diff --git a/runtime-controlloop/src/main/resources/application.yaml b/runtime-controlloop/src/main/resources/application.yaml index 50c063fb3..aa9434b97 100644 --- a/runtime-controlloop/src/main/resources/application.yaml +++ b/runtime-controlloop/src/main/resources/application.yaml @@ -1,7 +1,7 @@ spring: security: user: - name: healthcheck + name: runtimeUser password: zb!XztG34 http: converters: diff --git a/runtime-controlloop/src/test/java/org/onap/policy/clamp/controlloop/runtime/util/rest/CommonRestController.java b/runtime-controlloop/src/test/java/org/onap/policy/clamp/controlloop/runtime/util/rest/CommonRestController.java index ccac0c63b..70b0608d6 100644 --- a/runtime-controlloop/src/test/java/org/onap/policy/clamp/controlloop/runtime/util/rest/CommonRestController.java +++ b/runtime-controlloop/src/test/java/org/onap/policy/clamp/controlloop/runtime/util/rest/CommonRestController.java @@ -121,7 +121,7 @@ public class CommonRestController { client.register(GsonMessageBodyHandler.class); if (includeAuth) { - client.register(HttpAuthenticationFeature.basic("healthcheck", "zb!XztG34")); + client.register(HttpAuthenticationFeature.basic("runtimeUser", "zb!XztG34")); } final WebTarget webTarget = client.target(fullyQualifiedEndpoint); diff --git a/runtime-controlloop/src/test/resources/application_test.properties b/runtime-controlloop/src/test/resources/application_test.properties index 61557879d..4b0c3b7a5 100644 --- a/runtime-controlloop/src/test/resources/application_test.properties +++ b/runtime-controlloop/src/test/resources/application_test.properties @@ -1,4 +1,4 @@ -spring.security.user.name=healthcheck +spring.security.user.name=runtimeUser spring.security.user.password=zb!XztG34 security.enable-csrf=false |