Skip to content

Commit 4287a56

Browse files
committed
(maint) Add workaround for AlmaLinux package testing failures
Our AlmaLinux image is a bit out of date and needs to be updated. Until that is done we can update that as part of the tests that need it.
1 parent d9330f1 commit 4287a56

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

acceptance/tests/resource/package/common_package_name_in_different_providers.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
skip_test('Skipping EC2 Hosts') if fact_on(agent, 'ec2_metadata')
77
end
88

9+
# Upgrade the AlmaLinux release package for newer keys until our image is updated (RE-16096)
10+
on(agent, 'dnf -y upgrade almalinux-release') if on(agent, facter('os.name')).stdout.strip == 'AlmaLinux'
11+
912
tag 'audit:high',
1013
'audit:acceptance' # Uses a provider that depends on AIO packaging
1114

acceptance/tests/resource/package/yum.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
skip_test('Skipping EC2 Hosts') if fact_on(agent, 'ec2_metadata')
77
end
88

9+
# Upgrade the AlmaLinux release package for newer keys until our image is updated (RE-16096)
10+
on(agent, 'dnf -y upgrade almalinux-release') if on(agent, facter('os.name')).stdout.strip == 'AlmaLinux'
11+
912
tag 'audit:high',
1013
'audit:acceptance' # Could be done at the integration (or unit) layer though
1114
# actual changing of resources could irreparably damage a

0 commit comments

Comments
 (0)