Skip to content

Commit 3950b39

Browse files
authored
Merge pull request #9245 from puppetlabs/backport-9244-to-7.x
[Backport 7.x] Use agents beaker DSL method
2 parents 9505b58 + eeab09b commit 3950b39

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

acceptance/tests/resource/package/common_package_name_in_different_providers.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
end
88

99
# 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'
10+
agents.each do |agent|
11+
on(agent, 'dnf -y upgrade almalinux-release') if fact_on(agent, 'os.name') == 'AlmaLinux'
12+
end
1113

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

acceptance/tests/resource/package/yum.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
end
88

99
# 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'
10+
agents.each do |agent|
11+
on(agent, 'dnf -y upgrade almalinux-release') if fact_on(agent, 'os.name') == 'AlmaLinux'
12+
end
1113

1214
tag 'audit:high',
1315
'audit:acceptance' # Could be done at the integration (or unit) layer though

0 commit comments

Comments
 (0)