clean up networks and subnets after running tempest 43/45343/3
authorJamo Luhrsen <jluhrsen@redhat.com>
Wed, 7 Sep 2016 18:47:53 +0000 (11:47 -0700)
committerLuis Gomez <ecelgp@gmail.com>
Wed, 7 Sep 2016 23:06:46 +0000 (23:06 +0000)
Change-Id: Ia09159203a08b5ba0ce049a327382f7780deda72
Signed-off-by: Jamo Luhrsen <jluhrsen@redhat.com>
csit/suites/openstack/tempest/tempest.robot

index 6526bfa476948651b74bd10a2d115ff392d0fec3..d55c1690ce149a19f0d96dc782573ffd6deac14a 100644 (file)
@@ -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