Updated env file and kube config file handling
New:
- Imported kaas/* repositories (1100+)
- Options for use of specific configs (env and kaas)
Fixes:
- updated header index search
- fixed package name handling
- fixed --force-tag option
Change-Id: Ib51ea9a47db93d6dd0868c32cb389d70053af26c
Related-PROD: PROD-35903
diff --git a/tests/test_cli.py b/tests/test_cli.py
index 9d1bd32..bad05c9 100644
--- a/tests/test_cli.py
+++ b/tests/test_cli.py
@@ -2,11 +2,14 @@
from unittest import mock
+from cfg_checker.common.settings import pkg_dir
from tests.mocks import _fake_kube_config_path
from tests.test_base import CfgCheckerTestBase
os.environ['MCP_TYPE_FORCE'] = 'SALT'
+_env_name = 'local'
+_env_file = os.path.join(pkg_dir, 'etc', _env_name + '.env')
class TestCliCommands(CfgCheckerTestBase):
@@ -150,7 +153,9 @@
_module_name = 'cfg_checker.cli.command'
_m = self._try_import(_module_name)
_fake_args = mock.MagicMock(name="FakeArgsClass")
- _fake_args.kube_config_path = _fake_kube_config_path
+ _fake_args.kube_config = _fake_kube_config_path
+ _fake_args.env_name = _env_name
+ _fake_args.env_config = _env_file
_command = "reclass"
from cfg_checker.common.settings import CheckerConfiguration