6f162c3422
Foreign key in sysinv.object.address.Address is `interface_uuid`, which is inconsistent with the foreign key `interface_id` defined in the database schema. This fix corrected that. Added a unit test to verify that addresses associated with an interface could be deleted. Additionally wrote a set of TODO unit tests blocked by the bug: tested delete address for orphaned-routes case, unlocked host state, and the case where address is allocated from pool. Modified interface querying mechanism to look up all interfaces. This modification is necessary because the current implementation of add_interface_filter only looks up those of type ethernet, ae and vlan. Attempting to get an virtual-type interface will raise an exception, causing Jenkins installation to fail. After a visual inspection of interface_uuid occurrences, fixed a few other occurrences of bad address.interface_uuid that are not caught by the unit test. Added new unit test suites in place to cover the code paths. Closes-Bug: 1861131 Change-Id: I6f2449bbbb69d6f2353e521bfcd138d880ce878f Signed-off-by: Thomas Gao <Thomas.Gao@windriver.com> |
||
---|---|---|
.. | ||
__init__.py | ||
base.py | ||
test_dex.py | ||
test_helm.py | ||
test_nova.py | ||
test_nova_api_proxy.py | ||
test_oidc_client.py |