From e2b41ea47c0ab7cf52eff10b33a36dc90aa53250 Mon Sep 17 00:00:00 2001 From: Zach Shepherd Date: Fri, 9 Feb 2018 11:29:30 -0800 Subject: [PATCH] Avoid exposing test credentials in 12-01-Delete To avoid exposing test credentials, use the established `Run VIC Machine Delete Command` keyword, which in turn calls a secret keyword. This changes the behavior of the test slightly: - It no longer checks for the absence of "delete failed" in output. - It will wait up to 30 seconds for the deletion to succeed. - It will clean up cert files at the end of the deletion. --- tests/test-cases/Group12-VCH-BC/12-01-Delete.robot | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/test-cases/Group12-VCH-BC/12-01-Delete.robot b/tests/test-cases/Group12-VCH-BC/12-01-Delete.robot index 3a58fda11d..46a5dfb02c 100644 --- a/tests/test-cases/Group12-VCH-BC/12-01-Delete.robot +++ b/tests/test-cases/Group12-VCH-BC/12-01-Delete.robot @@ -55,9 +55,7 @@ Delete VCH with new vic-machine Should Contain ${ret} is different than installer version # Delete with force - ${ret}= Run bin/vic-machine-linux delete --target %{TEST_URL} --user %{TEST_USERNAME} --password=%{TEST_PASSWORD} --compute-resource=%{TEST_RESOURCE} --name %{VCH-NAME} --force - Should Contain ${ret} Completed successfully - Should Not Contain ${ret} delete failed + Run VIC Machine Delete Command # Check VM is removed ${ret}= Run govc vm.info -json=true ${containerName}-*