aboutsummaryrefslogtreecommitdiffstats
path: root/test/csit/tests/cli
diff options
context:
space:
mode:
authorsubhash kumar singh <subhash.kumar.singh@huawei.com>2017-09-06 19:58:29 +0530
committersubhash kumar singh <subhash.kumar.singh@huawei.com>2017-09-06 19:58:29 +0530
commit729baadbd9e163978c10a2d5a5c84258af8afd39 (patch)
treea749f098364905db66a8c458952f27e5610617ac /test/csit/tests/cli
parentdcb405e3662231e917d173cc06089d6f215e210a (diff)
Initial integration test for CLI
Intial setup script for the CLI integration test. Change-Id: I0ae77b013831675b1d5d4f3d28fe8f73de5b2264 Issue-Id: CLI-35 Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
Diffstat (limited to 'test/csit/tests/cli')
-rw-r--r--test/csit/tests/cli/startup/__init__.robot2
-rw-r--r--test/csit/tests/cli/startup/startup_check.robot16
2 files changed, 18 insertions, 0 deletions
diff --git a/test/csit/tests/cli/startup/__init__.robot b/test/csit/tests/cli/startup/__init__.robot
new file mode 100644
index 000000000..9eca6917a
--- /dev/null
+++ b/test/csit/tests/cli/startup/__init__.robot
@@ -0,0 +1,2 @@
+*** Settings ***
+Documentation cli - Startup
diff --git a/test/csit/tests/cli/startup/startup_check.robot b/test/csit/tests/cli/startup/startup_check.robot
new file mode 100644
index 000000000..c79da34ba
--- /dev/null
+++ b/test/csit/tests/cli/startup/startup_check.robot
@@ -0,0 +1,16 @@
+*** Settings ***
+Library RequestsLibrary
+
+*** Test Cases ***
+Liveness Test
+ [Documentation] Check cli liveness check
+ Create Session cli http://${CLI_IP}:8080
+ CheckUrl cli /
+
+*** Keywords ***
+CheckUrl
+ [Arguments] ${session} ${path}
+ ${resp}= Get Request ${session} ${path}
+ Should Be Equal As Integers ${resp.status_code} 200
+
+