Skip to content

Commit

Permalink
Merge pull request #736 from mhashizume/maint/main/test-fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
joshcooper authored Sep 26, 2024
2 parents 51c1b67 + 0adc827 commit 26310e3
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions task_spec/spec/acceptance/init_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,11 @@ 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
# This method contains a list of platforms that are only available in nightly builds of puppet-agent. Once a regular
# release of puppet-agent includes support for these platforms, they can be removed from this method and added to
# the logic that determines the puppet_7_version variable below.
def latest_platform_list
%r{
ubuntu-24|
fedora-40
}x
# %r{operatingsystem-version-architecture}
end

it 'works with version and install tasks' do
Expand All @@ -72,22 +69,17 @@ def latest_platform_list
'7.28.0'
when %r{debian-12}
'7.29.0'
when %r{el-9-ppc64le}, %r{amazon-2}
when %r{el-9-ppc64le}, %r{amazon-2}, %r{fedora-40}
'7.31.0'
when %r{ubuntu-24.04}
'7.32.1'
when latest_platform_list
'latest'
else
'7.18.0'
end

# Platforms that only have nightly builds available. Once a platform
# is released, it should be removed from this list.
# case target_platform
# when %r{fedora-36}
# puppet_7_collection = 'puppet7-nightly'
# puppet_8_collection = 'puppet8-nightly'
# else
# end
# Use nightlies for unreleased platforms
case target_platform
when latest_platform_list
puppet_7_collection = 'puppet7-nightly'
Expand Down

0 comments on commit 26310e3

Please sign in to comment.