diff options
author | Martin Krizek <martin.krizek@gmail.com> | 2024-11-19 18:00:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-19 18:00:35 +0100 |
commit | c99493eb3f1121b73f76927e37834afa0d6e0269 (patch) | |
tree | c21ed4da523471be97415e451f75c44759374fb9 /test/integration/targets | |
parent | dnf5: fix is_installed check (#84275) (diff) | |
download | ansible-c99493eb3f1121b73f76927e37834afa0d6e0269.tar.xz ansible-c99493eb3f1121b73f76927e37834afa0d6e0269.zip |
dnf5 - consolidate package resolving settings (#84335)
Fixes #84334
Diffstat (limited to 'test/integration/targets')
-rw-r--r-- | test/integration/targets/dnf/tasks/repo.yml | 23 |
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 |