From f79532550d0cf76bf526732e138e2a8f9b94a0d7 Mon Sep 17 00:00:00 2001 From: George Hicken Date: Sun, 17 Jun 2018 14:42:52 -0700 Subject: [PATCH 1/3] Additional fixes to integration tests This builds on #8047 and #8063 to address some outstanding issues left by that work. In the case of the hetrogeneous and NFS tests, it is test updates necessitated by the prior Nimbus-Util.robot updates. In the case of the VSAN tests it is addressing removal of a non-existent path and switching to use the related testbed spec. --- .../Group5-Functional-Tests/5-5-Heterogeneous-ESXi.robot | 6 +++--- .../Group5-Functional-Tests/5-6-1-VSAN-Simple.robot | 5 ++++- .../Group5-Functional-Tests/5-6-2-VSAN-Complex.robot | 6 ++++-- tests/resources/Nimbus-Util.robot | 9 +++++---- 4 files changed, 16 insertions(+), 10 deletions(-) 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..0c462ce79a 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 @@ -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..419542c4fc 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 @@ -24,8 +24,11 @@ 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} args=--plugin testng --noSupportBundles --vcvaBuild ${VC_VERSION} --esxPxeDir ${ESX_VERSION} --esxBuild ${ESX_VERSION} --testbedName vic-vsan-simple-pxeBoot-vcva --runName ${name} spec=vic-vsan.rb + + 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-6-2-VSAN-Complex.robot b/tests/manual-test-cases/Group5-Functional-Tests/5-6-2-VSAN-Complex.robot index 5c0306b646..9ca8f00f6f 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.robot @@ -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. @@ -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} args=--plugin testng --noSupportBundles --vcvaBuild ${VC_VERSION} --esxPxeDir ${ESX_VERSION} --esxBuild ${ESX_VERSION} --testbedName vic-vsan-complex-pxeBoot-vcva --runName ${name} spec=vic-vsan.rb + 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/resources/Nimbus-Util.robot b/tests/resources/Nimbus-Util.robot index 15d4bd78f7..265cc8ab95 100644 --- a/tests/resources/Nimbus-Util.robot +++ b/tests/resources/Nimbus-Util.robot @@ -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} From bbae80abba378c5f21e1efad97fd9f6fc787f2a4 Mon Sep 17 00:00:00 2001 From: George Hicken Date: Sun, 17 Jun 2018 15:28:12 -0700 Subject: [PATCH 2/3] Allow override of nimbus retry and delay --- .../13-1-vMotion-VCH-Appliance.robot | 2 +- .../Group13-vMotion/13-2-vMotion-Container.robot | 2 +- .../Group21-Registries/21-1-Whitelist.robot | 2 +- .../Group21-Registries/21-2-Artifactory.robot | 2 +- .../5-1-Distributed-Switch.robot | 2 +- .../5-10-Multiple-Datacenter.robot | 2 +- .../5-11-Multiple-Cluster.robot | 2 +- .../5-12-Multiple-VLAN.robot | 2 +- .../5-13-Invalid-ESXi-Install.robot | 2 +- .../5-14-Remove-Container-OOB.robot | 2 +- .../5-15-NFS-Datastore.robot | 2 +- .../5-17-FC-Datastore.robot | 2 +- .../5-18-Datastore-Cluster-SDRS.robot | 2 +- .../Group5-Functional-Tests/5-2-Cluster.robot | 2 +- .../5-21-Datastore-Path.robot | 2 +- .../Group5-Functional-Tests/5-22-NFS-Volume.robot | 2 +- .../5-24-Non-vSphere-Local-Cluster.robot | 2 +- .../5-25-OPS-User-Grant.robot | 2 +- .../5-26-Static-IP-Address.robot | 2 +- .../5-27-Selenium-Grid.robot | 2 +- .../5-28-VICAdmin-Isolated.robot | 2 +- .../5-3-Enhanced-Linked-Mode.robot | 2 +- .../5-4-High-Availability.robot | 2 +- .../5-5-Heterogeneous-ESXi.robot | 2 +- .../5-6-1-VSAN-Simple.robot | 2 +- .../5-6-2-VSAN-Complex.robot | 2 +- .../Group5-Functional-Tests/5-8-DRS.robot | 2 +- tests/resources/Nimbus-Util.robot | 14 ++++++++++++++ 28 files changed, 41 insertions(+), 27 deletions(-) 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 0c462ce79a..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 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 419542c4fc..ecfbce36f3 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 *** 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.robot index 9ca8f00f6f..b0d04a00ee 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.robot @@ -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 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 265cc8ab95..56f792b63e 100644 --- a/tests/resources/Nimbus-Util.robot +++ b/tests/resources/Nimbus-Util.robot @@ -572,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 +# * robot framework executor to override both the above via the following 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} + ${useDelay}= Get Environment Variable NIMBUS_RETRY_DELAY ${delay} + + Wait Until Keyword Succeeds ${useAttempts} ${useDelay} ${keyword} @{varargs} \ No newline at end of file From 41ee6413a629862379e04903d3e7c2496567b7f8 Mon Sep 17 00:00:00 2001 From: George Hicken Date: Mon, 18 Jun 2018 10:08:31 -0700 Subject: [PATCH 3/3] Simplify vsan testbed and disable complex case This uses a testbed descriptor based off the vic-simple-cluster spec instead of what appeared to be a library spec, testng/testbeds/vsan.rb. This disabled the complex vSAN testsuite at this time as I could not infer what the complex case was testing, and it is not in the test doc. It's possible that it's testing multiple vSAN datastores and our ability to use either but that's pure speculation. --- .../5-6-1-VSAN-Simple.robot | 12 +- ...plex.robot => 5-6-2-VSAN-Complex.disabled} | 2 +- tests/resources/Nimbus-Util.robot | 14 +- tests/resources/nimbus-testbeds/vic-vsan.rb | 138 ++++++++---------- 4 files changed, 72 insertions(+), 94 deletions(-) rename tests/manual-test-cases/Group5-Functional-Tests/{5-6-2-VSAN-Complex.robot => 5-6-2-VSAN-Complex.disabled} (94%) 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 ecfbce36f3..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 @@ -24,31 +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} args=--plugin testng --noSupportBundles --vcvaBuild ${VC_VERSION} --esxPxeDir ${ESX_VERSION} --esxBuild ${ESX_VERSION} --testbedName vic-vsan-simple-pxeBoot-vcva --runName ${name} spec=vic-vsan.rb + ${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 94% 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 b0d04a00ee..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 @@ -25,7 +25,7 @@ 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} args=--plugin testng --noSupportBundles --vcvaBuild ${VC_VERSION} --esxPxeDir ${ESX_VERSION} --esxBuild ${ESX_VERSION} --testbedName vic-vsan-complex-pxeBoot-vcva --runName ${name} spec=vic-vsan.rb + ${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" diff --git a/tests/resources/Nimbus-Util.robot b/tests/resources/Nimbus-Util.robot index 56f792b63e..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} @@ -576,13 +576,13 @@ Get Name of First Local Storage For Host # Simple wrapper to Wait Until Keyword Succeeds that allows callers to: # * use default retry count and delay # * specify specific retry counts and delays -# * robot framework executor to override both the above via the following environment variables: +# * 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} + ${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} \ No newline at end of file + 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