Skip to content
Snippets Groups Projects
Commit f6c99ce2 authored by Ole Binder's avatar Ole Binder
Browse files

Test: add test for env vars in yaml

parent 85b73c91
No related branches found
No related tags found
1 merge request!2Env variables in yaml config
Pipeline #2624 failed
......@@ -21,6 +21,16 @@ class TestYaml(unittest.TestCase):
except KeyError as ke:
self.fail(f"Could not create Config from dict: {yaml_dict}.\n{ke}")
def test_read_docker_yaml_config(self):
"""Reads the docker yaml file."""
docker_path = os.path.join(self.tests_root_dir, "config/for-docker.yaml")
yaml_dict = self.recorder.read_yaml_config(docker_path)
self.assertIsInstance(yaml_dict, dict)
try:
recorder.Config(yaml_dict)
except KeyError as ke:
self.fail(f"Could not create Config from dict: {yaml_dict}.\n{ke}")
def test_read_faulty_yaml_config(self):
"""Reads faulty yaml files in engine-recorder/tests/config/."""
faulty_dir = os.path.join(self.tests_root_dir, "tests/config")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment