summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/dnf/tasks/repo.yml
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/dnf/tasks/repo.yml')
-rw-r--r--test/integration/targets/dnf/tasks/repo.yml23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/integration/targets/dnf/tasks/repo.yml b/test/integration/targets/dnf/tasks/repo.yml
index ec31fe4a4a..cdec5a85ae 100644
--- a/test/integration/targets/dnf/tasks/repo.yml
+++ b/test/integration/targets/dnf/tasks/repo.yml
@@ -564,3 +564,26 @@
dnf:
name: provides-binary
state: absent
+
+# https://github.com/ansible/ansible/issues/84334
+- name: test that a binary is not matched by its base name
+ block:
+ - dnf:
+ name: provides-binary
+ state: present
+
+ - dnf:
+ name: package-name
+ state: absent
+ register: dnf_result
+
+ - assert:
+ that:
+ - dnf_result is not changed
+ always:
+ - name: Clean up
+ dnf:
+ name:
+ - provides-binary
+ - package-name
+ state: absent