summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/yum
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/yum')
-rw-r--r--test/integration/targets/yum/tasks/yum.yml30
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"