summaryrefslogtreecommitdiff
path: root/test/integration/targets
diff options
context:
space:
mode:
authorMartin Krizek <martin.krizek@gmail.com>2022-08-03 18:54:24 +0200
committerGitHub <noreply@github.com>2022-08-03 09:54:24 -0700
commitfc82d215a67fed191d0320cbd1a55b4ac369116c (patch)
tree34b0b6d698f85bd170a91aaede20f1d6b84b3f2d /test/integration/targets
parent63f6fa071434fe9ee744ea1f87b30362085fdb5b (diff)
downloadansible-fc82d215a67fed191d0320cbd1a55b4ac369116c.tar.gz
yum: fix releasever for latest (#78066) (#78242)
Fixes #78058 (cherry picked from commit 2bc2153c01beb4305bb639dbbe342dc925ce66e1)
Diffstat (limited to 'test/integration/targets')
-rw-r--r--test/integration/targets/yum/tasks/yuminstallroot.yml19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/integration/targets/yum/tasks/yuminstallroot.yml b/test/integration/targets/yum/tasks/yuminstallroot.yml
index f9bee6f9ae..bb69151ad7 100644
--- a/test/integration/targets/yum/tasks/yuminstallroot.yml
+++ b/test/integration/targets/yum/tasks/yuminstallroot.yml
@@ -109,6 +109,25 @@
- "yum_result.rc == 0"
- "yum_result.changed"
- "rpm_result.rc == 0"
+ - name: remove python before another test
+ yum:
+ name: 'python'
+ state: absent
+ installroot: "{{ buildah_mount.stdout }}"
+ releasever: "{{ buildah_host_releasever.stdout }}"
+ - name: test yum install of python using releasever with latest
+ yum:
+ name: 'python'
+ state: latest
+ installroot: "{{ buildah_mount.stdout }}"
+ releasever: "{{ buildah_host_releasever.stdout }}"
+ register: yum_result
+ - name: verify installation of python
+ assert:
+ that:
+ - "yum_result.rc == 0"
+ - "yum_result.changed"
+ - "rpm_result.rc == 0"
always:
- name: remove buildah container
command: "buildah rm yum_installroot_releasever_test"