summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2018-11-01 17:00:07 +0000
committerGerrit Code Review <gerrit@onap.org>2018-11-01 17:00:07 +0000
commite84c24f910bfbb0940ba6f9ff94ede6069b3773c (patch)
tree240d5edc4e127c5c7a54cba67cffdfc8ae32a2e8
parent2ec8038ba2535a4fba0744bf7d883e46ebed4b84 (diff)
parent0c3270ccd3a1a7db5f7be687644ba619b68b2293 (diff)
Merge "Add OOF-CMSO healthcheck"
-rw-r--r--robot/resources/oof_interface.robot18
-rw-r--r--robot/testsuites/health-check.robot4
2 files changed, 22 insertions, 0 deletions
diff --git a/robot/resources/oof_interface.robot b/robot/resources/oof_interface.robot
index 1c3137e4..02b81776 100644
--- a/robot/resources/oof_interface.robot
+++ b/robot/resources/oof_interface.robot
@@ -7,9 +7,11 @@ Resource global_properties.robot
*** Variables ***
${OOF_HOMING_HEALTH_CHECK_PATH} /v1/plans/healthcheck
${OOF_SNIRO_HEALTH_CHECK_PATH} /api/oof/v1/healthcheck
+${OOF_CMSO_HEALTH_CHECK_PATH} /cmso/v1/health?checkInterfaces=false
${OOF_HOMING_ENDPOINT} ${GLOBAL_OOF_SERVER_PROTOCOL}://${GLOBAL_INJECTED_OOF_HOMING_IP_ADDR}:${GLOBAL_OOF_HOMING_SERVER_PORT}
${OOF_SNIRO_ENDPOINT} ${GLOBAL_OOF_SERVER_PROTOCOL}://${GLOBAL_INJECTED_OOF_SNIRO_IP_ADDR}:${GLOBAL_OOF_SNIRO_SERVER_PORT}
+${OOF_CMSO_ENDPOINT} ${GLOBAL_OOF_CMSO_PROTOCOL}://${GLOBAL_INJECTED_OOF_CMSO_IP_ADDR}:${GLOBAL_OOF_CMSO_SERVER_PORT}
*** Keywords ***
Run OOF-Homing Health Check
@@ -39,3 +41,19 @@ Run OOF-SNIRO Get Request
Should Be Equal As Integers ${resp.status_code} 200
Log Received response from OOF-SNIRO ${resp.text}
[Return] ${resp}
+
+
+Run OOF-CMSO Health Check
+ [Documentation] Runs OOF-CMSO Health check
+ ${resp}= Run OOF-CMSO Get Request ${OOF_CMSO_HEALTH_CHECK_PATH}
+ Should Be Equal As Integers ${resp.status_code} 200
+
+Run OOF-CMSO Get Request
+ [Documentation] Runs OOF-CMSO Get request
+ [Arguments] ${data_path}
+ ${auth}= Create List ${GLOBAL_OOF_CMSO_USERNAME} ${GLOBAL_OOF_CMSO_PASSWORD}
+ ${session}= Create Session session ${OOF_CMSO_ENDPOINT} auth=${auth}
+ ${resp}= Get Request session ${data_path}
+ Should Be Equal As Integers ${resp.status_code} 200
+ Log Received response from OOF-CMSO ${resp.text}
+ [Return] ${resp}
diff --git a/robot/testsuites/health-check.robot b/robot/testsuites/health-check.robot
index 3d653064..39328198 100644
--- a/robot/testsuites/health-check.robot
+++ b/robot/testsuites/health-check.robot
@@ -113,6 +113,10 @@ Basic OOF-SNIRO Health Check
[Tags] health medium
Run OOF-SNIRO Health Check
+Basic OOF-CMSO Health Check
+ [Tags] health medium
+ Run OOF-CMSO Health Check
+
Basic Policy Health Check
[Tags] health medium
Run Policy Health Check