From 880d0f3fa5d8a1f62c68a7683eb27e71fb76c3d7 Mon Sep 17 00:00:00 2001 From: Gary Kotton Date: Sat, 20 Aug 2016 22:27:30 -0700 Subject: [PATCH] Fix broken unit tests Commit ab302fe6cde3795cc778179fdcadf71a188829b5 broke the unit tests. This is due to the fact that the plugin changes the port status. Change-Id: I2226aa50444bda963bb58344863ab395ef8b4d73 --- vmware_nsx/tests/unit/nsx_mh/test_plugin.py | 3 +++ vmware_nsx/tests/unit/nsx_v/test_plugin.py | 6 ++++++ vmware_nsx/tests/unit/nsx_v3/test_plugin.py | 3 +++ 3 files changed, 12 insertions(+) diff --git a/vmware_nsx/tests/unit/nsx_mh/test_plugin.py b/vmware_nsx/tests/unit/nsx_mh/test_plugin.py index e60d2bab0e..47ff6e0c21 100644 --- a/vmware_nsx/tests/unit/nsx_mh/test_plugin.py +++ b/vmware_nsx/tests/unit/nsx_mh/test_plugin.py @@ -880,6 +880,9 @@ class TestL3NatTestCase(L3NatTest, super(TestL3NatTestCase, self).test_update_subnet_gateway_for_external_net() + def test_floatingip_update_to_same_port_id_twice(self): + self.skipTest('Plugin changes floating port status') + def test_floating_port_status_not_applicable(self): self.skipTest('Plugin changes floating port status') diff --git a/vmware_nsx/tests/unit/nsx_v/test_plugin.py b/vmware_nsx/tests/unit/nsx_v/test_plugin.py index e94c48eff1..e0dbcb99f8 100644 --- a/vmware_nsx/tests/unit/nsx_v/test_plugin.py +++ b/vmware_nsx/tests/unit/nsx_v/test_plugin.py @@ -3127,6 +3127,9 @@ class TestExclusiveRouterTestCase(L3NatTest, L3NatTestCaseBase, self.assertEqual([az_name], returned_router['availability_zones']) + def test_floatingip_update_to_same_port_id_twice(self): + self.skipTest('Plugin changes floating port status') + class ExtGwModeTestCase(NsxVPluginV2TestCase, test_ext_gw_mode.ExtGwModeIntTestCase): @@ -3662,6 +3665,9 @@ class TestVdrTestCase(L3NatTest, L3NatTestCaseBase, def test_create_router_gateway_fails(self): self.skipTest('not supported') + def test_floatingip_update_to_same_port_id_twice(self): + self.skipTest('Plugin changes floating port status') + class TestNSXvAllowedAddressPairs(NsxVPluginV2TestCase, test_addr_pair.TestAllowedAddressPairs): diff --git a/vmware_nsx/tests/unit/nsx_v3/test_plugin.py b/vmware_nsx/tests/unit/nsx_v3/test_plugin.py index 77f43b20ba..1124aa3dda 100644 --- a/vmware_nsx/tests/unit/nsx_v3/test_plugin.py +++ b/vmware_nsx/tests/unit/nsx_v3/test_plugin.py @@ -645,6 +645,9 @@ class TestL3NatTestCase(L3NatTest, def test_router_add_interface_multiple_ipv4_subnets(self): self.skipTest('not supported') + def test_floatingip_update_to_same_port_id_twice(self): + self.skipTest('Plugin changes floating port status') + class ExtGwModeTestCase(test_ext_gw_mode.ExtGwModeIntTestCase, L3NatTest):