summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2017-10-17 12:27:22 -0700
committerGary Wu <gary.i.wu@huawei.com>2017-10-17 12:27:40 -0700
commit26dd72a0720f90726856bb1f510c30d62810fd87 (patch)
tree2db107a1e002d6be67cc4811229ae1fae0a8fcc4
parent6f3a82622c233786ab5463099a0b1408b3fd044a (diff)
Add healthcheck for MSB in ETE testsuite
Change-Id: I7667bf678933ed01922fe9d119584087ae370cbf Issue-ID: INT-280 Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
-rw-r--r--robot/resources/msb_interface.robot24
-rw-r--r--robot/testsuites/health-check.robot5
2 files changed, 29 insertions, 0 deletions
diff --git a/robot/resources/msb_interface.robot b/robot/resources/msb_interface.robot
new file mode 100644
index 00000000..f6e49816
--- /dev/null
+++ b/robot/resources/msb_interface.robot
@@ -0,0 +1,24 @@
+*** Settings ***
+Documentation The main interface for interacting with Microservice Bus.
+Library RequestsLibrary
+
+Resource global_properties.robot
+
+*** Variables ***
+${MSB_HEALTH_CHECK_PATH} /iui/microservices/default.html
+${MSB_ENDPOINT} ${GLOBAL_MSB_SERVER_PROTOCOL}://${GLOBAL_INJECTED_OPENO_IP_ADDR}:${GLOBAL_MSB_SERVER_PORT}
+
+
+*** Keywords ***
+Run MSB Health Check
+ [Documentation] Runs MSB Health check
+ ${resp}= Run MSB Get Request ${MSB_HEALTH_CHECK_PATH}
+ Should Be Equal As Integers ${resp.status_code} 200
+
+Run MSB Get Request
+ [Documentation] Runs MSB Get request
+ [Arguments] ${data_path}
+ ${session}= Create Session msb ${MSB_ENDPOINT}
+ ${resp}= Get Request msb ${data_path}
+ Log Received response from MSB ${resp.text}
+ [Return] ${resp}
diff --git a/robot/testsuites/health-check.robot b/robot/testsuites/health-check.robot
index d27c38e5..f11d50e9 100644
--- a/robot/testsuites/health-check.robot
+++ b/robot/testsuites/health-check.robot
@@ -14,6 +14,7 @@ Resource ../resources/appc_interface.robot
Resource ../resources/portal_interface.robot
Resource ../resources/mr_interface.robot
Resource ../resources/aaf_interface.robot
+Resource ../resources/msb_interface.robot
*** Test Cases ***
Basic DCAE Health Check
@@ -55,3 +56,7 @@ Basic Message Router Health Check
Basic VID Health Check
[Tags] health
Run VID Health Check
+
+Basic Microservice Bus Health Check
+ [Tags] health
+ Run MSB Health Check