diff options
author | Tony Finch <dot@dotat.at> | 2019-03-01 10:53:28 +0100 |
---|---|---|
committer | John R Barker <john@johnrbarker.com> | 2019-03-01 10:53:28 +0100 |
commit | ccad79d162bd32eb42453cc5e1b2f57b93df2503 (patch) | |
tree | 74d0f5adff54873951c2f10ee0b702aa18ba8856 /test/integration | |
parent | Do not delete duplicate host when fetching Zabbix Hosts (#53160) (diff) | |
download | ansible-ccad79d162bd32eb42453cc5e1b2f57b93df2503.tar.xz ansible-ccad79d162bd32eb42453cc5e1b2f57b93df2503.zip |
get_url: return no change in check mode when checksum matches (#53070)
Signed-off-by: Tony Finch <dot@dotat.at>
Diffstat (limited to 'test/integration')
-rw-r--r-- | test/integration/targets/get_url/tasks/main.yml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/integration/targets/get_url/tasks/main.yml b/test/integration/targets/get_url/tasks/main.yml index 40a5b683d4..829d55c63f 100644 --- a/test/integration/targets/get_url/tasks/main.yml +++ b/test/integration/targets/get_url/tasks/main.yml @@ -268,6 +268,19 @@ that: - result is not changed +- name: test checksum match in check mode + get_url: + url: 'https://{{ httpbin_host }}/get' + dest: '{{ remote_tmp_dir }}/test' + checksum: 'sha256:7036ede810fad2b5d2e7547ec703cae8da61edbba43c23f9d7203a0239b765c4.' + check_mode: True + register: result + +- name: Assert that check mode was green + assert: + that: + - result is not changed + # https://github.com/ansible/ansible/issues/27617 - name: set role facts |