diff options
author | spisarski <s.pisarski@cablelabs.com> | 2018-07-16 11:49:45 -0600 |
---|---|---|
committer | spisarski <s.pisarski@cablelabs.com> | 2018-07-16 11:49:45 -0600 |
commit | 7d564e441d3f3897245af1124769ddc92afc4a73 (patch) | |
tree | 9d26fa2e429c628697f58ae937087ef0108148c7 | |
parent | 89a0e76315c0ec123e3674536fcda07a6c9c3c06 (diff) |
Cleaned up extra network created in the test
test_set_one_port_two_ip_two_subnets()
JIRA: SNAPS-323
Change-Id: I7610d7b3d2262b0f75c9620d2ec6907b62458158
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
-rw-r--r-- | snaps/openstack/tests/create_instance_tests.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/snaps/openstack/tests/create_instance_tests.py b/snaps/openstack/tests/create_instance_tests.py index a45654f..0becbf4 100644 --- a/snaps/openstack/tests/create_instance_tests.py +++ b/snaps/openstack/tests/create_instance_tests.py @@ -1454,6 +1454,14 @@ class CreateInstancePortManipulationTests(OSIntegrationTestCase): 'Unexpected exception cleaning network with message - %s', e) + if self.network_creator2: + try: + self.network_creator2.clean() + except Exception as e: + logger.error( + 'Unexpected exception cleaning network with message - %s', + e) + if self.image_creator and not self.image_creator.image_settings.exists: try: self.image_creator.clean() |