Skip to content

Commit 0e273cf

Browse files
skyamgarpshubhamshinde360
authored andcommitted
(PA-6627) Update the first released version for released platforms in spec
We add a new platform in 'latest_platform_list' method so that it considers builds from nightlies with the 'latest' tag before they are released (since the versioned release package won't be available for new platforms). The platforms which are no more new and have been released are removed from 'latest_platform_list' here along with their first released versions specified as needed. We also test upgrade from the first released puppet7 version to the latest released puppet7 version. The new platforms only have one release, so this test is not applicable for them. Removed platforms which have had multiple puppet7 versions released as of now to make the test applicable for them. This is done by setting the 'multiple_puppet7_versions' parameter to true.
1 parent cae2480 commit 0e273cf

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

task_spec/spec/acceptance/init_spec.rb

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,7 @@ def log_output_errors(result)
4242
# used for target_platform, which will use latest puppet_agent
4343
# in below mentioned test spec
4444
def latest_platform_list
45-
%r{
46-
el-9-aarch64|
47-
ubuntu-22\.04-aarch64|
48-
ubuntu-24|
49-
amazon-2023|
50-
amazon-2|
51-
osx-14|
52-
debian-12|
53-
debian-11-aarch64|
54-
el-9-ppc64le
55-
}x
45+
%r{ubuntu-24}
5646
end
5747

5848
it 'works with version and install tasks' do
@@ -73,6 +63,14 @@ def latest_platform_list
7363
'7.18.0'
7464
when %r{osx-13}
7565
'7.26.0'
66+
when %r{el-9-aarch64}, %r{ubuntu-22.04-aarch64}
67+
'7.27.0'
68+
when %r{amazon-2023}, %r{osx-14}, %r{debian-11-aarch64}
69+
'7.28.0'
70+
when %r{debian-12}
71+
'7.29.0'
72+
when %r{el-9-ppc64le}, %r{amazon-2}
73+
'7.31.0'
7674
when latest_platform_list
7775
'latest'
7876
else
@@ -106,7 +104,7 @@ def latest_platform_list
106104
# true
107105
# end
108106
multiple_puppet7_versions = case target_platform
109-
when %r{osx-13|osx-14|el-9-aarch64|debian-11-aarch64|el-9-ppc64le|amazon-2|ubuntu-24}
107+
when %r{el-9-ppc64le|amazon-2|ubuntu-24}
110108
false
111109
else
112110
true

0 commit comments

Comments
 (0)