Fix TODO in vnic index tests
Change-Id: I9c2308267ff50aabb7764a8b85af2eca97138dae
This commit is contained in:
parent
e8a66301c6
commit
01fa40d483
@ -94,11 +94,11 @@ class VnicIndexDbTestCase(test_db_plugin.NeutronDbPluginV2TestCase):
|
|||||||
self.assertRaises(d_exc.DBDuplicateEntry,
|
self.assertRaises(d_exc.DBDuplicateEntry,
|
||||||
plugin._set_port_vnic_index_mapping,
|
plugin._set_port_vnic_index_mapping,
|
||||||
context, port_id, device_id, 1)
|
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
|
# Check that the call for _delete_port_vnic_index_mapping remove
|
||||||
# self.assertIsNone(plugin._get_port_vnic_index(context, port_id))
|
# 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):
|
def test_vnic_index_db_duplicate(self):
|
||||||
plugin = directory.get_plugin()
|
plugin = directory.get_plugin()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user