diff options
Diffstat (limited to 'tests/unittests/sources/test_oracle.py')
-rw-r--r-- | tests/unittests/sources/test_oracle.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/unittests/sources/test_oracle.py b/tests/unittests/sources/test_oracle.py index e3648889..156bf9f5 100644 --- a/tests/unittests/sources/test_oracle.py +++ b/tests/unittests/sources/test_oracle.py @@ -1132,6 +1132,15 @@ class TestNetworkConfig: initramfs_idx = config_sources.index(NetworkConfigSource.INITRAMFS) assert ds_idx < initramfs_idx + def test_system_network_cfg_preferred_over_ds( + self, m_get_interfaces_by_mac + ): + """Ensure that system net config is preferred over DS config""" + config_sources = oracle.DataSourceOracle.network_config_sources + ds_idx = config_sources.index(NetworkConfigSource.DS) + system_idx = config_sources.index(NetworkConfigSource.SYSTEM_CFG) + assert system_idx < ds_idx + @pytest.mark.parametrize("set_primary", [True, False]) def test__add_network_config_from_opc_imds_no_vnics_data( self, |