diff options
author | Daniel Rose <dr695h@att.com> | 2017-07-27 20:23:07 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-07-27 20:23:07 +0000 |
commit | 8d6913f1a512f6185b7dd00ca688f71cafebefff (patch) | |
tree | 4eefa49340698a7818304eea2b606199e19c75fd /robot/resources/demo_preload.robot | |
parent | 41e03d2a96990ed8e2eb0e42f0a28deeb3981064 (diff) | |
parent | bf5a3a3745c9669dd6eeea3d2ef5b3bbaa3e9f74 (diff) |
Merge "[TEST-45] support injectable ips"
Diffstat (limited to 'robot/resources/demo_preload.robot')
-rw-r--r-- | robot/resources/demo_preload.robot | 46 |
1 files changed, 1 insertions, 45 deletions
diff --git a/robot/resources/demo_preload.robot b/robot/resources/demo_preload.robot index 00671baa..cb41c573 100644 --- a/robot/resources/demo_preload.robot +++ b/robot/resources/demo_preload.robot @@ -4,6 +4,7 @@ Documentation This test template encapsulates the VNF Orchestration use case. Resource test_templates/model_test_template.robot Resource test_templates/vnf_orchestration_test_template.robot Resource asdc_interface.robot +Resource vid/vid_interface.robot Library UUID Library Collections @@ -104,51 +105,6 @@ Get Persona Model Id ${persona_model_id}= Get From DIctionary ${resp.json()['service-instance'][0]} persona-model-id [Return] ${persona_model_id} - -Get Model UUID from VID - [Documentation] Must use UI since rest call get redirect to portal and get DNS error - ... Search all services and match on the invariantUUID - [Arguments] ${invariantUUID} - Go To ${GLOBAL_VID_SERVER}${VID_ENV}/rest/models/services - ${resp}= Get Text xpath=//body/pre - ${json}= To Json ${resp} - :for ${dict} in @{json} - \ ${uuid}= Get From DIctionary ${dict} uuid - \ ${inv}= Get From DIctionary ${dict} invariantUUID - \ Return From Keyword If "${invariantUUID}" == "${inv}" ${uuid} - [Return] "" - - -Get Module Names from VID - [Documentation] Must use UI since rest call get redirect to portal and get DNS error - ... Given the invariantUUID of the model, mock up the vf_modules list passed to Preload VNF - [Arguments] ${invariantUUID} - ${id}= Get Model UUID from VID ${invariantUUID} - Go To ${GLOBAL_VID_SERVER}${VID_ENV}/rest/models/services/${id} - ${resp}= Get Text xpath=//body/pre - ${json}= To Json ${resp} - ${modules}= Create List - ${vnfs}= Get From Dictionary ${json} vnfs - ${keys}= Get Dictionary Keys ${vnfs} - :for ${key} in @{keys} - \ Add VFModule ${vnfs['${key}']} ${modules} - [Return] ${modules} - -Add VFModule - [Documentation] Dig the vf module names from the VID service model - [Arguments] ${vnf} ${modules} - ${vfModules}= Get From Dictionary ${vnf} vfModules - ${keys}= Get Dictionary Keys ${vfModules} - :for ${key} in @{keys} - \ ${module}= Get From Dictionary ${vfModules} ${key} - \ ${dict}= Create Dictionary name=${module['name']} - \ Append to List ${modules} ${dict} - - - - - - APPC Mount Point [Arguments] ${vf_module_name} Run Openstack Auth Request auth |