From 33d72e274587223c6edbc6cc966134abcf77c754 Mon Sep 17 00:00:00 2001 From: Gary Kotton Date: Sat, 27 Feb 2016 23:57:22 -0800 Subject: [PATCH] NSXv: fix broken unit tests Commit 8052c3985325e9067d83496936092ee9334df75b broke the unit tests for the NSXv plugin. The tests added upstream updated the MAC address and this is not supported and should be skipped in the NSX|V Co-Authored-By: Aaron Rosen Change-Id: I876e7f74e74bd48430cdd42ab7c5533e495e9a49 --- vmware_nsx/tests/unit/extensions/test_addresspairs.py | 2 +- vmware_nsx/tests/unit/nsx_v/test_plugin.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vmware_nsx/tests/unit/extensions/test_addresspairs.py b/vmware_nsx/tests/unit/extensions/test_addresspairs.py index 7c256f0f5c..f9ef933d93 100644 --- a/vmware_nsx/tests/unit/extensions/test_addresspairs.py +++ b/vmware_nsx/tests/unit/extensions/test_addresspairs.py @@ -115,7 +115,7 @@ class TestAllowedAddressPairsNSXv(test_nsx_v_plugin.NsxVPluginV2TestCase, address_pairs) self._delete('ports', port['port']['id']) - def test_create_port_remove_allowed_address_pairs(self): + def _test_create_port_remove_allowed_address_pairs(self, update_value): with self.network() as net: address_pairs = [{'ip_address': '10.0.0.1'}] res = self._create_port(self.fmt, net['network']['id'], diff --git a/vmware_nsx/tests/unit/nsx_v/test_plugin.py b/vmware_nsx/tests/unit/nsx_v/test_plugin.py index 6445a0ee80..5e9720a1f2 100644 --- a/vmware_nsx/tests/unit/nsx_v/test_plugin.py +++ b/vmware_nsx/tests/unit/nsx_v/test_plugin.py @@ -2641,7 +2641,7 @@ class TestNSXvAllowedAddressPairs(NsxVPluginV2TestCase, def test_create_port_security_false_allowed_address_pairs(self): pass - def test_create_port_remove_allowed_address_pairs(self): + def _test_create_port_remove_allowed_address_pairs(self, update_value): pass def test_create_overlap_with_fixed_ip(self):