Skip to content

Commit

Permalink
Merge pull request #706 from span786/PA-5586-add-debian-12-x86-64-to-…
Browse files Browse the repository at this point in the history
…the-puppet-agent-module-task-acceptance

[PA-5586]: Add debian-12-x86_64 to the puppet agent module task acceptance
  • Loading branch information
span786 authored Mar 6, 2024
2 parents 4d148c4 + 84a53a9 commit 25012c4
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions task_spec/spec/acceptance/init_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,19 @@ def log_output_errors(result)
puts logger.info(out)
end

# Added this method to simplify the 'case' condition
# used for target_platform, which will use latest puppet_agent
# in below mentioned test spec
def latest_platform_list
%r{
el-9-aarch64|
ubuntu-22\.04-aarch64|
amazon-2023|
osx-14|
debian-12
}x
end

it 'works with version and install tasks' do
# Specify the first released version for each target platform. When adding a new
# OS, you'll typically want to specify 'latest' to install from nightlies, since
Expand All @@ -56,7 +69,7 @@ def log_output_errors(result)
'7.18.0'
when %r{osx-13}
'7.26.0'
when %r{el-9-aarch64}, %r{ubuntu-22.04-aarch64}, %r{amazon-2023-x86_64}, %r{amazon-2023-aarch64}, %r{osx-14}
when latest_platform_list
'latest'
else
'7.18.0'
Expand All @@ -71,7 +84,7 @@ def log_output_errors(result)
# else
# end
case target_platform
when %r{el-9-aarch64}, %r{ubuntu-22.04-aarch64}, %r{amazon-2023-x86_64}, %r{amazon-2023-aarch64}, %r{osx-14}
when latest_platform_list
puppet_7_collection = 'puppet7-nightly'
puppet_8_collection = 'puppet8-nightly'
else
Expand Down

0 comments on commit 25012c4

Please sign in to comment.