diff --git a/vmware_nsx/neutron/tests/unit/vmware/extensions/test_addresspairs.py b/vmware_nsx/neutron/tests/unit/vmware/extensions/test_addresspairs.py index 58fefcd958..9dfe55add4 100644 --- a/vmware_nsx/neutron/tests/unit/vmware/extensions/test_addresspairs.py +++ b/vmware_nsx/neutron/tests/unit/vmware/extensions/test_addresspairs.py @@ -30,3 +30,6 @@ class TestAllowedAddressPairs(test_nsx_plugin.NsxPluginV2TestCase, port = self.deserialize(self.fmt, res) self.assertEqual(port['port'][addr_pair.ADDRESS_PAIRS], []) self._delete('ports', port['port']['id']) + + def test_create_port_security_false_allowed_address_pairs(self): + self.skipTest('TBD') diff --git a/vmware_nsx/neutron/tests/unit/vmware/test_nsx_v_plugin.py b/vmware_nsx/neutron/tests/unit/vmware/test_nsx_v_plugin.py index cb215ad595..90bd883723 100644 --- a/vmware_nsx/neutron/tests/unit/vmware/test_nsx_v_plugin.py +++ b/vmware_nsx/neutron/tests/unit/vmware/test_nsx_v_plugin.py @@ -135,6 +135,16 @@ class NsxVPluginV2TestCase(test_plugin.NeutronDbPluginV2TestCase): self.assertEqual(expected, p._get_vlan_network_name(net)) + def test_create_port_anticipating_allocation(self): + with self.network(shared=True) as network: + with self.subnet(network=network, cidr='10.0.0.0/24') as subnet: + fixed_ips = [{'subnet_id': subnet['subnet']['id']}, + {'subnet_id': subnet['subnet']['id'], + 'ip_address': '10.0.0.3'}] + self._create_port(self.fmt, network['network']['id'], + webob.exc.HTTPCreated.code, + fixed_ips=fixed_ips) + class TestNetworksV2(test_plugin.TestNetworksV2, NsxVPluginV2TestCase):