jenkins-job-builder/tests/localyaml/fixtures
Adam Romanek aa5d6a538d Fix retaining anchors when using with !j2-yaml
Before this change using an anchor/alias in !j2-yaml resulted in an
exception, even if retain_anchors was set to True:

>      File "(...)/jenkins-job-builder/.tox/py38/lib/python3.8/site-packages/yaml/composer.py", line 68, in compose_node
>    raise ComposerError(None, None, "found undefined alias %r"
>    yaml.composer.ComposerError: found undefined alias '<alias-name-xxx>'

The reason was that LateYamlLoader.get_object_to_format() was calling
load() without retain_anchors=True so effectively it was resetting
anchors during deep formatting...

From now on yaml.load() is called directly to avoid unwanted
side-effects of load() which is meant to be called from other modules,
typically by parser.YamlParser().

Change-Id: I0fde43c5c27ddf78f18dc244d8dba5bd768306b7
2021-04-01 14:57:55 +02:00
..
anchors_aliases.iyaml Add tests for yaml anchor behaviour 2015-03-10 14:27:30 +00:00
anchors_aliases.oyaml Allow whitespace to be significant 2015-08-11 18:31:48 +01:00
custom_retain_anchors.yaml Add retain_anchors config option. 2018-05-31 20:30:09 +05:30
custom_retain_anchors_include001.yaml Add retain_anchors config option. 2018-05-31 20:30:09 +05:30
custom_retain_anchors_j2_yaml.yaml Fix retaining anchors when using with !j2-yaml 2021-04-01 14:57:55 +02:00
custom_retain_anchors_j2_yaml_include001.yaml Fix retaining anchors when using with !j2-yaml 2021-04-01 14:57:55 +02:00
custom_same_anchor-001-part1.yaml Fix typo in anchor test 2018-07-24 00:41:50 -04:00
custom_same_anchor-001-part2.yaml Add 'do-not-fingerprint' to 'copyartifact' builder 2015-11-19 17:16:20 -05:00
deprecated-include-raw-escaped001.json Normalize newlines at end of file 2018-06-29 16:07:06 -04:00
deprecated-include-raw-escaped001.yaml Separate out custom yaml tags into separate classes 2015-09-18 00:37:00 +01:00
deprecated-include-raw001.json Normalize newlines at end of file 2018-06-29 16:07:06 -04:00
deprecated-include-raw001.yaml Separate out custom yaml tags into separate classes 2015-09-18 00:37:00 +01:00
deprecated-include001.json Add 'do-not-fingerprint' to 'copyartifact' builder 2015-11-19 17:16:20 -05:00
deprecated-include001.yaml Separate out custom yaml tags into separate classes 2015-09-18 00:37:00 +01:00
exception_include001.yaml Add 'do-not-fingerprint' to 'copyartifact' builder 2015-11-19 17:16:20 -05:00
exception_include001.yaml.inc Add 'do-not-fingerprint' to 'copyartifact' builder 2015-11-19 17:16:20 -05:00
include-raw-escaped-multi001.json fix job-template call in include-raw-escaped fixtures 2019-04-16 14:26:40 +02:00
include-raw-escaped-multi001.yaml fix job-template call in include-raw-escaped fixtures 2019-04-16 14:26:40 +02:00
include-raw-escaped001.json Normalize newlines at end of file 2018-06-29 16:07:06 -04:00
include-raw-escaped001.yaml Separate out custom yaml tags into separate classes 2015-09-18 00:37:00 +01:00
include-raw-multi001.json Normalize newlines at end of file 2018-06-29 16:07:06 -04:00
include-raw-multi001.yaml Allow inclusion of multiple files 2015-04-20 17:15:40 +02:00
include-raw001-hello-world.sh Use yaml local tags to support including files 2014-06-20 23:16:23 +01:00
include-raw001-vars.sh Normalize newlines at end of file 2018-06-29 16:07:06 -04:00
include-raw001.json Normalize newlines at end of file 2018-06-29 16:07:06 -04:00
include-raw001.yaml Separate out custom yaml tags into separate classes 2015-09-18 00:37:00 +01:00
include001.json Add 'do-not-fingerprint' to 'copyartifact' builder 2015-11-19 17:16:20 -05:00
include001.yaml Separate out custom yaml tags into separate classes 2015-09-18 00:37:00 +01:00
include001.yaml.inc Add 'do-not-fingerprint' to 'copyartifact' builder 2015-11-19 17:16:20 -05:00
joinlists.json Add helper tag to join arbitrary lists into strings 2018-04-12 20:36:44 +01:00
joinlists.yaml Add helper tag to join arbitrary lists into strings 2018-04-12 20:36:44 +01:00