ansible-test - Add support for RHEL 8.5 instances. (#76305)

* ansible-test - Add support for RHEL 8.5 instances.
* Clear libdnf checksum cache from unsigned package in dnf integration test.

Co-authored-by: Matt Martz <matt@sivel.net>
pull/76310/head
Matt Clay 3 years ago committed by GitHub
parent d0ec236d4a
commit 21ac52435b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -92,10 +92,10 @@ stages:
test: macos/11.1 test: macos/11.1
- name: RHEL 7.9 - name: RHEL 7.9
test: rhel/7.9 test: rhel/7.9
- name: RHEL 8.4 py36 - name: RHEL 8.5 py36
test: rhel/8.4@3.6 test: rhel/8.5@3.6
- name: RHEL 8.4 py38 - name: RHEL 8.5 py38
test: rhel/8.4@3.8 test: rhel/8.5@3.8
- name: RHEL 9.0b - name: RHEL 9.0b
test: rhel/9.0b test: rhel/9.0b
- name: FreeBSD 12.2 - name: FreeBSD 12.2
@ -171,10 +171,10 @@ stages:
test: macos/11.1 test: macos/11.1
- name: RHEL 7.9 - name: RHEL 7.9
test: rhel/7.9 test: rhel/7.9
- name: RHEL 8.4 py36 - name: RHEL 8.5 py36
test: rhel/8.4@3.6 test: rhel/8.5@3.6
- name: RHEL 8.4 py38 - name: RHEL 8.5 py38
test: rhel/8.4@3.8 test: rhel/8.5@3.8
- name: RHEL 9.0b - name: RHEL 9.0b
test: rhel/9.0b test: rhel/9.0b
- name: FreeBSD 12.2 - name: FreeBSD 12.2

@ -0,0 +1,2 @@
minor_changes:
- ansible-test - Add support for ``rhel/8.5`` remote instances.

@ -10,10 +10,11 @@
- '{{ pkg_name }}' - '{{ pkg_name }}'
state: absent state: absent
- name: Install rpm-sign - name: Install rpm-sign and attr
dnf: dnf:
name: name:
- rpm-sign - rpm-sign
- attr
state: present state: present
- name: Create directory to use as local repo - name: Create directory to use as local repo
@ -31,6 +32,14 @@
- name: Unsign the RPM - name: Unsign the RPM
shell: rpmsign --delsign {{ remote_tmp_dir }}/unsigned/{{ pkg_name }}* shell: rpmsign --delsign {{ remote_tmp_dir }}/unsigned/{{ pkg_name }}*
# In RHEL 8.5 dnf uses libdnf to do checksum verification, which caches the checksum on an xattr of the file
# itself, so we need to clear that cache
- name: Clear libdnf checksum cache
shell: setfattr -x user.Librepo.checksum.sha256 {{ remote_tmp_dir }}/unsigned/{{ pkg_name }}*
when: ansible_distribution in ['RedHat', 'CentOS'] and
ansible_distribution_version is version('8.5', '>=') and
ansible_distribution_version is version('9', '<')
- name: createrepo - name: createrepo
command: createrepo . command: createrepo .
args: args:
@ -60,10 +69,11 @@
- "'is not signed' in res.msg" - "'is not signed' in res.msg"
always: always:
- name: Remove rpm-sign (and test package if it got installed) - name: Remove rpm-sign and attr (and test package if it got installed)
dnf: dnf:
name: name:
- rpm-sign - rpm-sign
- attr
- "{{ pkg_name }}" - "{{ pkg_name }}"
state: absent state: absent

@ -5,6 +5,7 @@ macos/11.1 python=3.9 python_dir=/usr/local/bin provider=parallels
macos python_dir=/usr/local/bin provider=parallels macos python_dir=/usr/local/bin provider=parallels
rhel/7.9 python=2.7 provider=aws rhel/7.9 python=2.7 provider=aws
rhel/8.4 python=3.6,3.8 provider=aws rhel/8.4 python=3.6,3.8 provider=aws
rhel/8.5 python=3.6,3.8,3.9 provider=aws
rhel/9.0b python=3.9 provider=aws rhel/9.0b python=3.9 provider=aws
rhel provider=aws rhel provider=aws
aix/7.2 python=2.7,3.7 python_dir=/opt/freeware/bin provider=ibmps aix/7.2 python=2.7,3.7 python_dir=/opt/freeware/bin provider=ibmps

Loading…
Cancel
Save