blob: 1684a5daab97c62990ef0cb1f64c98c782605832 [file] [log] [blame]
Kanagaraj Manickam k00365106bbc13952018-04-16 11:20:21 +05301*** Settings ***
2Documentation The main interface for interacting with CLI.
3Library RequestsClientCert
4Library RequestsLibrary
5
6Resource global_properties.robot
7
8*** Variables ***
9${CLI_HEALTH_CHECK_PATH} /
10${CLI_ENDPOINT} ${GLOBAL_CLI_SERVER_PROTOCOL}://${GLOBAL_INJECTED_CLI_IP_ADDR}:${GLOBAL_CLI_SERVER_PORT}
11
12*** Keywords ***
13Run CLI Health Check
14 [Documentation] Runs CLI Health check
15 ${resp}= Run CLI Get Request ${CLI_HEALTH_CHECK_PATH}
16 Should Be Equal As Strings ${resp.status_code} 200
17
18Run CLI Get Request
19 [Documentation] Runs CLI Get request
20 [Arguments] ${data_path}
21 ${session}= Create Session cli ${CLI_ENDPOINT}
22 ${resp}= Get Request cli ${data_path}
23 Log Received response from CLI ${resp.text}
24 [Return] ${resp}
25