Introduce CPS integration testing (CSIT)
[cps.git] / csit / tests / actuator / actuator.robot
1 *** Settings ***
2 Library           OperatingSystem
3 Library           Process
4
5 *** Variables ***
6
7 ${check}    ${SCRIPTS}/actuator/check_endpoint.sh
8
9 *** Test Cases ***
10 Liveness Probe for CPS
11     [Documentation]   Liveness Probe
12     ${result}=    Run Process   bash ${check} ${CPS_HOST}/manage/health/liveness >> actuator-test.log    shell=yes
13     Should Be Equal As Integers    ${result.rc}    0
14
15 Readiness Probe for CPS
16     [Documentation]   Readiness Probe
17     ${result}=    Run Process   bash ${check} ${CPS_HOST}/manage/health/readiness >> actuator-test.log    shell=yes
18     Should Be Equal As Integers    ${result.rc}    0