From c75b51a96c1b3e6fcfe38cd697cb19e85e5c68d3 Mon Sep 17 00:00:00 2001 From: Jamo Luhrsen Date: Wed, 7 Sep 2016 11:47:53 -0700 Subject: [PATCH] clean up networks and subnets after running tempest Change-Id: Ia09159203a08b5ba0ce049a327382f7780deda72 Signed-off-by: Jamo Luhrsen --- csit/suites/openstack/tempest/tempest.robot | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/csit/suites/openstack/tempest/tempest.robot b/csit/suites/openstack/tempest/tempest.robot index 6526bfa476..d55c1690ce 100644 --- a/csit/suites/openstack/tempest/tempest.robot +++ b/csit/suites/openstack/tempest/tempest.robot @@ -2,7 +2,7 @@ Documentation Test suite for running tempest tests. It is assumed that the test environment ... is already deployed and ready. Suite Setup Log In To Tempest Executor And Setup Test Environment -Suite Teardown Close All Connections +Suite Teardown Clean Up After Running Tempest Test Setup Log Testcase Start To Controller Karaf Library SSHLibrary Resource ../../../libraries/Utils.robot @@ -72,3 +72,10 @@ Add Config To File On Existing SSH Connection # this keyword is only one line so seems like extra overhead, but this may be a good candidate to move # to a library at some point, when/if other suites need to use it, so wanted to make it generic. Write Commands Until Prompt sudo -E crudini --set ${config_file} ${config_section} ${config_key} ${config_value} + +Clean Up After Running Tempest + [Documentation] Clean up any extra leftovers that were created to allow tempest tests to run. + Delete SubNet external-subnet + Delete Network external + List Networks + Close All Connections \ No newline at end of file -- 2.36.6