NSX-MH: Fix test_update_subnet_gateway_for_external_net UT
Upstream bug/1317363 caused the vmware-nsx repo to fail on the test_update_subnet_gateway_for_external_net unit test. This patch adds a mock to nsxlib backend call for this particular UT and then goes on to call the super test method. Change-Id: If3faf6e82d60fedddca8e5781b85161aceb43191
This commit is contained in:
parent
639215ee97
commit
06c21df475
@ -1060,6 +1060,14 @@ class TestL3NatTestCase(L3NatTest,
|
||||
None,
|
||||
p['port']['id'])
|
||||
|
||||
def test_update_subnet_gateway_for_external_net(self):
|
||||
plugin = manager.NeutronManager.get_plugin()
|
||||
port_mock = {'uuid': uuidutils.generate_uuid()}
|
||||
with mock.patch.object(plugin, '_find_router_gw_port',
|
||||
return_value=port_mock):
|
||||
super(TestL3NatTestCase,
|
||||
self).test_update_subnet_gateway_for_external_net()
|
||||
|
||||
def test_floating_port_status_not_applicable(self):
|
||||
self.skipTest('Plugin changes floating port status')
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user