config/sysinv/sysinv/sysinv/sysinv/tests/helm
Thomas Gao 6f162c3422 Fixed address interface foreign key inconsistency
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>
2020-03-03 16:50:12 -05:00
..
__init__.py Adding unit tests that exercise helm plugins 2019-08-20 09:11:16 -05:00
base.py Tox tests for OIDC client helm overrides 2020-01-31 15:37:31 -05:00
test_dex.py Add Unit Tests for Dex Sysinv Changes 2020-02-03 10:22:19 -05:00
test_helm.py Tox tests for OIDC client helm overrides 2020-01-31 15:37:31 -05:00
test_nova.py Fixed address interface foreign key inconsistency 2020-03-03 16:50:12 -05:00
test_nova_api_proxy.py Add sample unit test for helm data generation 2020-01-10 08:07:22 -06:00
test_oidc_client.py Support for https in OIDC client 2020-02-20 11:46:44 -05:00