From 01fa40d4834a17b0b9e6952efd7616ca2faf2a2f Mon Sep 17 00:00:00 2001 From: Adit Sarfaty Date: Mon, 26 Dec 2016 08:58:59 +0200 Subject: [PATCH] Fix TODO in vnic index tests Change-Id: I9c2308267ff50aabb7764a8b85af2eca97138dae --- vmware_nsx/tests/unit/extensions/test_vnic_index.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vmware_nsx/tests/unit/extensions/test_vnic_index.py b/vmware_nsx/tests/unit/extensions/test_vnic_index.py index 8ab87759af..dde58d0a51 100644 --- a/vmware_nsx/tests/unit/extensions/test_vnic_index.py +++ b/vmware_nsx/tests/unit/extensions/test_vnic_index.py @@ -94,11 +94,11 @@ class VnicIndexDbTestCase(test_db_plugin.NeutronDbPluginV2TestCase): self.assertRaises(d_exc.DBDuplicateEntry, plugin._set_port_vnic_index_mapping, context, port_id, device_id, 1) - # Check that the call for _delete_port_vnic_index remove the row from - # the table - # TODO(kobis): deletion was removed from port - fix this assert - # self.assertIsNone(plugin._get_port_vnic_index(context, port_id)) + # Check that the call for _delete_port_vnic_index_mapping remove + # the row from the table + plugin._delete_port_vnic_index_mapping(context, port_id) + self.assertIsNone(plugin._get_port_vnic_index(context, port_id)) def test_vnic_index_db_duplicate(self): plugin = directory.get_plugin()