Replace status string return value / body 73/11673/1
authorJohnKeeney <john.keeney@est.tech>
Mon, 28 Aug 2023 12:10:31 +0000 (13:10 +0100)
committerJohnKeeney <john.keeney@est.tech>
Mon, 28 Aug 2023 12:10:40 +0000 (13:10 +0100)
Issue-ID: NONRTRIC-915
Change-Id: I004a5046330bd0f4c5a979b4d774e443e857cf99
Signed-off-by: JohnKeeney <john.keeney@est.tech>
src/main/java/org/oransc/ics/controllers/StatusController.java
src/test/java/org/oransc/ics/ApplicationTest.java
src/test/java/org/oransc/ics/controller/ProducerSimulatorController.java

index 11c9c01..ef43f8e 100644 (file)
@@ -97,7 +97,7 @@ public class StatusController {
                 content = @Content(schema = @Schema(implementation = StatusInfo.class))) //
         })
     public Mono<ResponseEntity<Object>> getStatus() {
-        StatusInfo info = new StatusInfo("hunky dory", this.infoProducers, this.infoTypes, this.infoJobs);
+        StatusInfo info = new StatusInfo("success", this.infoProducers, this.infoTypes, this.infoJobs);
         return Mono.just(new ResponseEntity<>(info, HttpStatus.OK));
     }
 
index 3d8a95b..42b8696 100644 (file)
@@ -1019,7 +1019,7 @@ class ApplicationTest {
 
         String url = "/status";
         ResponseEntity<String> resp = restClient().getForEntity(url).block();
-        assertThat(resp.getBody()).contains("hunky dory");
+        assertThat(resp.getBody()).contains("success");
     }
 
     @Test
index 0e6aac1..76207c1 100644 (file)
@@ -190,7 +190,7 @@ public class ProducerSimulatorController {
         })
     public ResponseEntity<Object> producerSupervision() {
         logger.info("Producer supervision");
-        return new ResponseEntity<>("Hunky dory", HttpStatus.OK);
+        return new ResponseEntity<>("success", HttpStatus.OK);
     }
 
     @GetMapping(path = SUPERVISION_ERROR_URL, produces = MediaType.APPLICATION_JSON_VALUE)