From f418e6db08d363a1d95a088e7826a4d06296b696 Mon Sep 17 00:00:00 2001 From: Adit Sarfaty Date: Wed, 26 Jun 2019 11:16:03 +0300 Subject: [PATCH] NSX|P: fix broken UT Commit I8ae478a03ceedc6c3b1ae1d40081b5e5158813e6 added a new unit test that is not fully supported with the P plugin. This patch overrids it to disable the subnet DHCP and allow the test to pass. Change-Id: I6027d7830fa7d2869c2e1a991dad138777eec28f --- vmware_nsx/tests/unit/common_plugin/common_v3.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vmware_nsx/tests/unit/common_plugin/common_v3.py b/vmware_nsx/tests/unit/common_plugin/common_v3.py index e6212c45b1..639940b76c 100644 --- a/vmware_nsx/tests/unit/common_plugin/common_v3.py +++ b/vmware_nsx/tests/unit/common_plugin/common_v3.py @@ -271,6 +271,11 @@ class NsxV3TestSubnets(NsxV3SubnetMixin, super(NsxV3TestSubnets, self).test_list_subnets_filtering_by_project_id() + @with_disable_dhcp + def test_list_subnets_filtering_by_cidr_used_on_create(self): + super(NsxV3TestSubnets, + self).test_list_subnets_filtering_by_cidr_used_on_create() + @with_disable_dhcp def test_list_subnets(self): super(NsxV3TestSubnets, self).test_list_subnets()