diff options
author | JohnKeeney <john.keeney@est.tech> | 2023-08-28 12:55:15 +0100 |
---|---|---|
committer | John Keeney <john.keeney@est.tech> | 2023-08-28 14:02:15 +0000 |
commit | aeb5e2ac45f459a9145a3898b8144387a1703a97 (patch) | |
tree | 2ad50ce0970de54604b69a9b4464fc1910748d9b /a1-policy-management/src | |
parent | 42477eb05ce4599a13814ee47f1bf21afc21714d (diff) |
Update message returned for Status check
Issue-ID: CCSDK-3932
Change-Id: I9db85ecf697cf5b908ea69f5476820a49a384697
Signed-off-by: JohnKeeney <john.keeney@est.tech>
Diffstat (limited to 'a1-policy-management/src')
2 files changed, 4 insertions, 4 deletions
diff --git a/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v2/StatusController.java b/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v2/StatusController.java index 64d587d9..57731793 100644 --- a/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v2/StatusController.java +++ b/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v2/StatusController.java @@ -64,7 +64,7 @@ public class StatusController { }) public Mono<ResponseEntity<Object>> getStatus() { - StatusInfo info = new StatusInfo("hunky dory"); + StatusInfo info = new StatusInfo("success"); return Mono.just(new ResponseEntity<>(info, HttpStatus.OK)); } @@ -76,7 +76,7 @@ public class StatusController { }) public Mono<ResponseEntity<String>> getStatusV1() { - return Mono.just(new ResponseEntity<>("hunky dory", HttpStatus.OK)); + return Mono.just(new ResponseEntity<>("success", HttpStatus.OK)); } } diff --git a/a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v2/ApplicationTest.java b/a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v2/ApplicationTest.java index 066adc48..a42bd65e 100644 --- a/a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v2/ApplicationTest.java +++ b/a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v2/ApplicationTest.java @@ -1026,10 +1026,10 @@ class ApplicationTest { void testGetServiceStatus() throws Exception { String url = "/status"; String rsp = restClient().get(url).block(); - assertThat(rsp).contains("hunky dory"); + assertThat(rsp).contains("success"); rsp = restClient(baseUrl(), false).get(url).block(); // V1 status is used by a readinessProbe - assertThat(rsp).isEqualTo("hunky dory"); + assertThat(rsp).isEqualTo("success"); } @Test |