jenkins-job-builder/tests/macros
Justin Stoller bf88fe32c1 Allow deep formatting of macro parameters
Prior to this patch macros serialized into a yaml document, a simple string
substitution was applied and then they were re-loaded into python. This
created several problems:
 - newlines are lost because the yaml loading was not respecting the
   newline settings of the original strings (Story: 1387060)
 - {obj:} notation was not working for macro parameters (Story: 2000254)
 - multiline strings passed into scripts will create a yaml syntax error
   when being re-loaded (unticketed)

This patch resolves these problems by replacing the previous interpolation
code with the more robust `deep_format` method. A side effect of this patch
is that there are now fewer disparate code paths for interpolating variables.

Change-Id: Ia06c98286537a50dc52c6e5e000b32ebc9e8ede2
Signed-off-by: Justin Stoller <justin.stoller@gmail.com>
2015-11-13 10:57:36 -08:00
..
fixtures Allow deep formatting of macro parameters 2015-11-13 10:57:36 -08:00
__init__.py scms: MultiSCM is generated for scms hidden in macro 2014-05-26 17:49:04 +02:00
test_macros.py Capture logs with FakeLogging Fixture 2015-09-30 16:25:22 +01:00