summaryrefslogtreecommitdiffstats
path: root/robot/resources
diff options
context:
space:
mode:
authorBrian Freeman <bf1936@att.com>2018-05-25 13:27:29 -0500
committerBrian Freeman <bf1936@att.com>2018-05-25 13:27:39 -0500
commit18df891d36df9649227c71cf8b2612a51f416339 (patch)
tree4db830c034751136beba9599c92c2f6bc897d98f /robot/resources
parent5325345cff3eb3155fa76a89c1591a39ea7980f9 (diff)
Add Retry to Distribution
Issue-ID: AAI-1181 Change-Id: I47fcf5d69caa20d098c2a2b4e056bb669cbd0284 Signed-off-by: Brian Freeman <bf1936@att.com>
Diffstat (limited to 'robot/resources')
-rw-r--r--robot/resources/asdc_interface.robot20
1 files changed, 16 insertions, 4 deletions
diff --git a/robot/resources/asdc_interface.robot b/robot/resources/asdc_interface.robot
index 0f9c76ac..c4c79caf 100644
--- a/robot/resources/asdc_interface.robot
+++ b/robot/resources/asdc_interface.robot
@@ -68,11 +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}
- 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
- Wait Until Keyword Succeeds 180 15 Check Catalog Service Distributed ${catalog_service_resp['uuid']}
+ : FOR ${DIST_INDEX} IN RANGE 1 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} Loop Over Check Catalog Service Distributed ${catalog_service_resp['uuid']}
+ \ Exit For Loop If ${status}
[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 7
+ \ ${status} Run Keyword And Ignore Error Check Catalog Service Distributed ${catalog_service_id}
+ \ Sleep 15s
+ \ Exit For Loop if ${status}
+ [Return] ${status}
+
Setup ASDC Catalog Resource
[Documentation] Creates all the steps a vf needs for an asdc catalog resource and returns the id
[Arguments] ${model_zip_path}