blob: c71870b2a6cc8a30f9f0deeb7c1a732a5d5cf994 [file] [log] [blame]
Gary Wu9abb61c2018-09-27 10:38:50 -07001*** Settings ***
2Library RequestsLibrary
3Library Process
4
5*** Variables ***
6
7${cli_exec} docker exec cli onap
jitendra sharma3f196472020-10-22 10:48:33 +00008${cli_exec_cli_10_version} docker exec cli bash -c "export OPEN_CLI_PRODUCT_IN_USE=open-cli && onap --version"
Gary Wu9abb61c2018-09-27 10:38:50 -07009
10*** Test Cases ***
11Liveness Test
12 [Documentation] Check cli liveness check
jitendra sharma3f196472020-10-22 10:48:33 +000013 Create Session cli https://${CLI_IP}:443
Gary Wu9abb61c2018-09-27 10:38:50 -070014 CheckUrl cli /
15
Gary Wu9abb61c2018-09-27 10:38:50 -070016Check Cli Version Default
17 [Documentation] check cli default version
18 ${cli_cmd_output}= Run Process ${cli_exec_cli_10_version} shell=yes
19 Log ${cli_cmd_output.stdout}
20 Should Be Equal As Strings ${cli_cmd_output.rc} 0
jitendra sharma3f196472020-10-22 10:48:33 +000021 Should Contain ${cli_cmd_output.stdout} : open-cli
Gary Wu9abb61c2018-09-27 10:38:50 -070022
23
24*** Keywords ***
25CheckUrl
26 [Arguments] ${session} ${path}
27 ${resp}= Get Request ${session} ${path}
28 Should Be Equal As Integers ${resp.status_code} 200