aboutsummaryrefslogtreecommitdiffstats
path: root/robot/resources
diff options
context:
space:
mode:
authorDaniel Rose <dr695h@att.com>2018-04-17 13:32:15 +0000
committerGerrit Code Review <gerrit@onap.org>2018-04-17 13:32:15 +0000
commitd4f2f4b35032a7d7b2f13219e02df87cacab4261 (patch)
treec6eafc5d8b5cc39d7589762992c3af05fe522451 /robot/resources
parenta5fe4cc91b91b3a2755929b6c1dbaa94de274aea (diff)
parentbbc1395ea629794f40cabe6f3c21d6dccc02470b (diff)
Merge "Add health check for cli"
Diffstat (limited to 'robot/resources')
-rw-r--r--robot/resources/cli_interface.robot25
1 files changed, 25 insertions, 0 deletions
diff --git a/robot/resources/cli_interface.robot b/robot/resources/cli_interface.robot
new file mode 100644
index 00000000..1684a5da
--- /dev/null
+++ b/robot/resources/cli_interface.robot
@@ -0,0 +1,25 @@
+*** Settings ***
+Documentation The main interface for interacting with CLI.
+Library RequestsClientCert
+Library RequestsLibrary
+
+Resource global_properties.robot
+
+*** Variables ***
+${CLI_HEALTH_CHECK_PATH} /
+${CLI_ENDPOINT} ${GLOBAL_CLI_SERVER_PROTOCOL}://${GLOBAL_INJECTED_CLI_IP_ADDR}:${GLOBAL_CLI_SERVER_PORT}
+
+*** Keywords ***
+Run CLI Health Check
+ [Documentation] Runs CLI Health check
+ ${resp}= Run CLI Get Request ${CLI_HEALTH_CHECK_PATH}
+ Should Be Equal As Strings ${resp.status_code} 200
+
+Run CLI Get Request
+ [Documentation] Runs CLI Get request
+ [Arguments] ${data_path}
+ ${session}= Create Session cli ${CLI_ENDPOINT}
+ ${resp}= Get Request cli ${data_path}
+ Log Received response from CLI ${resp.text}
+ [Return] ${resp}
+