Merge "Fix TODO in vnic index tests"
This commit is contained in:
commit
f6c4e0ad10
@ -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