Add unit test to check YAML syntax in templates
Change-Id: I10bc9621f068815126d00e59a2db83101febe201
diff --git a/tcp_tests/helpers/env_config.py b/tcp_tests/helpers/env_config.py
index 81e6764..5dbc87d 100644
--- a/tcp_tests/helpers/env_config.py
+++ b/tcp_tests/helpers/env_config.py
@@ -322,7 +322,7 @@
"from template aborted.")
-def yaml_template_load(config_file, options=None):
+def yaml_template_load(config_file, options=None, log_env_vars=True):
"""Temporary moved from fuel_devops to use jinja2"""
dirname = os.path.dirname(config_file)
@@ -376,5 +376,5 @@
TemplateLoader.add_constructor(
yaml.resolver.BaseResolver.DEFAULT_MAPPING_TAG, construct_mapping)
- f = utils.render_template(config_file, options)
+ f = utils.render_template(config_file, options, log_env_vars=log_env_vars)
return yaml.load(f, TemplateLoader)