diff options
author | Martin Krizek <martin.krizek@gmail.com> | 2024-06-28 11:45:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-28 11:45:40 +0200 |
commit | 2930a4664c2b4ac3c8b1127c91d98d53644e61cf (patch) | |
tree | 605f3f0cb86c4d90a64a8071fbe6268c69b063c9 /test | |
parent | Fix simmilar branches (#83497) (diff) | |
download | ansible-2930a4664c2b4ac3c8b1127c91d98d53644e61cf.tar.xz ansible-2930a4664c2b4ac3c8b1127c91d98d53644e61cf.zip |
dnf - arches must be the same in the is_newer_installed check (#83417)
Fixes #83406
Diffstat (limited to 'test')
-rw-r--r-- | test/integration/targets/dnf/tasks/repo.yml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/integration/targets/dnf/tasks/repo.yml b/test/integration/targets/dnf/tasks/repo.yml index d50535be1b..634b46f48c 100644 --- a/test/integration/targets/dnf/tasks/repo.yml +++ b/test/integration/targets/dnf/tasks/repo.yml @@ -542,3 +542,23 @@ dnf: name: provides_foo* state: absent + +- name: test that only evr is compared, avoiding a situation when a specific arch would be considered as a "newer" package + block: + - dnf: + name: "{{ item }}" + state: present + loop: + - "dinginessentail-1.0-1.x86_64" + - "dinginessentail-1.0-1.i686" + register: dnf_results + + - assert: + that: + - dnf_results["results"][0] is changed + - dnf_results["results"][1] is changed + always: + - name: Clean up + dnf: + name: dinginessentail + state: absent |