diff --git a/tests/integration/targets/aws_s3/tasks/main.yml b/tests/integration/targets/aws_s3/tasks/main.yml index 842c2ae51a9..59104dae05b 100644 --- a/tests/integration/targets/aws_s3/tasks/main.yml +++ b/tests/integration/targets/aws_s3/tasks/main.yml @@ -573,7 +573,7 @@ bucket: "{{ bucket_name }}" object: put-template.txt mode: put - content: "{{ lookup('template', 'templates/put-template.txt.j2') }}" + content: "{{ lookup('template', 'templates/put-template.txt.j2')|replace('\n', '') }}" register: result - assert: @@ -589,7 +589,7 @@ - assert: that: - - result.contents == "{{ lookup('template', 'templates/put-template.txt.j2') }}" + - result.contents == "template:test template" # at present, there is no lookup that can process binary data, so we use slurp instead - slurp: