Skip to content

Commit

Permalink
(maint) Add workaround for AlmaLinux package testing failures
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
cthorn42 committed Feb 2, 2024
1 parent d9330f1 commit 4287a56
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
skip_test('Skipping EC2 Hosts') if fact_on(agent, 'ec2_metadata')
end

# Upgrade the AlmaLinux release package for newer keys until our image is updated (RE-16096)
on(agent, 'dnf -y upgrade almalinux-release') if on(agent, facter('os.name')).stdout.strip == 'AlmaLinux'

tag 'audit:high',
'audit:acceptance' # Uses a provider that depends on AIO packaging

Expand Down
3 changes: 3 additions & 0 deletions acceptance/tests/resource/package/yum.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
skip_test('Skipping EC2 Hosts') if fact_on(agent, 'ec2_metadata')
end

# Upgrade the AlmaLinux release package for newer keys until our image is updated (RE-16096)
on(agent, 'dnf -y upgrade almalinux-release') if on(agent, facter('os.name')).stdout.strip == 'AlmaLinux'

tag 'audit:high',
'audit:acceptance' # Could be done at the integration (or unit) layer though
# actual changing of resources could irreparably damage a
Expand Down

0 comments on commit 4287a56

Please sign in to comment.