Skip to content

Commit 25012c4

Browse files
authored
Merge pull request #706 from span786/PA-5586-add-debian-12-x86-64-to-the-puppet-agent-module-task-acceptance
[PA-5586]: Add debian-12-x86_64 to the puppet agent module task acceptance
2 parents 4d148c4 + 84a53a9 commit 25012c4

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

task_spec/spec/acceptance/init_spec.rb

+15-2
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,19 @@ def log_output_errors(result)
3838
puts logger.info(out)
3939
end
4040

41+
# Added this method to simplify the 'case' condition
42+
# used for target_platform, which will use latest puppet_agent
43+
# in below mentioned test spec
44+
def latest_platform_list
45+
%r{
46+
el-9-aarch64|
47+
ubuntu-22\.04-aarch64|
48+
amazon-2023|
49+
osx-14|
50+
debian-12
51+
}x
52+
end
53+
4154
it 'works with version and install tasks' do
4255
# Specify the first released version for each target platform. When adding a new
4356
# OS, you'll typically want to specify 'latest' to install from nightlies, since
@@ -56,7 +69,7 @@ def log_output_errors(result)
5669
'7.18.0'
5770
when %r{osx-13}
5871
'7.26.0'
59-
when %r{el-9-aarch64}, %r{ubuntu-22.04-aarch64}, %r{amazon-2023-x86_64}, %r{amazon-2023-aarch64}, %r{osx-14}
72+
when latest_platform_list
6073
'latest'
6174
else
6275
'7.18.0'
@@ -71,7 +84,7 @@ def log_output_errors(result)
7184
# else
7285
# end
7386
case target_platform
74-
when %r{el-9-aarch64}, %r{ubuntu-22.04-aarch64}, %r{amazon-2023-x86_64}, %r{amazon-2023-aarch64}, %r{osx-14}
87+
when latest_platform_list
7588
puppet_7_collection = 'puppet7-nightly'
7689
puppet_8_collection = 'puppet8-nightly'
7790
else

0 commit comments

Comments
 (0)