Skip to content

Commit 26310e3

Browse files
authored
Merge pull request #736 from mhashizume/maint/main/test-fixup
2 parents 51c1b67 + 0adc827 commit 26310e3

File tree

1 file changed

+8
-16
lines changed

1 file changed

+8
-16
lines changed

task_spec/spec/acceptance/init_spec.rb

+8-16
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,11 @@ 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
41+
# This method contains a list of platforms that are only available in nightly builds of puppet-agent. Once a regular
42+
# release of puppet-agent includes support for these platforms, they can be removed from this method and added to
43+
# the logic that determines the puppet_7_version variable below.
4444
def latest_platform_list
45-
%r{
46-
ubuntu-24|
47-
fedora-40
48-
}x
45+
# %r{operatingsystem-version-architecture}
4946
end
5047

5148
it 'works with version and install tasks' do
@@ -72,22 +69,17 @@ def latest_platform_list
7269
'7.28.0'
7370
when %r{debian-12}
7471
'7.29.0'
75-
when %r{el-9-ppc64le}, %r{amazon-2}
72+
when %r{el-9-ppc64le}, %r{amazon-2}, %r{fedora-40}
7673
'7.31.0'
74+
when %r{ubuntu-24.04}
75+
'7.32.1'
7776
when latest_platform_list
7877
'latest'
7978
else
8079
'7.18.0'
8180
end
8281

83-
# Platforms that only have nightly builds available. Once a platform
84-
# is released, it should be removed from this list.
85-
# case target_platform
86-
# when %r{fedora-36}
87-
# puppet_7_collection = 'puppet7-nightly'
88-
# puppet_8_collection = 'puppet8-nightly'
89-
# else
90-
# end
82+
# Use nightlies for unreleased platforms
9183
case target_platform
9284
when latest_platform_list
9385
puppet_7_collection = 'puppet7-nightly'

0 commit comments

Comments
 (0)