summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/dnf
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/dnf')
-rw-r--r--test/integration/targets/dnf/tasks/dnf.yml11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/integration/targets/dnf/tasks/dnf.yml b/test/integration/targets/dnf/tasks/dnf.yml
index 9845f3d..c5f0173 100644
--- a/test/integration/targets/dnf/tasks/dnf.yml
+++ b/test/integration/targets/dnf/tasks/dnf.yml
@@ -67,6 +67,17 @@
update_cache: True
register: dnf_result
+- find:
+ paths: /var/cache/dnf
+ patterns: "*.rpm"
+ recurse: true
+ register: r
+
+- name: verify that RPM cache is cleared after installation as keepcache is off by default
+ assert:
+ that:
+ - r.matched == 0
+
- name: check sos with rpm
shell: rpm -q sos
failed_when: False