Escape EMR template fields to avoid invalid XML responses (#1467)

I had an EMR step that contained a `&` and this caused the ListStep call to fail.

I've added the `| escape` filter to handle it in this case and a few other cases that look like they could suffer the same fate.
This commit is contained in:
Ash Berlin-Taylor 2018-03-21 15:57:50 +00:00 committed by Jack Danger
commit 1b20f21a75
2 changed files with 14 additions and 14 deletions

View file

@ -443,7 +443,7 @@ def test_bootstrap_actions():
BootstrapAction(
name='bs1',
path='path/to/script',
bootstrap_action_args=['arg1', 'arg2']),
bootstrap_action_args=['arg1', 'arg2&arg3']),
BootstrapAction(
name='bs2',
path='path/to/anotherscript',
@ -551,7 +551,7 @@ def test_steps():
input='s3n://elasticmapreduce/samples/wordcount/input',
output='s3n://output_bucket/output/wordcount_output'),
StreamingStep(
name='My wordcount example2',
name='My wordcount example & co.',
mapper='s3n://elasticmapreduce/samples/wordcount/wordSplitter2.py',
reducer='aggregate',
input='s3n://elasticmapreduce/samples/wordcount/input2',