Kanagaraj Manickam k00365106 | bbc1395 | 2018-04-16 11:20:21 +0530 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation The main interface for interacting with CLI. |
| 3 | Library RequestsClientCert |
| 4 | Library RequestsLibrary |
| 5 | |
| 6 | Resource 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 *** |
| 13 | Run 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 | |
| 18 | Run 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 | |