]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Correct _test_delete_ports_by_device_id_second_call_failure
authorCedric Brandily <zzelle@gmail.com>
Mon, 12 Jan 2015 13:10:03 +0000 (13:10 +0000)
committerCedric Brandily <zzelle@gmail.com>
Thu, 15 Jan 2015 10:48:13 +0000 (10:48 +0000)
commit58c624fad3485e7604f1fb4a6616d2b09c03d8af
tree906bc79ab8e49869dee571738e188434b9f6903f
parentf83b08abf59a915206e93051af96bdcc5b7724c2
Correct _test_delete_ports_by_device_id_second_call_failure

Currently the test assumes delete_ports_by_device_id deletes ports in
the order they were created but nothing ensures it. This change
updates _test_delete_ports_by_device_id_second_call_failure to avoid
such (incorrect) assumption. The assumption is in general broken in
daughter change which adds a unique constraint on Port table.

Change-Id: I387354eb8c02b614321ace5a105253d7504d5119
neutron/tests/unit/test_db_plugin.py