diff options
author | DR695H <dr695h@att.com> | 2017-06-30 13:09:57 -0400 |
---|---|---|
committer | DR695H <dr695h@att.com> | 2017-06-30 13:17:56 -0400 |
commit | bf5a3a3745c9669dd6eeea3d2ef5b3bbaa3e9f74 (patch) | |
tree | ac51047b1768056c71e7f67ec22cbb8d391cb741 /robot/resources/demo_preload.robot | |
parent | e2a48d77875821fc4786b33f8a96d41c79d71224 (diff) |
[TEST-45] support injectable ips
today onap ips are hard coded so we should support
having them injectable from external sources
Change-Id: Id7911df331207a9198e9bf43168b9a6843db6f48
Signed-off-by: DR695H <dr695h@att.com>
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 |