Add ability/flag to clean OS in suite setup 46/67046/2
authorJamo Luhrsen <jluhrsen@redhat.com>
Thu, 11 Jan 2018 06:05:06 +0000 (22:05 -0800)
committerSam Hague <shague@redhat.com>
Fri, 12 Jan 2018 01:56:28 +0000 (01:56 +0000)
it will make it easier for other environments to adopt our
upstream CSIT if we can also easily provide the ability to
clean up the environment from any left overs that their
previous tests may have left over.

Change-Id: I0b8347b98f864c70298647049836d128997fb7c4
Signed-off-by: Jamo Luhrsen <jluhrsen@redhat.com>
csit/libraries/OpenStackOperations.robot
csit/variables/netvirt/Variables.robot

index d079f83ddb50f04e456953ffa3b3c1d0710e0e5a..9ed3806d847b33fb2915cb53c5558787d976c0d0 100644 (file)
@@ -1155,6 +1155,7 @@ Cleanup Router
 OpenStack Suite Setup
     [Documentation]    Wrapper teardown keyword that can be used in any suite running in an openstack environement
     SetupUtils.Setup_Utils_For_Setup_And_Teardown
+    Run Keyword If    "${PRE_CLEAN_OPENSTACK_ALL}"=="True"    OpenStack Cleanup All
     DevstackUtils.Devstack Suite Setup
     Add OVS Logging On All OpenStack Nodes
 
index 0868e93f9af0db9c0a945575dc3530cb0903ecc2..81b57dfa80b47b9c666aa22f7036f2f54b633c04 100644 (file)
@@ -7,6 +7,7 @@ ${CIRROS_stable/newton}    cirros-0.3.4-x86_64-uec
 ${CIRROS_stable/ocata}    cirros-0.3.4-x86_64-uec
 ${CIRROS_stable/pike}    cirros-0.3.5-x86_64-disk
 ${CIRROS_master}    cirros-0.3.5-x86_64-disk
+${PRE_CLEAN_OPENSTACK_ALL}    False
 ${NET1_IPV6_ADDR_POOL}    --allocation-pool start=2001:db8:0:2::2,end=2001:db8:0:2:ffff:ffff:ffff:fffe
 ${NET2_IPV6_ADDR_POOL}    --allocation-pool start=2001:db8:0:3::2,end=2001:db8:0:3:ffff:ffff:ffff:fffe
 ${RESP_CODE}      200