From 1c4aa083a3d759fbf79d8bd2b1217b0360461306 Mon Sep 17 00:00:00 2001 From: Anubha Gupta Date: Fri, 22 Dec 2017 03:35:27 +0000 Subject: [PATCH] [Tempest]: Updating L2GatewayConnectionTest Bug 2002191 Fixing the resource cleanup issue seen in L2GatewayConnectionTest Change-Id: I2e6410d4e3c9e10fc9fe15a6461989da48621eec --- .../tests/nsxv/api/test_l2_gateway_connection.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vmware_nsx_tempest/tests/nsxv/api/test_l2_gateway_connection.py b/vmware_nsx_tempest/tests/nsxv/api/test_l2_gateway_connection.py index ba23eef..d0377ab 100644 --- a/vmware_nsx_tempest/tests/nsxv/api/test_l2_gateway_connection.py +++ b/vmware_nsx_tempest/tests/nsxv/api/test_l2_gateway_connection.py @@ -109,8 +109,7 @@ class L2GatewayConnectionTest(base.BaseAdminNetworkTest): @classmethod def resource_cleanup(cls): cls.l2gw_cleanup() - if hasattr(cls, 'network'): - cls.networks_client.delete_network(cls.network['id']) + super(L2GatewayConnectionTest, cls).resource_cleanup() @classmethod def l2gw_cleanup(cls):