diff --git a/tests/integration/targets/aws_s3/tasks/main.yml b/tests/integration/targets/aws_s3/tasks/main.yml index adfb92cf345..59104dae05b 100644 --- a/tests/integration/targets/aws_s3/tasks/main.yml +++ b/tests/integration/targets/aws_s3/tasks/main.yml @@ -11,6 +11,7 @@ - name: Create temporary directory tempfile: state: directory + path: /var/tmp register: tmpdir - name: Create content @@ -572,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: @@ -588,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: