summaryrefslogtreecommitdiffstats
path: root/csit/tests/actuator
diff options
context:
space:
mode:
Diffstat (limited to 'csit/tests/actuator')
-rw-r--r--csit/tests/actuator/__init__.robot2
-rw-r--r--csit/tests/actuator/actuator.robot23
2 files changed, 12 insertions, 13 deletions
diff --git a/csit/tests/actuator/__init__.robot b/csit/tests/actuator/__init__.robot
deleted file mode 100644
index 714f3c3c8e..0000000000
--- a/csit/tests/actuator/__init__.robot
+++ /dev/null
@@ -1,2 +0,0 @@
-*** Settings ***
-Documentation CPS - Actuator endpoints
diff --git a/csit/tests/actuator/actuator.robot b/csit/tests/actuator/actuator.robot
index 59c76073a3..1253dffbf3 100644
--- a/csit/tests/actuator/actuator.robot
+++ b/csit/tests/actuator/actuator.robot
@@ -1,18 +1,19 @@
*** Settings ***
-Library OperatingSystem
-Library Process
+Documentation CPS - Actuator endpoints
+
+Library Collections
+Library RequestsLibrary
+
+Suite Setup Create Session CPS_HOST ${CPS_HOST}
*** Variables ***
-${check} ${SCRIPTS}/actuator/check_endpoint.sh
*** Test Cases ***
-Liveness Probe for CPS
- [Documentation] Liveness Probe
- ${result}= Run Process bash ${check} ${CPS_HOST}/manage/health/liveness >> actuator-test.log shell=yes
- Should Be Equal As Integers ${result.rc} 0
+Test Liveness Probe Endpoint
+ ${response}= GET On Session CPS_HOST /manage/health/liveness expected_status=200
+ Should Be Equal As Strings ${response.json()['status']} UP
-Readiness Probe for CPS
- [Documentation] Readiness Probe
- ${result}= Run Process bash ${check} ${CPS_HOST}/manage/health/readiness >> actuator-test.log shell=yes
- Should Be Equal As Integers ${result.rc} 0
+Test Readiness Probe Endpoint
+ ${response}= GET On Session CPS_HOST /manage/health/readiness expected_status=200
+ Should Be Equal As Strings ${response.json()['status']} UP \ No newline at end of file