From c99493eb3f1121b73f76927e37834afa0d6e0269 Mon Sep 17 00:00:00 2001 From: Martin Krizek Date: Tue, 19 Nov 2024 18:00:35 +0100 Subject: dnf5 - consolidate package resolving settings (#84335) Fixes #84334 --- test/integration/targets/dnf/tasks/repo.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'test') 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 -- cgit v1.2.3