diff options
Diffstat (limited to 'test/integration/targets/dnf/tasks/dnf.yml')
-rw-r--r-- | test/integration/targets/dnf/tasks/dnf.yml | 30 |
1 files changed, 28 insertions, 2 deletions
diff --git a/test/integration/targets/dnf/tasks/dnf.yml b/test/integration/targets/dnf/tasks/dnf.yml index 75d1429db2..7adc2870b8 100644 --- a/test/integration/targets/dnf/tasks/dnf.yml +++ b/test/integration/targets/dnf/tasks/dnf.yml @@ -233,13 +233,12 @@ dnf: name=sos installroot='/' register: dnf_result -# Test download_only - name: uninstall sos for downloadonly test dnf: name: sos state: absent -- name: install sos +- name: Test download_only dnf: name: sos state: latest @@ -264,6 +263,33 @@ - "dnf_result is success" - "not dnf_result is changed" +- name: uninstall sos for downloadonly/downloaddir test + dnf: + name: sos + state: absent + +- name: Test download_only/download_dir + dnf: + name: sos + state: latest + download_only: true + download_dir: "/var/tmp/packages" + register: dnf_result + +- name: verify dnf output + assert: + that: + - "dnf_result is success" + - "dnf_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" + # GROUP INSTALL - name: install Custom Group group dnf: |