diff options
author | Ruslan Kashapov <ruslan.kashapov@pantheon.tech> | 2021-02-26 11:42:29 +0200 |
---|---|---|
committer | Ruslan Kashapov <ruslan.kashapov@pantheon.tech> | 2021-03-03 17:28:20 +0200 |
commit | d44fceebbd37108a15f45fbf5813d413efeb2ac6 (patch) | |
tree | 624fc224c5434996e7004c4d148e5e6da5397485 /csit/tests/actuator | |
parent | 32446dce35b5bf9d2c84751718cb4ece7f96fa72 (diff) |
CSIT: Integration tests for CPS Core
+ also fixes issue with fragment_id sequence not reflecting data loaded
Issue-ID: CPS-261
Change-Id: If590d6a0859a1acc9005dd2da952b7dd93a23059
Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
Diffstat (limited to 'csit/tests/actuator')
-rw-r--r-- | csit/tests/actuator/__init__.robot | 2 | ||||
-rw-r--r-- | csit/tests/actuator/actuator.robot | 23 |
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 |