diff --git a/tests/manual-test-cases/Group13-vMotion/13-1-vMotion-VCH-Appliance.robot b/tests/manual-test-cases/Group13-vMotion/13-1-vMotion-VCH-Appliance.robot index bbea1af144..be87812278 100644 --- a/tests/manual-test-cases/Group13-vMotion/13-1-vMotion-VCH-Appliance.robot +++ b/tests/manual-test-cases/Group13-vMotion/13-1-vMotion-VCH-Appliance.robot @@ -15,7 +15,7 @@ *** Settings *** Documentation Test 13-1 - vMotion VCH Appliance Resource ../../resources/Util.robot -Suite Setup Wait Until Keyword Succeeds 10x 10m Create a VSAN Cluster vic-vmotion-13-1 +Suite Setup Nimbus Suite Setup Create a VSAN Cluster vic-vmotion-13-1 Suite Teardown Run Keyword And Ignore Error Nimbus Cleanup ${list} Test Teardown Run Keyword If Test Failed Gather All vSphere Logs diff --git a/tests/manual-test-cases/Group13-vMotion/13-2-vMotion-Container.robot b/tests/manual-test-cases/Group13-vMotion/13-2-vMotion-Container.robot index ab4b640dbf..7a8f4e103e 100644 --- a/tests/manual-test-cases/Group13-vMotion/13-2-vMotion-Container.robot +++ b/tests/manual-test-cases/Group13-vMotion/13-2-vMotion-Container.robot @@ -15,7 +15,7 @@ *** Settings *** Documentation Test 13-2 - vMotion Container Resource ../../resources/Util.robot -Suite Setup Wait Until Keyword Succeeds 10x 10m Create a VSAN Cluster vic-vmotion-13-2 +Suite Setup Nimbus Suite Setup Create a VSAN Cluster vic-vmotion-13-2 Suite Teardown Run Keyword And Ignore Error Nimbus Cleanup ${list} Test Teardown Run Keyword If Test Failed Gather All vSphere Logs diff --git a/tests/manual-test-cases/Group21-Registries/21-1-Whitelist.robot b/tests/manual-test-cases/Group21-Registries/21-1-Whitelist.robot index b7ce2bb732..4476f7498a 100644 --- a/tests/manual-test-cases/Group21-Registries/21-1-Whitelist.robot +++ b/tests/manual-test-cases/Group21-Registries/21-1-Whitelist.robot @@ -16,7 +16,7 @@ Documentation Test 21-01 - Whitelist Resource ../../resources/Util.robot Resource ../../resources/Harbor-Util.robot -Suite Setup Wait Until Keyword Succeeds 10x 10m Setup Harbor +Suite Setup Nimbus Suite Setup Setup Harbor Suite Teardown Nimbus Cleanup ${list} ${false} Test Teardown Run Keyword If Test Failed Cleanup VIC Appliance On Test Server diff --git a/tests/manual-test-cases/Group21-Registries/21-2-Artifactory.robot b/tests/manual-test-cases/Group21-Registries/21-2-Artifactory.robot index c70fc900c4..b0974f6ba2 100644 --- a/tests/manual-test-cases/Group21-Registries/21-2-Artifactory.robot +++ b/tests/manual-test-cases/Group21-Registries/21-2-Artifactory.robot @@ -15,7 +15,7 @@ *** Settings *** Documentation Test 21-2 - Artifactory Resource ../../resources/Util.robot -Suite Setup Wait Until Keyword Succeeds 10x 10m Artifactory Setup +Suite Setup Nimbus Suite Setup Artifactory Setup Suite Teardown Run Keyword And Ignore Error Nimbus Cleanup ${list} *** Keywords *** diff --git a/tests/manual-test-cases/Group5-Functional-Tests/5-1-Distributed-Switch.robot b/tests/manual-test-cases/Group5-Functional-Tests/5-1-Distributed-Switch.robot index ba06059830..664b5a2099 100644 --- a/tests/manual-test-cases/Group5-Functional-Tests/5-1-Distributed-Switch.robot +++ b/tests/manual-test-cases/Group5-Functional-Tests/5-1-Distributed-Switch.robot @@ -15,7 +15,7 @@ *** Settings *** Documentation Test 5-1 - Distributed Switch Resource ../../resources/Util.robot -Suite Setup Wait Until Keyword Succeeds 10x 10m Distributed Switch Setup +Suite Setup Nimbus Suite Setup Distributed Switch Setup Suite Teardown Run Keyword And Ignore Error Nimbus Cleanup ${list} *** Variables *** diff --git a/tests/manual-test-cases/Group5-Functional-Tests/5-10-Multiple-Datacenter.robot b/tests/manual-test-cases/Group5-Functional-Tests/5-10-Multiple-Datacenter.robot index e31246b970..1e929d2d1b 100644 --- a/tests/manual-test-cases/Group5-Functional-Tests/5-10-Multiple-Datacenter.robot +++ b/tests/manual-test-cases/Group5-Functional-Tests/5-10-Multiple-Datacenter.robot @@ -15,7 +15,7 @@ *** Settings *** Documentation Test 5-10 - Multiple Datacenters Resource ../../resources/Util.robot -Suite Setup Wait Until Keyword Succeeds 10x 10m Multiple Datacenter Setup +Suite Setup Nimbus Suite Setup Multiple Datacenter Setup Suite Teardown Run Keyword And Ignore Error Nimbus Cleanup ${list} *** Keywords *** diff --git a/tests/manual-test-cases/Group5-Functional-Tests/5-11-Multiple-Cluster.robot b/tests/manual-test-cases/Group5-Functional-Tests/5-11-Multiple-Cluster.robot index 24a90676c4..0951f3970c 100644 --- a/tests/manual-test-cases/Group5-Functional-Tests/5-11-Multiple-Cluster.robot +++ b/tests/manual-test-cases/Group5-Functional-Tests/5-11-Multiple-Cluster.robot @@ -15,7 +15,7 @@ *** Settings *** Documentation Test 5-11 - Multiple Clusters Resource ../../resources/Util.robot -Suite Setup Wait Until Keyword Succeeds 10x 10m Multiple Cluster Setup +Suite Setup Nimbus Suite Setup Multiple Cluster Setup Suite Teardown Run Keyword And Ignore Error Nimbus Cleanup Single VM '*5-11-multiple-cluster*' ${false} Test Teardown Cleanup VIC Appliance On Test Server diff --git a/tests/manual-test-cases/Group5-Functional-Tests/5-12-Multiple-VLAN.robot b/tests/manual-test-cases/Group5-Functional-Tests/5-12-Multiple-VLAN.robot index 4f0cdac74a..6e15c602b9 100644 --- a/tests/manual-test-cases/Group5-Functional-Tests/5-12-Multiple-VLAN.robot +++ b/tests/manual-test-cases/Group5-Functional-Tests/5-12-Multiple-VLAN.robot @@ -15,7 +15,7 @@ *** Settings *** Documentation Test 5-12 - Multiple VLAN Resource ../../resources/Util.robot -Suite Setup Wait Until Keyword Succeeds 10x 10m Multiple VLAN Setup +Suite Setup Nimbus Suite Setup Multiple VLAN Setup Suite Teardown Run Keyword And Ignore Error Nimbus Cleanup ${list} Test Teardown Cleanup VIC Appliance On Test Server diff --git a/tests/manual-test-cases/Group5-Functional-Tests/5-13-Invalid-ESXi-Install.robot b/tests/manual-test-cases/Group5-Functional-Tests/5-13-Invalid-ESXi-Install.robot index 3fcae6b647..976ab77cc6 100644 --- a/tests/manual-test-cases/Group5-Functional-Tests/5-13-Invalid-ESXi-Install.robot +++ b/tests/manual-test-cases/Group5-Functional-Tests/5-13-Invalid-ESXi-Install.robot @@ -15,7 +15,7 @@ *** Settings *** Documentation Test 5-13 - Invalid ESXi Install Resource ../../resources/Util.robot -Suite Setup Wait Until Keyword Succeeds 10x 10m Invalid ESXi Install Setup +Suite Setup Nimbus Suite Setup Invalid ESXi Install Setup Suite Teardown Run Keyword And Ignore Error Nimbus Cleanup ${list} *** Keywords *** diff --git a/tests/manual-test-cases/Group5-Functional-Tests/5-14-Remove-Container-OOB.robot b/tests/manual-test-cases/Group5-Functional-Tests/5-14-Remove-Container-OOB.robot index 32afdfcf7b..18c41b84c7 100644 --- a/tests/manual-test-cases/Group5-Functional-Tests/5-14-Remove-Container-OOB.robot +++ b/tests/manual-test-cases/Group5-Functional-Tests/5-14-Remove-Container-OOB.robot @@ -15,7 +15,7 @@ *** Settings *** Documentation Test 5-14 - Remove Container OOB Resource ../../resources/Util.robot -Suite Setup Wait Until Keyword Succeeds 10x 10m Remove Container OOB Setup +Suite Setup Nimbus Suite Setup Remove Container OOB Setup Suite Teardown Run Keyword And Ignore Error Nimbus Cleanup ${list} *** Keywords *** diff --git a/tests/manual-test-cases/Group5-Functional-Tests/5-15-NFS-Datastore.robot b/tests/manual-test-cases/Group5-Functional-Tests/5-15-NFS-Datastore.robot index 3008e5f590..3a1b68cec9 100644 --- a/tests/manual-test-cases/Group5-Functional-Tests/5-15-NFS-Datastore.robot +++ b/tests/manual-test-cases/Group5-Functional-Tests/5-15-NFS-Datastore.robot @@ -15,7 +15,7 @@ *** Settings *** Documentation Test 5-15 - NFS Datastore Resource ../../resources/Util.robot -Suite Setup Wait Until Keyword Succeeds 10x 10m NFS Datastore Setup +Suite Setup Nimbus Suite Setup NFS Datastore Setup Suite Teardown Run Keyword And Ignore Error Nimbus Cleanup Single VM '*5-15-nfs-datastore*' *** Keywords *** diff --git a/tests/manual-test-cases/Group5-Functional-Tests/5-17-FC-Datastore.robot b/tests/manual-test-cases/Group5-Functional-Tests/5-17-FC-Datastore.robot index 319d19952a..8c8ae10963 100644 --- a/tests/manual-test-cases/Group5-Functional-Tests/5-17-FC-Datastore.robot +++ b/tests/manual-test-cases/Group5-Functional-Tests/5-17-FC-Datastore.robot @@ -15,7 +15,7 @@ *** Settings *** Documentation Test 5-17 - FC Datastore Resource ../../resources/Util.robot -Suite Setup Wait Until Keyword Succeeds 10x 10m FC Datastore Setup +Suite Setup Nimbus Suite Setup FC Datastore Setup Suite Teardown Run Keyword And Ignore Error Nimbus Cleanup ${list} *** Keywords *** diff --git a/tests/manual-test-cases/Group5-Functional-Tests/5-18-Datastore-Cluster-SDRS.robot b/tests/manual-test-cases/Group5-Functional-Tests/5-18-Datastore-Cluster-SDRS.robot index e5a864be4a..af6881d428 100644 --- a/tests/manual-test-cases/Group5-Functional-Tests/5-18-Datastore-Cluster-SDRS.robot +++ b/tests/manual-test-cases/Group5-Functional-Tests/5-18-Datastore-Cluster-SDRS.robot @@ -15,7 +15,7 @@ *** Settings *** Documentation Test 5-18 - Datastore Cluster SDRS Resource ../../resources/Util.robot -#Suite Setup Wait Until Keyword Succeeds 10x 10m SDRS Datastore Setup +#Suite Setup Nimbus Suite Setup SDRS Datastore Setup #Test Teardown Run Keyword And Ignore Error Nimbus Cleanup ${list} *** Keywords *** diff --git a/tests/manual-test-cases/Group5-Functional-Tests/5-2-Cluster.robot b/tests/manual-test-cases/Group5-Functional-Tests/5-2-Cluster.robot index a19fffa6a7..f276979570 100644 --- a/tests/manual-test-cases/Group5-Functional-Tests/5-2-Cluster.robot +++ b/tests/manual-test-cases/Group5-Functional-Tests/5-2-Cluster.robot @@ -15,7 +15,7 @@ *** Settings *** Documentation Test 5-2 - Cluster Resource ../../resources/Util.robot -Suite Setup Wait Until Keyword Succeeds 10x 10m Cluster Setup +Suite Setup Nimbus Suite Setup Cluster Setup Suite Teardown Run Keyword And Ignore Error Nimbus Cleanup ${list} *** Keywords *** diff --git a/tests/manual-test-cases/Group5-Functional-Tests/5-21-Datastore-Path.robot b/tests/manual-test-cases/Group5-Functional-Tests/5-21-Datastore-Path.robot index d2b4da24a1..a623de003a 100644 --- a/tests/manual-test-cases/Group5-Functional-Tests/5-21-Datastore-Path.robot +++ b/tests/manual-test-cases/Group5-Functional-Tests/5-21-Datastore-Path.robot @@ -15,7 +15,7 @@ *** Settings *** Documentation Test 5-21 - Datastore-Path Resource ../../resources/Util.robot -Suite Setup Wait Until Keyword Succeeds 10x 10m Setup Suite ESX +Suite Setup Nimbus Suite Setup Setup Suite ESX Suite Teardown Run Keyword And Ignore Error Nimbus Cleanup ${list} *** Variables *** diff --git a/tests/manual-test-cases/Group5-Functional-Tests/5-22-NFS-Volume.robot b/tests/manual-test-cases/Group5-Functional-Tests/5-22-NFS-Volume.robot index 0590553911..b076ab57e8 100644 --- a/tests/manual-test-cases/Group5-Functional-Tests/5-22-NFS-Volume.robot +++ b/tests/manual-test-cases/Group5-Functional-Tests/5-22-NFS-Volume.robot @@ -15,7 +15,7 @@ *** Settings *** Documentation Test 5-22 - NFS Volume Resource ../../resources/Util.robot -Suite Setup Wait Until Keyword Succeeds 10x 10m Setup ESX And NFS Suite +Suite Setup Nimbus Suite Setup Setup ESX And NFS Suite Suite Teardown Run Keyword And Ignore Error NFS Volume Cleanup Test Teardown Gather NFS Logs diff --git a/tests/manual-test-cases/Group5-Functional-Tests/5-24-Non-vSphere-Local-Cluster.robot b/tests/manual-test-cases/Group5-Functional-Tests/5-24-Non-vSphere-Local-Cluster.robot index 98e71e1bb1..f2efb6fcd3 100644 --- a/tests/manual-test-cases/Group5-Functional-Tests/5-24-Non-vSphere-Local-Cluster.robot +++ b/tests/manual-test-cases/Group5-Functional-Tests/5-24-Non-vSphere-Local-Cluster.robot @@ -15,7 +15,7 @@ *** Settings *** Documentation Test 5-24 - Non vSphere Local Cluster Resource ../../resources/Util.robot -Suite Setup Wait Until Keyword Succeeds 10x 10m Non vSphere Local Cluster Install Setup +Suite Setup Nimbus Suite Setup Non vSphere Local Cluster Install Setup Suite Teardown Run Keyword And Ignore Error Nimbus Cleanup ${list} Test Teardown Cleanup VIC Appliance On Test Server diff --git a/tests/manual-test-cases/Group5-Functional-Tests/5-25-OPS-User-Grant.robot b/tests/manual-test-cases/Group5-Functional-Tests/5-25-OPS-User-Grant.robot index 166754c08e..91fbc46604 100644 --- a/tests/manual-test-cases/Group5-Functional-Tests/5-25-OPS-User-Grant.robot +++ b/tests/manual-test-cases/Group5-Functional-Tests/5-25-OPS-User-Grant.robot @@ -15,7 +15,7 @@ *** Settings *** Documentation Test 5-25 - OPS-User-Grant Resource ../../resources/Util.robot -Suite Setup Wait Until Keyword Succeeds 10x 10m Ops User Create +Suite Setup Nimbus Suite Setup Ops User Create Suite Teardown Run Keyword And Ignore Error Nimbus Cleanup ${list} *** Keywords *** diff --git a/tests/manual-test-cases/Group5-Functional-Tests/5-26-Static-IP-Address.robot b/tests/manual-test-cases/Group5-Functional-Tests/5-26-Static-IP-Address.robot index 937569d72f..56e73b6786 100644 --- a/tests/manual-test-cases/Group5-Functional-Tests/5-26-Static-IP-Address.robot +++ b/tests/manual-test-cases/Group5-Functional-Tests/5-26-Static-IP-Address.robot @@ -22,7 +22,7 @@ Suite Teardown Run Keyword And Ignore Error Nimbus Cleanup ${list} *** Keywords *** Setup VC With Static IP ${name}= Evaluate 'vic-5-26-' + str(random.randint(1000,9999)) modules=random - Wait Until Keyword Succeeds 10x 10m Create Simple VC Cluster With Static IP ${name} + Nimbus Suite Setup Create Simple VC Cluster With Static IP ${name} *** Test Cases *** Test diff --git a/tests/manual-test-cases/Group5-Functional-Tests/5-27-Selenium-Grid.robot b/tests/manual-test-cases/Group5-Functional-Tests/5-27-Selenium-Grid.robot index 573baef0e7..67933f6684 100644 --- a/tests/manual-test-cases/Group5-Functional-Tests/5-27-Selenium-Grid.robot +++ b/tests/manual-test-cases/Group5-Functional-Tests/5-27-Selenium-Grid.robot @@ -15,7 +15,7 @@ *** Settings *** Documentation Test 5-27 - Selenium Grid Resource ../../resources/Util.robot -Suite Setup Wait Until Keyword Succeeds 10x 10m Selenium Grid Test Setup +Suite Setup Nimbus Suite Setup Selenium Grid Test Setup Suite Teardown Run Keyword And Ignore Error Nimbus Cleanup ${list} *** Keywords *** diff --git a/tests/manual-test-cases/Group5-Functional-Tests/5-28-VICAdmin-Isolated.robot b/tests/manual-test-cases/Group5-Functional-Tests/5-28-VICAdmin-Isolated.robot index 173710c1c6..48585aaf95 100644 --- a/tests/manual-test-cases/Group5-Functional-Tests/5-28-VICAdmin-Isolated.robot +++ b/tests/manual-test-cases/Group5-Functional-Tests/5-28-VICAdmin-Isolated.robot @@ -25,7 +25,7 @@ Deploy Testbed With Static IP Setup VC With No WAN ${name}= Evaluate 'vic-5-28-' + str(random.randint(1000,9999)) modules=random - Wait Until Keyword Succeeds 10x 10m Create Simple VC Cluster With Static IP ${name} + Nimbus Suite Setup Create Simple VC Cluster With Static IP ${name} Set Test Environment Variables Log To Console Create a vch with a public network on a no-wan portgroup. diff --git a/tests/manual-test-cases/Group5-Functional-Tests/5-3-Enhanced-Linked-Mode.robot b/tests/manual-test-cases/Group5-Functional-Tests/5-3-Enhanced-Linked-Mode.robot index dd69786dff..17e61a50cd 100644 --- a/tests/manual-test-cases/Group5-Functional-Tests/5-3-Enhanced-Linked-Mode.robot +++ b/tests/manual-test-cases/Group5-Functional-Tests/5-3-Enhanced-Linked-Mode.robot @@ -15,7 +15,7 @@ *** Settings *** Documentation Test 5-3 - Enhanced Linked Mode Resource ../../resources/Util.robot -Suite Setup Wait Until Keyword Succeeds 10x 10m Enhanced Link Mode Setup +Suite Setup Nimbus Suite Setup Enhanced Link Mode Setup Suite Teardown Run Keyword And Ignore Error Nimbus Cleanup ${list} *** Keywords *** diff --git a/tests/manual-test-cases/Group5-Functional-Tests/5-4-High-Availability.robot b/tests/manual-test-cases/Group5-Functional-Tests/5-4-High-Availability.robot index 31339708ed..18e73e63af 100644 --- a/tests/manual-test-cases/Group5-Functional-Tests/5-4-High-Availability.robot +++ b/tests/manual-test-cases/Group5-Functional-Tests/5-4-High-Availability.robot @@ -15,7 +15,7 @@ *** Settings *** Documentation Test 5-4 - High Availability Resource ../../resources/Util.robot -Suite Setup Wait Until Keyword Succeeds 10x 10m High Availability Setup +Suite Setup Nimbus Suite Setup High Availability Setup Suite Teardown Nimbus Cleanup ${list} Test Teardown Run Keyword If Test Failed Gather vSphere Logs diff --git a/tests/manual-test-cases/Group5-Functional-Tests/5-5-Heterogeneous-ESXi.robot b/tests/manual-test-cases/Group5-Functional-Tests/5-5-Heterogeneous-ESXi.robot index 54eb917fbf..f6a95741fa 100644 --- a/tests/manual-test-cases/Group5-Functional-Tests/5-5-Heterogeneous-ESXi.robot +++ b/tests/manual-test-cases/Group5-Functional-Tests/5-5-Heterogeneous-ESXi.robot @@ -15,7 +15,7 @@ *** Settings *** Documentation Test 5-5 - Heterogeneous ESXi Resource ../../resources/Util.robot -Suite Setup Wait Until Keyword Succeeds 10x 10m Heterogenous ESXi Setup +Suite Setup Nimbus Suite Setup Heterogenous ESXi Setup Suite Teardown Run Keyword And Ignore Error Nimbus Cleanup ${list} Force Tags hetero @@ -27,15 +27,15 @@ Heterogenous ESXi Setup ${pid-vc}= Deploy Nimbus vCenter Server Async ${vc} Set Suite Variable @{list} %{NIMBUS_USER}-${vc} - Run Keyword And Ignore Error Cleanup Nimbus PXE folder %{NIMBUS_USER} %{NIMBUS_PASSWORD} + Run Keyword And Ignore Error Cleanup Nimbus Folders ${deletePXE}=%{true} ${esx1} ${esx1-ip}= Deploy Nimbus ESXi Server %{NIMBUS_USER} %{NIMBUS_PASSWORD} 3029944 Append To List ${list} ${esx1} - Run Keyword And Ignore Error Cleanup Nimbus PXE folder %{NIMBUS_USER} %{NIMBUS_PASSWORD} + Run Keyword And Ignore Error Cleanup Nimbus Folders ${deletePXE}=%{true} ${esx2} ${esx2-ip}= Deploy Nimbus ESXi Server %{NIMBUS_USER} %{NIMBUS_PASSWORD} 5572656 Append To List ${list} ${esx2} - Run Keyword And Ignore Error Cleanup Nimbus PXE folder %{NIMBUS_USER} %{NIMBUS_PASSWORD} + Run Keyword And Ignore Error Cleanup Nimbus Folders ${deletePXE}=%{true} ${esx3} ${esx3-ip}= Deploy Nimbus ESXi Server %{NIMBUS_USER} %{NIMBUS_PASSWORD} Append To List ${list} ${esx3} diff --git a/tests/manual-test-cases/Group5-Functional-Tests/5-6-1-VSAN-Simple.robot b/tests/manual-test-cases/Group5-Functional-Tests/5-6-1-VSAN-Simple.robot index abb4e6bd85..33aa4c81ff 100644 --- a/tests/manual-test-cases/Group5-Functional-Tests/5-6-1-VSAN-Simple.robot +++ b/tests/manual-test-cases/Group5-Functional-Tests/5-6-1-VSAN-Simple.robot @@ -15,7 +15,7 @@ *** Settings *** Documentation Test 5-6-1 - VSAN-Simple Resource ../../resources/Util.robot -Suite Setup Wait Until Keyword Succeeds 10x 10m Simple VSAN Setup +Suite Setup Nimbus Suite Setup Simple VSAN Setup Suite Teardown Run Keyword And Ignore Error Nimbus Cleanup ${list} *** Keywords *** @@ -24,28 +24,25 @@ Simple VSAN Setup Run Keyword And Ignore Error Nimbus Cleanup ${list} ${false} ${name}= Evaluate 'vic-vsan-' + str(random.randint(1000,9999)) modules=random Set Suite Variable ${user} %{NIMBUS_USER} - ${out}= Deploy Nimbus Testbed %{NIMBUS_USER} %{NIMBUS_PASSWORD} --plugin testng --vcfvtBuildPath /dbc/pa-dbc1111/mhagen/ --noSupportBundles --vcvaBuild ${VC_VERSION} --esxPxeDir ${ESX_VERSION} --esxBuild ${ESX_VERSION} --testbedName vic-vsan-simple-pxeBoot-vcva --runName ${name} + ${out}= Deploy Nimbus Testbed %{NIMBUS_USER} %{NIMBUS_PASSWORD} spec=vic-vsan.rb args=--plugin testng --noSupportBundles --vcvaBuild ${VC_VERSION} --esxPxeDir ${ESX_VERSION} --esxBuild ${ESX_VERSION} --testbedName vic-vsan-simple-pxeBoot-vcva --runName ${name} + + Log ${out} Should Contain ${out} "deployment_result"=>"PASS" + ${out}= Split To Lines ${out} :FOR ${line} IN @{out} - \ ${status}= Run Keyword And Return Status Should Contain ${line} .vcva-${VC_VERSION}' is up. IP: + \ ${status}= Run Keyword And Return Status Should Contain ${line} .vc.0' is up. IP: \ ${ip}= Run Keyword If ${status} Fetch From Right ${line} ${SPACE} \ Run Keyword If ${status} Set Suite Variable ${vc-ip} ${ip} \ Exit For Loop If ${status} - Set Suite Variable @{list} ${user}-${name}.vcva-${VC_VERSION} ${user}-${name}.esx.0 ${user}-${name}.esx.1 ${user}-${name}.esx.2 ${user}-${name}.esx.3 ${user}-${name}.nfs.0 ${user}-${name}.iscsi.0 + Set Suite Variable @{list} ${user}-${name}.vcva-${VC_VERSION} ${user}-${name}.esx.0 ${user}-${name}.esx.1 ${user}-${name}.esx.2 ${user}-${name}.esx.3 ${user}-${name}.nfs.0 Log To Console Set environment variables up for GOVC Set Environment Variable GOVC_URL ${vc-ip} Set Environment Variable GOVC_USERNAME Administrator@vsphere.local Set Environment Variable GOVC_PASSWORD Admin\!23 - Add Host To Distributed Switch /vcqaDC/host/cls - - Log To Console Enable DRS and VSAN on the cluster - ${out}= Run govc cluster.change -drs-enabled /vcqaDC/host/cls - Should Be Empty ${out} - Log To Console Deploy VIC to the VC cluster Set Environment Variable TEST_URL_ARRAY ${vc-ip} Set Environment Variable TEST_USERNAME Administrator@vsphere.local diff --git a/tests/manual-test-cases/Group5-Functional-Tests/5-6-2-VSAN-Complex.robot b/tests/manual-test-cases/Group5-Functional-Tests/5-6-2-VSAN-Complex.disabled similarity index 90% rename from tests/manual-test-cases/Group5-Functional-Tests/5-6-2-VSAN-Complex.robot rename to tests/manual-test-cases/Group5-Functional-Tests/5-6-2-VSAN-Complex.disabled index 5c0306b646..a4dc6cc87f 100644 --- a/tests/manual-test-cases/Group5-Functional-Tests/5-6-2-VSAN-Complex.robot +++ b/tests/manual-test-cases/Group5-Functional-Tests/5-6-2-VSAN-Complex.disabled @@ -1,4 +1,4 @@ -# Copyright 2016-2017 VMware, Inc. All Rights Reserved. +# Copyright 2016-2018 VMware, Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -15,7 +15,7 @@ *** Settings *** Documentation Test 5-6-2 - VSAN-Complex Resource ../../resources/Util.robot -Suite Setup Wait Until Keyword Succeeds 10x 10m VSAN Complex Setup +Suite Setup Nimbus Suite Setup VSAN Complex Setup Suite Teardown Run Keyword And Ignore Error Nimbus Cleanup ${list} Force Tags vsan-complex @@ -25,9 +25,11 @@ VSAN Complex Setup Run Keyword And Ignore Error Nimbus Cleanup ${list} ${false} ${name}= Evaluate 'vic-vsan-complex-' + str(random.randint(1000,9999)) modules=random Set Suite Variable ${user} %{NIMBUS_USER} - ${out}= Deploy Nimbus Testbed %{NIMBUS_USER} %{NIMBUS_PASSWORD} --plugin testng --vcfvtBuildPath /dbc/pa-dbc1111/mhagen/ --noSupportBundles --vcvaBuild ${VC_VERSION} --esxPxeDir ${ESX_VERSION} --esxBuild ${ESX_VERSION} --testbedName vic-vsan-complex-pxeBoot-vcva --runName ${name} + ${out}= Deploy Nimbus Testbed %{NIMBUS_USER} %{NIMBUS_PASSWORD} spec=vic-vsan.rb args=--plugin testng --noSupportBundles --vcvaBuild ${VC_VERSION} --esxPxeDir ${ESX_VERSION} --esxBuild ${ESX_VERSION} --testbedName vic-vsan-complex-pxeBoot-vcva --runName ${name} + Log ${out} Should Contain ${out} "deployment_result"=>"PASS" + ${out}= Split To Lines ${out} :FOR ${line} IN @{out} \ ${status}= Run Keyword And Return Status Should Contain ${line} .vcva-${VC_VERSION}' is up. IP: diff --git a/tests/manual-test-cases/Group5-Functional-Tests/5-8-DRS.robot b/tests/manual-test-cases/Group5-Functional-Tests/5-8-DRS.robot index a6690e6e5c..c1d7ad9c7d 100644 --- a/tests/manual-test-cases/Group5-Functional-Tests/5-8-DRS.robot +++ b/tests/manual-test-cases/Group5-Functional-Tests/5-8-DRS.robot @@ -15,7 +15,7 @@ *** Settings *** Documentation Test 5-8 - DRS Resource ../../resources/Util.robot -Suite Setup Wait Until Keyword Succeeds 10x 10m DRS Setup +Suite Setup Nimbus Suite Setup DRS Setup Suite Teardown Nimbus Cleanup ${list} *** Keywords *** diff --git a/tests/resources/Nimbus-Util.robot b/tests/resources/Nimbus-Util.robot index 15d4bd78f7..9564ee29e9 100644 --- a/tests/resources/Nimbus-Util.robot +++ b/tests/resources/Nimbus-Util.robot @@ -198,17 +198,17 @@ Deploy Nimbus Testbed Wait Until Keyword Succeeds 2 min 30 sec Login ${user} ${password} ${specarg}= Set Variable If '${spec}' == '${EMPTY}' ${EMPTY} --testbedSpecRubyFile ./%{BUILD_TAG}/testbeds/${spec} - Run Keyword Unless '${spec}' == '${EMPTY}' Put File tests/resources/nimbus-testbeds/${spec} destination=./%{BUILD_TAG}/testbeds/ :FOR ${IDX} IN RANGE 1 5 + \ Run Keyword Unless '${spec}' == '${EMPTY}' Put File tests/resources/nimbus-testbeds/${spec} destination=./%{BUILD_TAG}/testbeds/ \ ${out}= Execute Command ${NIMBUS_LOCATION} nimbus-testbeddeploy --lease 0.25 ${specarg} ${args} \ Log ${out} \ # Make sure the deploy actually worked \ ${status}= Run Keyword And Return Status Should Contain ${out} "deployment_result"=>"PASS" \ Return From Keyword If ${status} ${out} - \ Log To Console Nimbus deployment ${IDX} failed, trying again in 5 minutes - \ Sleep 5 minutes - Fail Deploy Nimbus Testbed Failed 5 times over the course of more than 25 minutes + \ Log To Console Nimbus deployment ${IDX} failed, trying again in 1 minute + \ Sleep 1 minutes + Fail Deploy Nimbus Testbed Failed 5 times over the course of more than 5 minutes Kill Nimbus Server [Arguments] ${user} ${password} ${name} @@ -416,13 +416,14 @@ Deploy Simple NFS Testbed [Arguments] ${user} ${password} ${spec}= ${args}= ${name}= Evaluate 'NFS-' + str(random.randint(1000,9999)) + str(time.clock()) modules=random,time Log To Console \nDeploying Nimbus NFS testbed: ${name} - Open Connection %{NIMBUS_GW} - Wait Until Keyword Succeeds 2 min 30 sec Login ${user} ${password} - ${out}= Execute Command ${NIMBUS_LOCATION} nimbus-testbeddeploy spec=${spec} args=--testbedName nfs --runName ${name} ${args} + ${out}= Deploy Nimbus Testbed user=${user} password=${password} spec=${spec} args=--testbedName nfs --runName ${name} ${args} Log ${out} - # Make sure the deploy actually worked + + # Make sure the deploy actually worked and all components are up Should Contain ${out} ${name}.nfs.0' is up. IP: + Should Contain ${out} ${name}.nfs.1' is up. IP: + Should Contain ${out} ${name}.esx.0' is up. IP: Open Connection %{NIMBUS_GW} Wait Until Keyword Succeeds 10 min 30 sec Login %{NIMBUS_USER} %{NIMBUS_PASSWORD} @@ -571,3 +572,17 @@ Get Name of First Local Storage For Host ${datastores}= Run govc host.info -host ${host} -json | jq -r '.HostSystems[].Config.FileSystemVolume.MountInfo[].Volume | select (.Type\=\="VMFS") | select (.Local\=\=true) | .Name' @{datastores}= Split To Lines ${datastores} [Return] @{datastores}[0] + +# Simple wrapper to Wait Until Keyword Succeeds that allows callers to: +# * use default retry count and delay +# * specify specific retry counts and delays +# * executor can globally override the above via the environment variables: +# NIMBUS_RETRY_ATTEMPTS +# NIMBUS_RETRY_DELAY +Nimbus Suite Setup + [Arguments] ${keyword} ${attempts}=1x ${delay}=1m @{varargs} + + ${useAttempts}= Get Environment Variable NIMBUS_RETRY_ATTEMPTS ${attempts}x + ${useDelay}= Get Environment Variable NIMBUS_RETRY_DELAY ${delay} + + Wait Until Keyword Succeeds ${useAttempts} ${useDelay} ${keyword} @{varargs} diff --git a/tests/resources/nimbus-testbeds/vic-vsan.rb b/tests/resources/nimbus-testbeds/vic-vsan.rb index f934be0384..c764e70d99 100644 --- a/tests/resources/nimbus-testbeds/vic-vsan.rb +++ b/tests/resources/nimbus-testbeds/vic-vsan.rb @@ -1,4 +1,6 @@ + oneGB = 1 * 1000 * 1000 # in KB + $testbed = Proc.new do |type, esxStyle, vcStyle, dbType, location| esxStyle ||= 'pxeBoot' vcStyle ||= 'vpxInstall' @@ -13,62 +15,58 @@ nameParts << dbType end - if type == 'complex' - numEsx = 8 - numCPUs = 4 - vmsPerHost = 1 - addHosts = 'vsan-complex-vcqafvt' - elsif type == 'simple' - numEsx = 4 - numCPUs = 4 - vmsPerHost = 0 - addHosts = 'vsan-simple-vcqafvt' - elsif type == 'complexCPU' - numEsx = 8 - numCPUs = 2 - vmsPerHost = 1 - addHosts = 'vsan-complex-vcqafvt' - else - numEsx = 4 - numCPUs = 2 - vmsPerHost = 0 - addHosts = 'vsan-simple-vcqafvt' - end testbed = { - 'name' => nameParts.join('-'), - 'esx' => (0...numEsx).map do |i| + "name" => nameParts.join('-'), + "version" => 3, + "esx" => (0..3).map do | idx | { - 'name' => "esx.#{i}", - 'style' => esxStyle, - 'disks' => [ 30 * oneGB, 30 * oneGB, 30 * oneGB], + "name" => "esx.#{idx}", + "vc" => "vc.0", + "style" => "pxeInstall", + "desiredPassword" => "e2eFunctionalTest", + 'numMem' => 13 * 1024, + 'numCPUs' => 4, + "disks" => [ 30 * oneGB, 30 * oneGB, 30 * oneGB], 'freeLocalLuns' => 1, 'freeSharedLuns' => 2, - 'numMem' => 13 * 1024, - 'numCPUs' => numCPUs, 'ssds' => [ 5*oneGB ], 'nics' => 2, - 'staf' => false, - 'desiredPassword' => 'e2eFunctionalTest', 'vmotionNics' => ['vmk0'], - 'mountNfs' => ['nfs.0'], + 'staf' => false, + "mountNfs" => ["nfs.0"], + "clusterName" => "cls", } end, - 'vc' => { - 'type' => vcStyle, - 'additionalScript' => [], # XXX: Create users - 'addHosts' => addHosts, - 'linuxCertFile' => TestngLauncher.vcvaCertFile, - 'dbType' => dbType, - }, + + "nfs" => [ + { + "name" => "nfs.0", + "type" => "NFS41" + } + ], + + "vcs" => [ + { + "name" => "vc.0", + "type" => "vcva", + "dcName" => "dc1", + "clusters" => [{"name" => "cls", "vsan" => true, "enableDrs" => true, "enableHA" => true}], + "addHosts" => "allInSameCluster", + } + ], + 'vsan' => true, - 'postBoot' => Proc.new do |runId, testbedSpec, vc, esxList, iscsiList| - ovf = NimbusUtils.get_absolute_ovf("CentOS/VM_OVF10.ovf") - if location && $nimbusEnv && $nimbusEnv['NIMBUS'] =~ /gamma/ - ovf = 'http://10.116.111.50/testwareTestCentOS/VM_OVF10.ovf' - end + 'vsanEnable' => true, # pulled from test-vpx/testbeds/vc-on-vsan.rb - cloudVc = vc - vim = VIM.connect cloudVc.rbvmomiConnectSpec + "postBoot" => Proc.new do |runId, testbedSpec, vmList, catApi, logDir| + esxList = vmList['esx'] + esxList.each do |host| + host.ssh do |ssh| + ssh.exec!("esxcli network firewall set -e false") + end + end + vc = vmList['vc'][0] + vim = VIM.connect vc.rbvmomiConnectSpec datacenters = vim.serviceInstance.content.rootFolder.childEntity.grep(RbVmomi::VIM::Datacenter) raise "Couldn't find a Datacenter precreated" if datacenters.length == 0 datacenter = datacenters.first @@ -83,7 +81,7 @@ :configSpec => { :name => "test-ds" }, - } + } ).wait_for_completion Log.info "Vds DSwitch created" @@ -120,39 +118,25 @@ ).wait_for_completion Log.info "bridge DPG created" - VcQaTestbedCommon.postBoot( - vmsPerHost, - NimbusUtils.get_absolute_ovf("CentOS/VM_OVF10.ovf"), - runId, testbedSpec, vc, esxList, iscsiList) - end, - 'nfs' => [ - { - 'name' => "nfs.0" - }, - ], + Log.info "Add hosts to the DVS" + onecluster_pnic_spec = [ VIM::DistributedVirtualSwitchHostMemberPnicSpec({:pnicDevice => 'vmnic1'}) ] + dvs_config = VIM::DVSConfigSpec({ + :configVersion => dvs.config.configVersion, + :host => cluster.host.map do |host| + { + :operation => :add, + :host => host, + :backing => VIM::DistributedVirtualSwitchHostMemberPnicBacking({ + :pnicSpec => onecluster_pnic_spec + }) + } + end + }) + dvs.ReconfigureDvs_Task(:spec => dvs_config).wait_for_completion + Log.info "Hosts added to DVS successfully" + end } - if dbType == 'mssql' - testbed['genericVM'] ||= [] - testbed['genericVM'] << { - 'name' => 'vc-mssql', - 'type' => 'mssql2k8', - } - testbed['vc']['dbHost'] = 'vc-mssql' - end - - testbed = VcQaTestbedCommon.addSharedDisks testbed, [10, 10, 20, 20], sharedStorageStyle # 2 x 20gb shared vmfs, 2 x 10gb free luns as defined by 'freeSharedLuns', DON'T CHANGE THE ORDERING UNLESS YOU KNOW WHAT YOU'RE DOING! - testbed end -[:pxeBoot, :fullInstall].each do |esxStyle| - [:vpxInstall, :vcva].each do |vcStyle| - [:embedded, :mssql, :oracle].each do |dbType| - ['complex', 'simple', 'complexCPU', 'simpleCPU'].each do |type| - testbedSpec = $testbed.call(type, esxStyle, vcStyle, dbType) - Nimbus::TestbedRegistry.registerTestbed testbedSpec - end - end - end -end