Fix Demo Instantiate after GRA update 81/98381/1
authorBrian Freeman <bf1936@att.com>
Wed, 13 Nov 2019 18:18:59 +0000 (13:18 -0500)
committerBrian Freeman <bf1936@att.com>
Wed, 13 Nov 2019 18:21:34 +0000 (13:21 -0500)
Issue-ID: INT-1345
Change-Id: I9b770a98d3b6dc82f0737872ff1fdc5e430703ec
Signed-off-by: Brian Freeman <bf1936@att.com>
robot/resources/sdc_interface.robot
robot/resources/test_templates/vnf_orchestration_test_template.robot
robot/resources/vid/create_vid_vnf.robot

index 3c3b3a4..366e5f5 100644 (file)
@@ -735,7 +735,7 @@ Get SDC Demo Vnf Catalog Resource
     [Documentation]  Gets Resource ids of demonstration VNFs for instantiation
     [Arguments]    ${service_name}
     ${resp}=   Get Service Catalog    ${service_name}
-    @{ITEMS}=    Copy List    ${resp.json()['componentInstances']}
+    @{ITEMS}=    Copy List    ${resp['componentInstances']}
     ${demo_catalog_resource}=   Create Dictionary
     :FOR    ${ELEMENT}    IN    @{ITEMS}
     \    Log    ${ELEMENT['name']}
index b2364fb..15ec02e 100644 (file)
@@ -114,8 +114,9 @@ Orchestrate Demo VNF
     \   Create VID VNF    ${service_instance_id}    ${vnf_name}    ${product_family}    ${lcp_region}    ${tenant_name}    ${vnf_type}   ${full_customer_name}
     \   ${vf_module_entry}=   Create Dictionary    name=${vf_module}
     \   ${vf_modules}=   Create List    ${vf_module_entry}
-    \   ${vf_module_type}   ${closedloop_vf_module}=   Run Keyword If   "${API_TYPE}"=="GRA_API"     Preload Gra    ${service_instance_id}   ${vnf_name}   ${vnf_type}   ${vf_module_name}    ${vf_module}    ${vnf}    ${uuid}  ${service}    ${server_id}
-    \                                                  ...   ELSE   Preload Vnf    ${service_instance_id}   ${vnf_name}   ${vnf_type}   ${vf_module_name}    ${vf_module}    ${vnf}    ${uuid}  ${service}   ${server_id}
+    #   in Demo VNF flow old logic since we did not create the resource so @{vf_modules} is passed to Preload Vnf / Preload Gra
+    \   ${vf_module_type}   ${closedloop_vf_module}=   Run Keyword If   "${API_TYPE}"=="GRA_API"     Preload Gra    ${service_instance_id}   ${vnf_name}   ${vnf_type}   ${vf_module_name}    ${vf_modules}    ${vnf}    ${uuid}  ${service}    ${server_id}
+    \                                                  ...   ELSE   Preload Vnf    ${service_instance_id}   ${vnf_name}   ${vnf_type}   ${vf_module_name}    ${vf_modules}    ${vnf}    ${uuid}  ${service}   ${server_id}
 
 
     \   ${vf_module_id}=   Create VID VNF module    ${service_instance_id}    ${vf_module_name}    ${lcp_region}    ${tenant_name}     ${vf_module_type}   ${full_customer_name}   ${vnf_name}
index 42bde32..a0088b0 100644 (file)
@@ -14,6 +14,10 @@ Create VID VNF
     [Documentation]    Creates a VNF instance using VID for passed instance id with the passed service instance name
     [Arguments]    ${service_instance_id}    ${service_instance_name}    ${product_family}    ${lcp_region}    ${tenant}   ${vnf_type}   ${customer}   ${line_of_business}=LOB-Demonstration   ${platform}=Platform-Demonstration    ${cloud_owner_uc}=${GLOBAL_AAI_CLOUD_OWNER}
     Go To VID HOME
+    ##### TEST BIGGER WINDOW TO AVOID MASKED ITEMS PROBLEM #####
+    ${width}    ${height}=      Get Window Size
+    Set Window Size        2000   1000
+    ${width}    ${height}=      Get Window Size
     Click Link       xpath=//div[@heading = 'Search for Existing Service Instances']/a
     Wait Until Page Contains    Please search by    timeout=${GLOBAL_VID_UI_TIMEOUT_MEDIUM}