summaryrefslogtreecommitdiff
path: root/test/integration/targets/dnf/tasks/filters.yml
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/dnf/tasks/filters.yml')
-rw-r--r--test/integration/targets/dnf/tasks/filters.yml28
1 files changed, 28 insertions, 0 deletions
diff --git a/test/integration/targets/dnf/tasks/filters.yml b/test/integration/targets/dnf/tasks/filters.yml
index d5e9ee906b..2bff25bcd3 100644
--- a/test/integration/targets/dnf/tasks/filters.yml
+++ b/test/integration/targets/dnf/tasks/filters.yml
@@ -98,6 +98,19 @@
allow_downgrade: true
disable_gpg_check: true
+ - name: Verify toaster is not upgraded with state=installed
+ dnf:
+ name: "{{ item }}"
+ state: installed
+ register: installed
+ loop:
+ - toaster
+ - toaster.noarch
+ - toaster-1.2.3.4-1.el8.noarch
+
+ - assert:
+ that: "installed.results | map(attribute='changed') is not any"
+
- name: Ask for pending updates with bugfix=true and security=true
dnf:
name: '*'
@@ -118,6 +131,21 @@
- '"Installed: oven-1.2.3.5-1.el8.noarch" in update_bugfix.results'
- '"Removed: oven-1.2.3.4-1.el8.noarch" in update_bugfix.results'
+ - name: Install old version of toaster again
+ dnf:
+ name: "{{ updateinfo_repo }}/toaster-1.2.3.4-1.el8.noarch.rpm"
+ allow_downgrade: true
+ disable_gpg_check: true
+
+ - name: Verify toaster is upgraded with state=latest
+ dnf:
+ name: toaster.noarch
+ state: latest
+ register: result
+
+ - assert:
+ that: result.changed
+
always:
- name: Remove installed packages
dnf: