jenkins-job-builder/tests
Adam Romanek c4e2f03776 Fix support for !j2-yaml tag on project level (missing deepcopy impl)
The properties of 'project' objects are deepcopied in
YamlParser._expandYamlForTemplateJob(), including any Jinja2YamlLoader
objects produced by !j2-yaml tag. Because of the missing __deepcopy__()
definition in Jinja2YamlLoader, the parent class' implementation was
used, causing the deepcopied object be of Jinja2Loader type.
Consequently the rendered value was always a string, not an instance of
LateYamlLoader as it supposed to be.

This change fixes the issue in Jinja2YamlLoader and potentially in
LateYamlLoader, however the latter is currently not deepcopied anywhere
so no test could be written to cover it.

Change-Id: I24fda368a4af0e9aac7b78c478ac7b4eddf27b9b
2021-02-01 23:35:39 +01:00
..
builders Fix system_groovy issue 2020-11-13 15:21:47 +00:00
cachestorage Fix the yaml load warning. 2019-12-10 09:52:40 +01:00
cmd tests: fix mixed imports of 'unittest.mock' and 'mock' 2021-01-01 12:58:28 +01:00
duplicates Auto-generated output from python-black 2019-09-09 19:23:24 +01:00
errors Auto-generated output from python-black 2019-09-09 19:23:24 +01:00
general Removed the unnecessary empty combinationFilter Tag 2020-07-07 11:32:51 +02:00
hipchat Auto-generated output from python-black 2019-09-09 19:23:24 +01:00
jenkins_manager Auto-generated output from python-black 2019-09-09 19:23:24 +01:00
jsonparser Gerrit Trigger: update support to the latest plugin version 2020-06-01 15:39:18 +02:00
localyaml Auto-generated output from python-black 2019-09-09 19:23:24 +01:00
macros Fix conditional step issue 2021-01-18 12:25:30 +03:00
moduleregistry Auto-generated output from python-black 2019-09-09 19:23:24 +01:00
modules Added support of json type for extended choice parameter and related parameters. 2021-01-04 12:36:24 +03:00
multibranch Added SparseCheckout trait to the git extentions 2021-01-20 20:42:22 +03:00
notifications Add support for retries options in notifications 2020-11-13 15:20:22 +00:00
parallel Auto-generated output from python-black 2019-09-09 19:23:24 +01:00
parameters Added support of json type for extended choice parameter and related parameters. 2021-01-04 12:36:24 +03:00
properties Merge "Added support of Office-365-Connections plugin properies configuration" 2021-01-17 14:20:17 +00:00
publishers publishers/join-trigger: advertise "threshold" in the docs 2020-11-07 13:35:47 -08:00
reporters Auto-generated output from python-black 2019-09-09 19:23:24 +01:00
scm Auto-generated output from python-black 2019-09-09 19:23:24 +01:00
triggers Add Gogs Plugin 2021-01-16 12:21:15 +01:00
views Merge "Added missing 'BuiltOn' column for views" 2020-05-18 14:38:35 +00:00
wrappers Merge "Updated BuildTimeoutWrapper plugin" 2020-11-16 14:06:38 +00:00
xml_config Auto-generated output from python-black 2019-09-09 19:23:24 +01:00
yamlparser Fix support for !j2-yaml tag on project level (missing deepcopy impl) 2021-02-01 23:35:39 +01:00
__init__.py Tests for publishers 2013-07-19 14:31:11 +02:00
base.py Adding view for the Delivery Pipeline Plugin 2020-02-07 17:35:13 +00:00