summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMartin Krizek <martin.krizek@gmail.com>2024-06-26 16:36:12 +0200
committerGitHub <noreply@github.com>2024-06-26 16:36:12 +0200
commit0ee6e39615033d8eb451eca0a8d22407a1ded987 (patch)
tree6df2e28c73271d78e1297203ac4fbdb732c93f95 /test
parentEnable Ubuntu 24.04 group 6 in CI (#83466) (diff)
downloadansible-0ee6e39615033d8eb451eca0a8d22407a1ded987.tar.xz
ansible-0ee6e39615033d8eb451eca0a8d22407a1ded987.zip
dnf, dnf5: fix installing via wildcard (#83481)
Fixes #83373
Diffstat (limited to 'test')
-rw-r--r--test/integration/targets/dnf/tasks/repo.yml22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/integration/targets/dnf/tasks/repo.yml b/test/integration/targets/dnf/tasks/repo.yml
index 7e34aede3a..d50535be1b 100644
--- a/test/integration/targets/dnf/tasks/repo.yml
+++ b/test/integration/targets/dnf/tasks/repo.yml
@@ -520,3 +520,25 @@
dnf:
name: epochone
state: absent
+
+# https://github.com/ansible/ansible/issues/83373
+- name: test installing a set of packages by specifying them using a wildcard character
+ block:
+ - dnf:
+ name: provides_foo_a
+ state: present
+
+ - dnf:
+ name: provides_foo*
+ state: present
+ register: dnf_results
+
+ - assert:
+ that:
+ - dnf_results is changed
+ - "'Installed: provides_foo_b' in dnf_results['results'][0]"
+ always:
+ - name: Clean up
+ dnf:
+ name: provides_foo*
+ state: absent