summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/get_url
diff options
context:
space:
mode:
authorDag Wieers <dag@wieers.com>2019-02-26 21:09:42 +0100
committerBrian Coca <bcoca@users.noreply.github.com>2019-02-26 21:09:42 +0100
commit8f671e6cff246ab079137baa77f40c34a5dc8673 (patch)
tree8e0f613b70a71cc91547fcbbc4327c26307f7479 /test/integration/targets/get_url
parentReduce vcenter integration test boilerplate. (diff)
downloadansible-8f671e6cff246ab079137baa77f40c34a5dc8673.tar.xz
ansible-8f671e6cff246ab079137baa77f40c34a5dc8673.zip
Squash redundant tasks (#52628)
This PR includes some changes to reduce the number of tasks.
Diffstat (limited to 'test/integration/targets/get_url')
-rw-r--r--test/integration/targets/get_url/tasks/main.yml39
1 files changed, 12 insertions, 27 deletions
diff --git a/test/integration/targets/get_url/tasks/main.yml b/test/integration/targets/get_url/tasks/main.yml
index 53789848fd..40a5b683d4 100644
--- a/test/integration/targets/get_url/tasks/main.yml
+++ b/test/integration/targets/get_url/tasks/main.yml
@@ -288,41 +288,26 @@
- name: create sha1 checksum file of src
copy:
dest: '{{ files_dir }}/sha1sum.txt'
- content: "a97e6837f60cec6da4491bab387296bbcd72bdba 27617.txt"
-
-- name: add sha1 checksum not going to be downloaded
- lineinfile:
- dest: "{{ files_dir }}/sha1sum.txt"
- line: "{{ item }}"
- loop:
- - '3911340502960ca33aece01129234460bfeb2791 not_target1.txt'
- - '1b4b6adf30992cedb0f6edefd6478ff0a593b2e4 not_target2.txt'
+ content: |
+ a97e6837f60cec6da4491bab387296bbcd72bdba 27617.txt
+ 3911340502960ca33aece01129234460bfeb2791 not_target1.txt
+ 1b4b6adf30992cedb0f6edefd6478ff0a593b2e4 not_target2.txt
- name: create sha256 checksum file of src
copy:
dest: '{{ files_dir }}/sha256sum.txt'
- content: "b1b6ce5073c8fac263a8fc5edfffdbd5dec1980c784e09c5bc69f8fb6056f006. 27617.txt"
-
-- name: add sha256 checksum not going to be downloaded
- lineinfile:
- dest: "{{ files_dir }}/sha256sum.txt"
- line: "{{ item }}"
- loop:
- - '30949cc401e30ac494d695ab8764a9f76aae17c5d73c67f65e9b558f47eff892 not_target1.txt'
- - 'd0dbfc1945bc83bf6606b770e442035f2c4e15c886ee0c22fb3901ba19900b5b not_target2.txt'
+ content: |
+ b1b6ce5073c8fac263a8fc5edfffdbd5dec1980c784e09c5bc69f8fb6056f006. 27617.txt
+ 30949cc401e30ac494d695ab8764a9f76aae17c5d73c67f65e9b558f47eff892 not_target1.txt
+ d0dbfc1945bc83bf6606b770e442035f2c4e15c886ee0c22fb3901ba19900b5b not_target2.txt
- name: create sha256 checksum file of src with a dot leading path
copy:
dest: '{{ files_dir }}/sha256sum_with_dot.txt'
- content: "b1b6ce5073c8fac263a8fc5edfffdbd5dec1980c784e09c5bc69f8fb6056f006. ./27617.txt"
-
-- name: add sha256 checksums with dot leading path not going to be downloaded
- lineinfile:
- dest: "{{ files_dir }}/sha256sum_with_dot.txt"
- line: "{{ item }}"
- loop:
- - '30949cc401e30ac494d695ab8764a9f76aae17c5d73c67f65e9b558f47eff892 ./not_target1.txt'
- - 'd0dbfc1945bc83bf6606b770e442035f2c4e15c886ee0c22fb3901ba19900b5b ./not_target2.txt'
+ content: |
+ b1b6ce5073c8fac263a8fc5edfffdbd5dec1980c784e09c5bc69f8fb6056f006. ./27617.txt
+ 30949cc401e30ac494d695ab8764a9f76aae17c5d73c67f65e9b558f47eff892 ./not_target1.txt
+ d0dbfc1945bc83bf6606b770e442035f2c4e15c886ee0c22fb3901ba19900b5b ./not_target2.txt
- copy:
src: "testserver.py"