aboutsummaryrefslogtreecommitdiffstats
path: root/robot/resources/asdc_interface.robot
diff options
context:
space:
mode:
authorBrian Freeman <bf1936@att.com>2018-04-19 12:17:56 -0500
committerBrian Freeman <bf1936@att.com>2018-04-19 12:20:44 -0500
commite546f7efd8cc3ad48a6a118293ea153391223fa8 (patch)
treef4f2703a963366ce08c8ec18a3ff72c6b0a3da8b /robot/resources/asdc_interface.robot
parente908d998b3d957aa06688136da93b25cfd930100 (diff)
Fix SDC HealthCheck
Issue-ID: TEST-88 Change-Id: Ic207c943054ea67f3582e4b018bdb286f6b1a7f1 Signed-off-by: Brian Freeman <bf1936@att.com>
Diffstat (limited to 'robot/resources/asdc_interface.robot')
-rw-r--r--robot/resources/asdc_interface.robot4
1 files changed, 3 insertions, 1 deletions
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}