diff options
author | Martin Krizek <martin.krizek@gmail.com> | 2019-03-04 19:08:58 +0100 |
---|---|---|
committer | ansibot <ansibot@users.noreply.github.com> | 2019-03-04 13:08:58 -0500 |
commit | 239fb1f68d8b2c81776906bd77f7e39f0985b2a4 (patch) | |
tree | c206bee078fe0727fe0ff20ab4cee6e45e017b66 /test/integration/targets/yum | |
parent | 4ea51fd7ee1bfd1f312cdb7a15dd73172e13dfe3 (diff) | |
download | ansible-239fb1f68d8b2c81776906bd77f7e39f0985b2a4.tar.gz |
yum/dnf: Add download_dir param (#53171)
Diffstat (limited to 'test/integration/targets/yum')
-rw-r--r-- | test/integration/targets/yum/tasks/yum.yml | 30 |
1 files changed, 28 insertions, 2 deletions
diff --git a/test/integration/targets/yum/tasks/yum.yml b/test/integration/targets/yum/tasks/yum.yml index 7957e8bb16..29da992560 100644 --- a/test/integration/targets/yum/tasks/yum.yml +++ b/test/integration/targets/yum/tasks/yum.yml @@ -303,8 +303,7 @@ state: removed register: yum_result -# Test download_only -- name: install sos +- name: Test download_only yum: name: sos state: latest @@ -329,6 +328,33 @@ - "yum_result is success" - "not yum_result is changed" +- name: uninstall sos for downloadonly/downloaddir test + yum: + name: sos + state: absent + +- name: Test download_only/download_dir + yum: + name: sos + state: latest + download_only: true + download_dir: "/var/tmp/packages" + register: yum_result + +- name: verify yum output + assert: + that: + - "yum_result is success" + - "yum_result is changed" + +- command: "ls /var/tmp/packages" + register: ls_out + +- name: Verify specified download_dir was used + assert: + that: + - "'sos' in ls_out.stdout" + - name: install group yum: name: "@Development Tools" |