From 2c9db324749560cf4de41613d4b3f6c210dfc2ba Mon Sep 17 00:00:00 2001 From: Zach Tucker Date: Tue, 1 May 2018 18:13:21 +0000 Subject: [PATCH] Use 1.3.1 in ops user upgrade test --- .../5-25-OPS-User-Grant.md | 2 +- .../5-25-OPS-User-Grant.robot | 37 ++++++++----------- 2 files changed, 17 insertions(+), 22 deletions(-) diff --git a/tests/manual-test-cases/Group5-Functional-Tests/5-25-OPS-User-Grant.md b/tests/manual-test-cases/Group5-Functional-Tests/5-25-OPS-User-Grant.md index d31b8a6e6c..577fe59a89 100644 --- a/tests/manual-test-cases/Group5-Functional-Tests/5-25-OPS-User-Grant.md +++ b/tests/manual-test-cases/Group5-Functional-Tests/5-25-OPS-User-Grant.md @@ -17,7 +17,7 @@ This test requires access to VMware Nimbus cluster for dynamic ESXi and vCenter 7. Create a container 8. Use govc to attempt to out-of-band destroy the container from Step 7 9. Clean up the VCH -10. Install version v1.3.0 of the VIC appliance into the cluster with the --ops-grant-perms option +10. Install version v1.3.1 of the VIC appliance into the cluster with the --ops-grant-perms option 11. Perform a VCH upgrade to the current version 12. With the ops-user, use govc to attempt to create a resource pool 13. Run a variety of docker operations on the VCH 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 e70b1ef5b0..4bd7806b96 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 @@ -17,7 +17,6 @@ Documentation Test 5-25 - OPS-User-Grant Resource ../../resources/Util.robot Suite Setup Wait Until Keyword Succeeds 10x 10m Ops User Create Suite Teardown Run Keyword And Ignore Error Nimbus Cleanup ${list} -Test Teardown Run Keyword If Test Failed Gather vSphere Logs *** Keywords *** Ops User Create @@ -139,27 +138,23 @@ vic-machine create grants ops-user perms Run privilege-dependent docker operations - Cleanup VIC Appliance On Test Server + [Teardown] Cleanup VIC Appliance On Test Server granted ops-user perms work after upgrade - ${status}= Get State Of Github Issue 7796 - Run Keyword If '${status}' == 'closed' Fail Test 5-25-OPS-User-Grant.robot needs to be updated now that Issue #7796 has been resolved - Log Issue \#7796 is blocking implementation WARN - - #Install VIC with version to Test Server v1.3.0 additional-args=--ops-user ${ops_user_name} --ops-password ${ops_user_password} --ops-grant-perms - # - #Check Original Version - #Upgrade - #Check Upgraded Version - # + Install VIC with version to Test Server v1.3.1 additional-args=--ops-user ${ops_user_name} --ops-password ${ops_user_password} --ops-grant-perms + + Check Original Version + Upgrade + Check Upgraded Version + # 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 - # - #Cleanup VIC Appliance On Test Server + Attempt To Create Resource Pool + + 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... @@ -172,7 +167,7 @@ Test with VM-Host Affinity Run privilege-dependent docker operations - Cleanup VIC Appliance On Test Server + [Teardown] Cleanup VIC Appliance On Test Server vic-machine configure grants ops-user perms Install VIC Appliance To Test Server @@ -184,4 +179,4 @@ vic-machine configure grants ops-user perms Run privilege-dependent docker operations - Cleanup VIC Appliance On Test Server + [Teardown] Cleanup VIC Appliance On Test Server