test/unit_tests/config/k8s/k8s_config_test.py
croy 82d417b9e6 New StarlingX Automation Framework
Fresh start for the StarlingX automation framework.

Change-Id: Ie265e0791024f45f71faad6315c2b91b022934d1
2024-11-29 16:01:57 -05:00

18 lines
719 B
Python

from config.configuration_file_locations_manager import ConfigurationFileLocationsManager
from config.configuration_manager import ConfigurationManagerClass
def test_default_k8s_config():
"""
Tests that the default logger configuration is as expected.
Returns:
"""
configuration_manager = ConfigurationManagerClass()
config_file_locations = ConfigurationFileLocationsManager()
configuration_manager.load_configs(config_file_locations)
default_config = configuration_manager.get_k8s_config()
assert default_config is not None, "Default logger config wasn't loaded successfully"
assert default_config.get_kubeconfig() == "/etc/kubernetes/admin.conf", "kubeconfig is incorrect"