summaryrefslogtreecommitdiffstats
path: root/robot/resources
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2018-07-27 16:02:51 -0700
committerGary Wu <gary.i.wu@huawei.com>2018-07-27 16:02:51 -0700
commit58d5853d4a47163b5984b1790d8d6caf94c43f74 (patch)
tree21b9ff7cc9fde01a4f86ee84f1649b2386550e38 /robot/resources
parentf9d157902e64d0fce03dd130d053cc43c6ab05ea (diff)
Fix status checking for healthdist
Change-Id: If542984079e354aa49357eb5a25f8e0423769c90 Issue-ID: INT-586 Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
Diffstat (limited to 'robot/resources')
-rw-r--r--robot/resources/asdc_interface.robot14
1 files changed, 7 insertions, 7 deletions
diff --git a/robot/resources/asdc_interface.robot b/robot/resources/asdc_interface.robot
index f31e7c50..11086ace 100644
--- a/robot/resources/asdc_interface.robot
+++ b/robot/resources/asdc_interface.robot
@@ -68,23 +68,23 @@ Distribute Model From ASDC
# on certify it gets a new id
${catalog_service_id}= Certify ASDC Catalog Service ${catalog_service_id}
Approve ASDC Catalog Service ${catalog_service_id}
- : FOR ${DIST_INDEX} IN RANGE 1 3
+ : FOR ${DIST_INDEX} IN RANGE 3
\ Log Distribution Attempt ${DIST_INDEX}
\ Distribute ASDC Catalog Service ${catalog_service_id}
\ ${catalog_service_resp}= Get ASDC Catalog Service ${catalog_service_id}
\ ${vf_module}= Find Element In Array ${loop_catalog_resource_resp['groups']} type org.openecomp.groups.VfModule
\ ${status} ${_} = Run Keyword And Ignore Error Loop Over Check Catalog Service Distributed ${catalog_service_resp['uuid']}
\ Exit For Loop If '${status}'=='PASS'
+ Should Be Equal As Strings ${status} 'PASS'
[Return] ${catalog_service_resp['name']} ${loop_catalog_resource_resp['name']} ${vf_module} ${catalog_resource_ids} ${catalog_service_id} ${catalog_resources}
Loop Over Check Catalog Service Distributed
- [Arguments] ${catalog_service_id}
- : FOR ${CHECK_INDEX} IN RANGE 1 15
- \ ${status} ${_} = Run Keyword And Ignore Error Check Catalog Service Distributed ${catalog_service_id}
- \ Sleep 20s
+ [Arguments] ${catalog_service_id}
+ : FOR ${CHECK_INDEX} IN RANGE 15
+ \ ${status} ${_} = Run Keyword And Ignore Error Check Catalog Service Distributed ${catalog_service_id}
+ \ Sleep 20s
\ Return From Keyword If '${status}'=='PASS'
- Fail
-
+ Should Be Equal As Strings ${status} 'PASS'
Setup ASDC Catalog Resource
[Documentation] Creates all the steps a vf needs for an asdc catalog resource and returns the id