From: Brian Freeman Date: Thu, 19 Apr 2018 17:17:56 +0000 (-0500) Subject: Fix SDC HealthCheck X-Git-Tag: v1.2.0~17 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F55%2F43755%2F1;p=testsuite.git Fix SDC HealthCheck Issue-ID: TEST-88 Change-Id: Ic207c943054ea67f3582e4b018bdb286f6b1a7f1 Signed-off-by: Brian Freeman --- diff --git a/robot/resources/asdc_interface.robot b/robot/resources/asdc_interface.robot index 92a41c91..f41f13e4 100644 --- a/robot/resources/asdc_interface.robot +++ b/robot/resources/asdc_interface.robot @@ -417,10 +417,12 @@ Run ASDC Health Check ${headers}= Create Dictionary Accept=application/json Content-Type=application/json X-TransactionId=${GLOBAL_APPLICATION_ID}-${uuid} X-FromAppId=${GLOBAL_APPLICATION_ID} ${resp}= Get Request asdc ${ASDC_HEALTH_CHECK_PATH} headers=${headers} Should Be Equal As Strings ${resp.status_code} 200 + ${SDC_DE_HEALTH}= Catenate UP @{ITEMS}= Copy List ${resp.json()['componentsInfo']} :FOR ${ELEMENT} IN @{ITEMS} \ Log ${ELEMENT['healthCheckStatus']} - \ Should Be Equal As Strings ${ELEMENT['healthCheckStatus']} UP + \ ${SDC_DE_HEALTH} Set Variable If (('DE' in '${ELEMENT['healthCheckComponent']}') and ('${ELEMENT['healthCheckStatus']}' == 'UP')) or ('${SDC_DE_HEALTH}'=='UP') UP + Should Be Equal As Strings ${SDC_DE_HEALTH} UP Run ASDC Get Request [Documentation] Runs an ASDC get request [Arguments] ${data_path} ${user}=${ASDC_DESIGNER_USER_ID}