Skip to content

Commit

Permalink
Update assertion to setup testbed successfully
Browse files Browse the repository at this point in the history
Output of nimbus command is changed when deploying VIC testbed, so we
need to change assertion for it.
  • Loading branch information
wendingh committed Oct 18, 2021
1 parent d4b5f00 commit 91f8775
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ Simple VSAN Setup
Set Suite Variable ${user} %{NIMBUS_PERSONAL_USER}
${out}= Deploy Nimbus Testbed 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}= Execute Command ${NIMBUS_LOCATION_FULL} USER=%{NIMBUS_PERSONAL_USER} nimbus-ctl ip %{NIMBUS_PERSONAL_USER}-${name}.vc.0 | grep %{NIMBUS_PERSONAL_USER}-${name}.vc.0
${vc_ip}= Fetch From Right ${out} ${SPACE}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ VSAN Complex Setup
${out}= Deploy Nimbus Testbed 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}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ FC Datastore Setup
${name}= Evaluate 'vic-fc-' + str(random.randint(1000,9999)) modules=random
${out}= Deploy Nimbus Testbed args=--plugin testng --customizeTestbed '/esx desiredPassword=e2eFunctionalTest' --noSupportBundles --vcvaBuild "${VC_VERSION}" --esxBuild "${ESX_VERSION}" --testbedName vcqa-sdrs-fc-fullInstall-vcva --runName vic-fc
Set Suite Variable @{list} %{NIMBUS_PERSONAL_USER}-vic-fc.vcva-${VC_VERSION} %{NIMBUS_PERSONAL_USER}-vic-fc.esx.0 %{NIMBUS_PERSONAL_USER}-vic-fc.esx.1 %{NIMBUS_PERSONAL_USER}-vic-fc.fc.0
Should Contain ${out} "deployment_result"=>"PASS"

${out}= Execute Command ${NIMBUS_LOCATION_FULL} USER=%{NIMBUS_PERSONAL_USER} nimbus-ctl ip %{NIMBUS_PERSONAL_USER}-vic-fc.vcva-${VC_VERSION} | grep %{NIMBUS_PERSONAL_USER}-vic-fc.vcva-${VC_VERSION}
${vc-ip}= Fetch From Right ${out} ${SPACE}
Expand Down
4 changes: 2 additions & 2 deletions tests/resources/Nimbus-Util.robot
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ Deploy Nimbus Testbed
\ ${out}= Execute Command ${NIMBUS_LOCATION_FULL} USER=${personal_user} 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"
\ ${status}= Run Keyword And Return Status Should Contain ${out} END TESTBED DEPLOYMENT
\ Run Keyword If ${status} and '${spec}' != '${EMPTY}' Execute Command rm -rf ./%{BUILD_TAG}/testbeds/${spec}-${suffix}
\ Return From Keyword If ${status} ${out}
\ Log To Console Nimbus deployment ${index} failed, trying again in 1 minute
Expand All @@ -229,7 +229,7 @@ Deploy Nimbus Testbed
\ ${out}= Execute Command ${NIMBUS_LOCATION_FULL} USER=${personal_user} 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"
\ ${status}= Run Keyword And Return Status Should Contain ${out} END TESTBED DEPLOYMENT
\ Return From Keyword If ${status} ${out}
\ Log To Console Nimbus deployment ${index} failed, trying again in 1 minute
\ Sleep 1 minutes
Expand Down

0 comments on commit 91f8775

Please sign in to comment.