Skip to content

Commit

Permalink
Do not review
Browse files Browse the repository at this point in the history
  • Loading branch information
YanzhaoLi committed Dec 27, 2018
1 parent 55204d8 commit 799605d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 44 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,20 +129,8 @@ Attempt To Create Resource Pool
Should Contain ${output} Permission to perform this operation was denied

*** Test Cases ***
vic-machine create grants ops-user perms
Install VIC Appliance To Test Server additional-args=--ops-user ${ops_user_name} --ops-password ${ops_user_password} --ops-grant-perms

# Run a govc test to check that access is denied on some resources
Attempt To Disable DRS

Run Regression Tests

Run privilege-dependent docker operations

[Teardown] Cleanup VIC Appliance On Test Server

granted ops-user perms work after upgrade
Install VIC with version to Test Server v1.4.0 additional-args=--ops-user ${ops_user_name} --ops-password ${ops_user_password} --ops-grant-perms
Install VIC with version to Test Server v1.4.0

Check Original Version
Upgrade
Expand All @@ -154,30 +142,3 @@ granted ops-user perms work after upgrade
Run Regression Tests

Run privilege-dependent docker operations

[Teardown] Cleanup VIC Appliance On Test Server

Test with VM-Host Affinity
Log To Console \nStarting test...
Install VIC Appliance To Test Server additional-args=--ops-user ${ops_user_name} --ops-password ${ops_user_password} --ops-grant-perms --affinity-vm-group

# Run a govc test to check that access is denied on some resources
Attempt To Create Resource Pool

Run Regression Tests

Run privilege-dependent docker operations

[Teardown] Cleanup VIC Appliance On Test Server

vic-machine configure grants ops-user perms
Install VIC Appliance To Test Server

Reconfigure VCH With Ops User

# Run a govc test to check that access is denied on some resources
Attempt To Disable DRS

Run privilege-dependent docker operations

[Teardown] Cleanup VIC Appliance On Test Server
8 changes: 4 additions & 4 deletions tests/resources/VCH-Util.robot
Original file line number Diff line number Diff line change
Expand Up @@ -784,17 +784,17 @@ Upgrade with ID
Check Upgraded Version
${rc} ${output}= Run And Return Rc And Output bin/vic-machine-linux version
@{vers}= Split String ${output}
${releaseNumber}= Run echo @{vers}[2] | awk -F'-' '{print $1}'
${rc} ${out}= Run And Return Rc And Output govc vm.info %{VCH-NAME}
Should Contain ${out} ${releaseNumber}
Should Be Equal As Integers ${rc} 0
${rc} ${output}= Run And Return Rc And Output bin/vic-machine-linux inspect --name=%{VCH-NAME} --target=%{TEST_URL}%{TEST_DATACENTER} --thumbprint=%{TEST_THUMBPRINT} --user=%{TEST_USERNAME} --password=%{TEST_PASSWORD} --compute-resource=%{TEST_RESOURCE}
Log ${output}
Should Contain ${output} Completed successfully
Should Contain ${output} @{vers}[2]
Should Not Contain ${output} %{INITIAL-VERSION}
Should Be Equal As Integers ${rc} 0
Log ${output}
${releaseNumber}= Run echo @{vers}[2] | awk -F'-' '{print $1}'
${rc} ${out}= Run And Return Rc And Output govc vm.info %{VCH-NAME}
Should Contain ${out} ${releaseNumber}
Should Be Equal As Integers ${rc} 0
Get Docker Params ${output} ${true}

Check Original Version
Expand Down

0 comments on commit 799605d

Please sign in to comment.