Skip to content

Commit 4fa5961

Browse files
authored
VIC scenario related cases are auto launched by Jenkins every mid night, which uses fixed public nimbus account for testing. We also have other jenkins job, such as vic-pr-test which also need a nimbus account(with password) to validate personal code changes. Everyone is now also using public account when using vic-pr-test. And we sometimes hit nimbus env created failure when one public account is used by several jenkin jobs. so we're adding user parameter in nimbus commands to avoid env resource application conflicts, at the same time use public accout with full rights to login nimbus. (#8413)
1 parent 7e8acd2 commit 4fa5961

23 files changed

Lines changed: 88 additions & 66 deletions

tests/manual-test-cases/Group13-vMotion/13-1-vMotion-VCH-Appliance.robot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Gather All vSphere Logs
5959
#This does not work currently, as the VM has been migrated out of the vApp
6060

6161
Step 6-9
62-
Set Test Variable ${user} %{NIMBUS_USER}
62+
Set Test Variable ${user} %{NIMBUS_PERSONAL_USER}
6363
Set Suite Variable @{list} ${user}-vic-vmotion-13-1.vcva-${VC_VERSION} ${user}-vic-vmotion-13-1.esx.0 ${user}-vic-vmotion-13-1.esx.1 ${user}-vic-vmotion-13-1.esx.2 ${user}-vic-vmotion-13-1.esx.3 ${user}-vic-vmotion-13-1.nfs.0 ${user}-vic-vmotion-13-1.iscsi.0
6464
Install VIC Appliance To Test Server
6565
Run Regression Tests

tests/manual-test-cases/Group13-vMotion/13-2-vMotion-Container.robot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Gather All vSphere Logs
2626

2727
*** Test Cases ***
2828
Test
29-
Set Test Variable ${user} %{NIMBUS_USER}
29+
Set Test Variable ${user} %{NIMBUS_PERSONAL_USER}
3030
Set Suite Variable @{list} ${user}-vic-vmotion-13-2.vcva-${VC_VERSION} ${user}-vic-vmotion-13-2.esx.0 ${user}-vic-vmotion-13-2.esx.1 ${user}-vic-vmotion-13-2.esx.2 ${user}-vic-vmotion-13-2.esx.3 ${user}-vic-vmotion-13-2.nfs.0 ${user}-vic-vmotion-13-2.iscsi.0
3131
Install VIC Appliance To Test Server
3232
${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} pull busybox

tests/manual-test-cases/Group5-Functional-Tests/5-1-Distributed-Switch.robot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Distributed Switch Setup
3434
@{esx_names}= Get Dictionary Keys ${esxes}
3535
@{esx_ips}= Get Dictionary Values ${esxes}
3636

37-
Set Suite Variable @{list} @{esx_names}[0] @{esx_names}[1] @{esx_names}[2] %{NIMBUS_USER}-${vc}
37+
Set Suite Variable @{list} @{esx_names}[0] @{esx_names}[1] @{esx_names}[2] %{NIMBUS_PERSONAL_USER}-${vc}
3838

3939
# Finish vCenter deploy
4040
${output}= Wait For Process ${pid}

tests/manual-test-cases/Group5-Functional-Tests/5-10-Multiple-Datacenter.robot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Multiple Datacenter Setup
5454
${esx2-ip}= Get From List ${esx-ips} 1
5555

5656
${esx3} ${esx4} ${esx5} ${vc} ${esx3-ip} ${esx4-ip} ${esx5-ip} ${vc-ip}= Create a Simple VC Cluster datacenter1 cls1
57-
Set Suite Variable @{list} ${esx1} ${esx2} ${esx3} ${esx4} ${esx5} %{NIMBUS_USER}-${vc}
57+
Set Suite Variable @{list} ${esx1} ${esx2} ${esx3} ${esx4} ${esx5} %{NIMBUS_PERSONAL_USER}-${vc}
5858

5959
Log To Console Create datacenter2 on the VC
6060
${out}= Run govc datacenter.create datacenter2

tests/manual-test-cases/Group5-Functional-Tests/5-12-Multiple-VLAN.robot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Multiple VLAN Setup
2424
[Timeout] 110 minutes
2525
Run Keyword And Ignore Error Nimbus Cleanup ${list} ${false}
2626
${esx1} ${esx2} ${esx3} ${vc} ${esx1-ip} ${esx2-ip} ${esx3-ip} ${vc-ip}= Create a Simple VC Cluster multi-vlan-1 cls
27-
Set Suite Variable @{list} ${esx1} ${esx2} ${esx3} %{NIMBUS_USER}-${vc}
27+
Set Suite Variable @{list} ${esx1} ${esx2} ${esx3} %{NIMBUS_PERSONAL_USER}-${vc}
2828

2929
*** Test Cases ***
3030
Test1

tests/manual-test-cases/Group5-Functional-Tests/5-14-Remove-Container-OOB.robot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Remove Container OOB Setup
2323
[Timeout] 110 minutes
2424
Run Keyword And Ignore Error Nimbus Cleanup ${list} ${false}
2525
${esx1} ${esx2} ${esx3} ${vc} ${esx1-ip} ${esx2-ip} ${esx3-ip} ${vc-ip}= Create a Simple VC Cluster
26-
Set Suite Variable @{list} ${esx1} ${esx2} ${esx3} %{NIMBUS_USER}-${vc}
26+
Set Suite Variable @{list} ${esx1} ${esx2} ${esx3} %{NIMBUS_PERSONAL_USER}-${vc}
2727

2828
*** Test Cases ***
2929
Docker run a container and verify cannot destroy the VM Out of Band

tests/manual-test-cases/Group5-Functional-Tests/5-16-iSCSI-Datastore.robot

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,26 @@ Resource ../../resources/Util.robot
1818
Suite Setup Wait Until Keyword Succeeds 10x 10s iSCSI Datastore Setup
1919
Suite Teardown Run Keyword And Ignore Error Nimbus Cleanup ${list}
2020

21+
*** Variables ***
22+
${NIMBUS_LOCATION} sc
23+
${NIMBUS_LOCATION_FULL} NIMBUS_LOCATION=${NIMBUS_LOCATION}
24+
2125
*** Keywords ***
2226
iSCSI Datastore Setup
2327
[Timeout] 110 minutes
2428
Run Keyword And Ignore Error Nimbus Cleanup ${list} ${false}
2529
${name}= Evaluate 'vic-iscsi-' + str(random.randint(1000,9999)) modules=random
2630
${out}= Deploy Nimbus Testbed %{NIMBUS_USER} %{NIMBUS_PASSWORD} --plugin testng --customizeTestbed '/esx desiredPassword=e2eFunctionalTest' --noSupportBundles --vcvaBuild ${VC_VERSION} --esxBuild ${ESX_VERSION} --testbedName vcqa-sdrs-iscsi-fullInstall-vcva --runName vic-iscsi
27-
Set Suite Variable @{list} %{NIMBUS_USER}-vic-iscsi.vcva-${VC_VERSION} %{NIMBUS_USER}-vic-iscsi.esx.0 %{NIMBUS_USER}-vic-iscsi.esx.1 %{NIMBUS_USER}-vic-iscsi.iscsi.0
31+
Set Suite Variable @{list} %{NIMBUS_PERSONAL_USER}-vic-iscsi.vcva-${VC_VERSION} %{NIMBUS_PERSONAL_USER}-vic-iscsi.esx.0 %{NIMBUS_PERSONAL_USER}-vic-iscsi.esx.1 %{NIMBUS_PERSONAL_USER}-vic-iscsi.iscsi.0
2832
Should Contain ${out} "deployment_result"=>"PASS"
2933

30-
${out}= Execute Command nimbus-ctl ip %{NIMBUS_USER}-vic-iscsi.vcva-${VC_VERSION} | grep %{NIMBUS_USER}-vic-iscsi.vcva-${VC_VERSION}
34+
${out}= Execute Command ${NIMBUS_LOCATION_FULL} USER=%{NIMBUS_PERSONAL_USER} nimbus-ctl ip %{NIMBUS_PERSONAL_USER}-vic-iscsi.vcva-${VC_VERSION} | grep %{NIMBUS_PERSONAL_USER}-vic-iscsi.vcva-${VC_VERSION}
3135
${vc-ip}= Fetch From Right ${out} ${SPACE}
3236

33-
${out}= Execute Command nimbus-ctl ip %{NIMBUS_USER}-vic-iscsi.esx.0 | grep %{NIMBUS_USER}-vic-iscsi.esx.0
37+
${out}= Execute Command ${NIMBUS_LOCATION_FULL} USER=%{NIMBUS_PERSONAL_USER} nimbus-ctl ip %{NIMBUS_PERSONAL_USER}-vic-iscsi.esx.0 | grep %{NIMBUS_PERSONAL_USER}-vic-iscsi.esx.0
3438
${esx0-ip}= Fetch From Right ${out} ${SPACE}
3539

36-
${out}= Execute Command nimbus-ctl ip %{NIMBUS_USER}-vic-iscsi.esx.1 | grep %{NIMBUS_USER}-vic-iscsi.esx.1
40+
${out}= Execute Command ${NIMBUS_LOCATION_FULL} USER=%{NIMBUS_PERSONAL_USER} nimbus-ctl ip %{NIMBUS_PERSONAL_USER}-vic-iscsi.esx.1 | grep %{NIMBUS_PERSONAL_USER}-vic-iscsi.esx.1
3741
${esx1-ip}= Fetch From Right ${out} ${SPACE}
3842

3943
Set Environment Variable GOVC_URL ${esx0-ip}

tests/manual-test-cases/Group5-Functional-Tests/5-17-FC-Datastore.robot

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,26 @@ Resource ../../resources/Util.robot
1818
Suite Setup Nimbus Suite Setup FC Datastore Setup
1919
Suite Teardown Run Keyword And Ignore Error Nimbus Cleanup ${list}
2020

21+
*** Variables ***
22+
${NIMBUS_LOCATION} sc
23+
${NIMBUS_LOCATION_FULL} NIMBUS_LOCATION=${NIMBUS_LOCATION}
24+
2125
*** Keywords ***
2226
FC Datastore Setup
2327
[Timeout] 110 minutes
2428
Run Keyword And Ignore Error Nimbus Cleanup ${list} ${false}
2529
${name}= Evaluate 'vic-fc-' + str(random.randint(1000,9999)) modules=random
2630
${out}= Deploy Nimbus Testbed %{NIMBUS_USER} %{NIMBUS_PASSWORD} --plugin testng --customizeTestbed '/esx desiredPassword=e2eFunctionalTest' --noSupportBundles --vcvaBuild ${VC_VERSION} --esxBuild ${ESX_VERSION} --testbedName vcqa-sdrs-fc-fullInstall-vcva --runName ${name}
27-
Set Suite Variable @{list} %{NIMBUS_USER}-${name}.vcva-${VC_VERSION} %{NIMBUS_USER}-${name}.esx.0 %{NIMBUS_USER}-${name}.esx.1 %{NIMBUS_USER}-${name}.fc.0
31+
Set Suite Variable @{list} %{NIMBUS_PERSONAL_USER}-${name}.vcva-${VC_VERSION} %{NIMBUS_PERSONAL_USER}-${name}.esx.0 %{NIMBUS_PERSONAL_USER}-${name}.esx.1 %{NIMBUS_PERSONAL_USER}-${name}.fc.0
2832
Should Contain ${out} "deployment_result"=>"PASS"
2933

30-
${out}= Execute Command nimbus-ctl ip %{NIMBUS_USER}-${name}.vcva-${VC_VERSION} | grep %{NIMBUS_USER}-${name}.vcva-${VC_VERSION}
34+
${out}= Execute Command ${NIMBUS_LOCATION_FULL} USER=%{NIMBUS_PERSONAL_USER} nimbus-ctl ip %{NIMBUS_PERSONAL_USER}-${name}.vcva-${VC_VERSION} | grep %{NIMBUS_PERSONAL_USER}-${name}.vcva-${VC_VERSION}
3135
${vc-ip}= Fetch From Right ${out} ${SPACE}
3236

33-
${out}= Execute Command nimbus-ctl ip %{NIMBUS_USER}-${name}.esx.0 | grep %{NIMBUS_USER}-${name}.esx.0
37+
${out}= Execute Command ${NIMBUS_LOCATION_FULL} USER=%{NIMBUS_PERSONAL_USER} nimbus-ctl ip %{NIMBUS_PERSONAL_USER}-${name}.esx.0 | grep %{NIMBUS_PERSONAL_USER}-${name}.esx.0
3438
${esx0-ip}= Fetch From Right ${out} ${SPACE}
3539

36-
${out}= Execute Command nimbus-ctl ip %{NIMBUS_USER}-${name}.esx.1 | grep %{NIMBUS_USER}-${name}.esx.1
40+
${out}= Execute Command ${NIMBUS_LOCATION_FULL} USER=%{NIMBUS_PERSONAL_USER} nimbus-ctl ip %{NIMBUS_PERSONAL_USER}-${name}.esx.1 | grep %{NIMBUS_PERSONAL_USER}-${name}.esx.1
3741
${esx1-ip}= Fetch From Right ${out} ${SPACE}
3842

3943
Set Environment Variable GOVC_URL ${esx0-ip}

tests/manual-test-cases/Group5-Functional-Tests/5-18-Datastore-Cluster-SDRS.robot

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,16 @@ SDRS Datastore Setup
2323
[Timeout] 110 minutes
2424
Run Keyword And Ignore Error Nimbus Cleanup ${list} ${false}
2525
{out}= Deploy Nimbus Testbed %{NIMBUS_USER} %{NIMBUS_PASSWORD} --customizeTestbed '/esx desiredPassword=e2eFunctionalTest' --noSupportBundles --vcvaBuild ${VC_VERSION} --esxBuild ${ESX_VERSION} --testbedName vcqa-sdrs-fc-fullInstall-vcva --runName vic-fc
26-
Set Suite Variable @{list} %{NIMBUS_USER}-vic-fc.vcva-${VC_VERSION} %{NIMBUS_USER}-vic-fc.esx.0 %{NIMBUS_USER}-vic-fc.esx.1 %{NIMBUS_USER}-vic-fc.fc.0
26+
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
2727
Should Contain ${out} "deployment_result"=>"PASS"
2828

29-
${out}= Execute Command nimbus-ctl ip %{NIMBUS_USER}-vic-fc.vcva-${VC_VERSION} | grep %{NIMBUS_USER}-vic-fc.vcva-${VC_VERSION}
29+
${out}= Execute Command USER=%{NIMBUS_PERSONAL_USER} nimbus-ctl ip %{NIMBUS_PERSONAL_USER}-vic-fc.vcva-${VC_VERSION} | grep %{NIMBUS_PERSONAL_USER}-vic-fc.vcva-${VC_VERSION}
3030
${vc-ip}= Fetch From Right ${out} ${SPACE}
3131

32-
${out}= Execute Command nimbus-ctl ip %{NIMBUS_USER}-vic-fc.esx.0 | grep %{NIMBUS_USER}-vic-fc.esx.0
32+
${out}= Execute Command USER=%{NIMBUS_PERSONAL_USER} nimbus-ctl ip %{NIMBUS_PERSONAL_USER}-vic-fc.esx.0 | grep %{NIMBUS_PERSONAL_USER}-vic-fc.esx.0
3333
${esx0-ip}= Fetch From Right ${out} ${SPACE}
3434

35-
${out}= Execute Command nimbus-ctl ip %{NIMBUS_USER}-vic-fc.esx.1 | grep %{NIMBUS_USER}-vic-fc.esx.1
35+
${out}= Execute Command USER=%{NIMBUS_PERSONAL_USER} nimbus-ctl ip %{NIMBUS_PERSONAL_USER}-vic-fc.esx.1 | grep %{NIMBUS_PERSONAL_USER}-vic-fc.esx.1
3636
${esx1-ip}= Fetch From Right ${out} ${SPACE}
3737

3838
Set Environment Variable GOVC_URL ${esx0-ip}

tests/manual-test-cases/Group5-Functional-Tests/5-2-Cluster.robot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Cluster Setup
3333
@{esx_names}= Get Dictionary Keys ${esxes}
3434
@{esx_ips}= Get Dictionary Values ${esxes}
3535

36-
Set Suite Variable @{list} @{esx_names}[0] @{esx_names}[1] @{esx_names}[2] %{NIMBUS_USER}-${vc}
36+
Set Suite Variable @{list} @{esx_names}[0] @{esx_names}[1] @{esx_names}[2] %{NIMBUS_PERSONAL_USER}-${vc}
3737

3838
# Finish vCenter deploy
3939
${output}= Wait For Process ${pid}

0 commit comments

Comments
 (0)