summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohnKeeney <john.keeney@est.tech>2023-08-28 12:55:15 +0100
committerJohnKeeney <john.keeney@est.tech>2023-08-28 14:44:38 +0100
commitff95ae47d58dfc2ac01ccbfb994b615f975d1675 (patch)
tree59bc6fa2369c65a3e17735082cfad27925b3ab99
parentaf7372a2358792a2c31662518df45455e3d1a680 (diff)
Update message returned for Status check
Issue-ID: CCSDK-3932 Change-Id: I9db85ecf697cf5b908ea69f5476820a49a384697 Signed-off-by: JohnKeeney <john.keeney@est.tech>
-rw-r--r--a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v2/StatusController.java4
-rw-r--r--a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v2/ApplicationTest.java4
-rwxr-xr-xcsit/scripts/healthcheck/data/preparePmsData.sh2
-rwxr-xr-xcsit/scripts/healthcheck/test/health_check.sh2
-rwxr-xr-xcsit/scripts/healthcheck/test/pms_a1sim.sh2
-rwxr-xr-xcsit/scripts/healthcheck/test/pms_a1sim_sdnc.sh2
6 files changed, 8 insertions, 8 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
diff --git a/csit/scripts/healthcheck/data/preparePmsData.sh b/csit/scripts/healthcheck/data/preparePmsData.sh
index 69dc92d2..fc4fa392 100755
--- a/csit/scripts/healthcheck/data/preparePmsData.sh
+++ b/csit/scripts/healthcheck/data/preparePmsData.sh
@@ -69,7 +69,7 @@ echo "A1 policy management service status:"
curlString="curl -skw %{http_code} $httpx://localhost:$policy_agent_port/status"
res=$($curlString)
echo "$res"
-expect="hunky dory200"
+expect="success200"
checkRes
echo -e "\n"
diff --git a/csit/scripts/healthcheck/test/health_check.sh b/csit/scripts/healthcheck/test/health_check.sh
index e08cc3e8..05bfeae5 100755
--- a/csit/scripts/healthcheck/test/health_check.sh
+++ b/csit/scripts/healthcheck/test/health_check.sh
@@ -63,6 +63,6 @@ checkStatus "curl -skw %{http_code} http://localhost:30005/" "OK200" "SIM3"
# check PMS status
echo "check PMS status:"
-checkStatus "curl -skw %{http_code} http://localhost:8081/status" "hunky dory200" "PMS"
+checkStatus "curl -skw %{http_code} http://localhost:8081/status" "success200" "PMS"
echo "NONRTRIC health check passed."
diff --git a/csit/scripts/healthcheck/test/pms_a1sim.sh b/csit/scripts/healthcheck/test/pms_a1sim.sh
index b28cc02c..8ba4ef44 100755
--- a/csit/scripts/healthcheck/test/pms_a1sim.sh
+++ b/csit/scripts/healthcheck/test/pms_a1sim.sh
@@ -58,7 +58,7 @@ checkStatus "curl -skw %{http_code} http://localhost:30005/" "OK200" "SIM3"
# check PMS status
echo "check PMS status:"
-checkStatus "curl -skw %{http_code} http://localhost:8081/status" "hunky dory200" "PMS"
+checkStatus "curl -skw %{http_code} http://localhost:8081/status" "success200" "PMS"
cd ${SHELL_FOLDER}/../data
./preparePmsData.sh
diff --git a/csit/scripts/healthcheck/test/pms_a1sim_sdnc.sh b/csit/scripts/healthcheck/test/pms_a1sim_sdnc.sh
index 29feb88a..a71e3b1d 100755
--- a/csit/scripts/healthcheck/test/pms_a1sim_sdnc.sh
+++ b/csit/scripts/healthcheck/test/pms_a1sim_sdnc.sh
@@ -60,7 +60,7 @@ checkStatus 60 "curl -skw %{http_code} http://localhost:30005/" "OK200" "SIM3"
# check PMS status
echo "check PMS status:"
-checkStatus 60 "curl -skw %{http_code} http://localhost:8081/status" "hunky dory200" "PMS"
+checkStatus 60 "curl -skw %{http_code} http://localhost:8081/status" "success200" "PMS"
curl -skw %{http_code} http://localhost:8081/actuator/loggers/org.onap.ccsdk.oran.a1policymanagementservice -X POST -H Content-Type:application/json -d '{"configuredLevel":"debug"}'
curl -skw %{http_code} http://localhost:8081/actuator/loggers/org.onap.ccsdk.oran.a1policymanagementservice.tasks -X POST -H Content-Type:application/json -d '{"configuredLevel":"trace"}'