Skip to content

Commit 906cc59

Browse files
committed
Install latest builds from internal nightlies in beaker tests
Modules that rely on litmus use the puppet_agent module to install the latest released and nightly versions of `puppet-agent` packages: bundle exec rake 'litmus:install_agent[puppet7-nightly]' Commits 025aa70 and b2e73a8 changed the default location where nightly builds are installed from. Since we haven't documented how to do that, revert those changes. Instead specify the internal sources in the test for the situation where a platform has been recently added, but hasn't been released yet, for example, macOS 15 ARM. We will need to revisit how to install `puppet*_nightly` puppet core builds.
1 parent 1c464ae commit 906cc59

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

task_spec/spec/acceptance/init_spec.rb

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,16 @@ def latest_platform_list
4848
}x
4949
end
5050

51+
# This method lists sources to be used when installing packages that haven't been released yet (see above).
52+
def latest_sources
53+
{
54+
'yum_source' => 'https://artifactory.delivery.puppetlabs.net:443/artifactory/internal_nightly__local/yum',
55+
'apt_source' => 'https://artifactory.delivery.puppetlabs.net:443/artifactory/internal_nightly__local/apt',
56+
'mac_source' => 'https://artifactory.delivery.puppetlabs.net:443/artifactory/internal_nightly__local/downloads',
57+
'windows_source' => 'https://artifactory.delivery.puppetlabs.net:443/artifactory/internal_nightly__local/downloads',
58+
}
59+
end
60+
5161
it 'works with version and install tasks' do
5262
case target_platform
5363
when latest_platform_list
@@ -57,7 +67,7 @@ def latest_platform_list
5767
# Install an puppet8 nightly version
5868
results = run_task('puppet_agent::install', 'target', { 'collection' => 'puppet8-nightly',
5969
'version' => 'latest',
60-
'stop_service' => true })
70+
'stop_service' => true }.merge(latest_sources))
6171

6272
results.each do |result|
6373
logger.info("Installed puppet-agent on #{result['target']}: #{result['status']}")

0 commit comments

Comments
 (0)