aboutsummaryrefslogtreecommitdiffstats
path: root/test/csit/tests/externalapi-nbi
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2018-09-27 10:29:30 -0700
committerGary Wu <gary.i.wu@huawei.com>2018-09-27 12:50:28 -0700
commit2d3d8dcf6ef1bd2a161c69d561c629c5ec3f59c4 (patch)
tree652fd47a183c291e96c6721f550a5f63464f6e66 /test/csit/tests/externalapi-nbi
parente161173e279a73134dda4c2f429605d6c9ee1fe7 (diff)
Move CSIT to integration/csit repo
To facilite branching of CSIT tests, all CSIT test code and scripts are relocated to the integration/csit repo. Change-Id: I6777cd414e43dbf2bfa6215f7e50849e1a6a2e59 Issue-ID: INT-671 Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
Diffstat (limited to 'test/csit/tests/externalapi-nbi')
-rw-r--r--test/csit/tests/externalapi-nbi/healthcheck/__init__.robot2
-rw-r--r--test/csit/tests/externalapi-nbi/healthcheck/healthcheck.robot33
2 files changed, 0 insertions, 35 deletions
diff --git a/test/csit/tests/externalapi-nbi/healthcheck/__init__.robot b/test/csit/tests/externalapi-nbi/healthcheck/__init__.robot
deleted file mode 100644
index 826350785..000000000
--- a/test/csit/tests/externalapi-nbi/healthcheck/__init__.robot
+++ /dev/null
@@ -1,2 +0,0 @@
-*** Settings ***
-Documentation ExternalAPI-NBI - healthcheck
diff --git a/test/csit/tests/externalapi-nbi/healthcheck/healthcheck.robot b/test/csit/tests/externalapi-nbi/healthcheck/healthcheck.robot
deleted file mode 100644
index 6c3ec2961..000000000
--- a/test/csit/tests/externalapi-nbi/healthcheck/healthcheck.robot
+++ /dev/null
@@ -1,33 +0,0 @@
-*** Settings ***
-Documentation The main interface for interacting with External API/NBI
-Library RequestsLibrary
-Library Collections
-
-*** Variables ***
-${GLOBAL_NBI_SERVER_PROTOCOL} http
-${GLOBAL_INJECTED_NBI_IP_ADDR} localhost
-${GLOBAL_NBI_SERVER_PORT} 8080
-${NBI_HEALTH_CHECK_PATH} /nbi/api/v3/status
-${NBI_ENDPOINT} ${GLOBAL_NBI_SERVER_PROTOCOL}://${GLOBAL_INJECTED_NBI_IP_ADDR}:${GLOBAL_NBI_SERVER_PORT}
-
-*** Test Cases ***
-NBI Health Check
- Run NBI Health Check
-
-*** Keywords ***
-Run NBI Health Check
- [Documentation] Runs NBI Health check
- ${resp}= Run NBI Get Request ${NBI_HEALTH_CHECK_PATH}
- Should Be Equal As Integers ${resp.status_code} 200
-
-Run NBI Get Request
- [Documentation] Runs NBI Get request
- [Arguments] ${data_path}
- ${session}= Create Session session ${NBI_ENDPOINT}
- ${resp}= Get Request session ${data_path}
- Should Be Equal As Integers ${resp.status_code} 200
- Log Received response from NBI ${resp.text}
- ${json}= Set Variable ${resp.json()}
- ${status}= Get From Dictionary ${json} status
- Should Be Equal ${status} ok
- [Return] ${resp}