beaker-puppet 4.0.0 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 37f61fccae5c08bae5c7653b34c25b505cbd4962093f1508852dd2bf578d003b
4
- data.tar.gz: 419309478e2bab667ccea4ee45f1c023cad6723f80a6b3874ce323cfc4bac9cc
3
+ metadata.gz: a8afbe94a259d88e99964c542bc6e9c321c073969c05d9ab34b55540ca077118
4
+ data.tar.gz: 7d257b9d096051e9dec2566172352791eecb410b476003d1d21147185a4bd698
5
5
  SHA512:
6
- metadata.gz: 60d06296bad76fa5a08317f4d439044ec16d52fa661aad6e5d3a8e3b6bb412fbe3a463d28d32d410e233a33d543dbae055acd48e7bbc24ea369f0e75d39248d5
7
- data.tar.gz: d34b27685bef1bce10eb0ddb0e5102af3a9b8fb54b0611553e402891460a318f9e452bc8a6876487c79264d64e7b9c5e322aaa2421a825b40fe110c0edd12d47
6
+ metadata.gz: a57b72b62904a6b4bd9042e8d3befd6fe8f2e6edbcf55ca1aacf26969fe8abc3bfedf836a38e02fdd0176d36e64afd85b3a80efac562244a9fdd14efbf33ab37
7
+ data.tar.gz: a32f96fccd55f6ecb77605a3d20ed51ee7913d807a1bdab9c2274abefafac279fec24486210091cb846907f792575dc1941f323cb9db22ba243af0ba105aba68
data/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [4.1.0](https://github.com/puppetlabs/beaker-puppet/tree/4.1.0) (2024-05-31)
6
+
7
+ [Full Changelog](https://github.com/puppetlabs/beaker-puppet/compare/4.0.0...4.1.0)
8
+
9
+ **Implemented enhancements:**
10
+
11
+ - Add support for Ubuntu 24.04 [\#257](https://github.com/puppetlabs/beaker-puppet/pull/257) ([joshcooper](https://github.com/joshcooper))
12
+
5
13
  ## [4.0.0](https://github.com/puppetlabs/beaker-puppet/tree/4.0.0) (2024-05-28)
6
14
 
7
15
  [Full Changelog](https://github.com/puppetlabs/beaker-puppet/compare/3.0.1...4.0.0)
@@ -59,6 +67,14 @@ All notable changes to this project will be documented in this file.
59
67
  - Bump actions/checkout from 3 to 4 [\#227](https://github.com/puppetlabs/beaker-puppet/pull/227) ([dependabot[bot]](https://github.com/apps/dependabot))
60
68
  - Update voxpupuli-rubocop requirement from ~\> 1.2 to ~\> 2.0 [\#226](https://github.com/puppetlabs/beaker-puppet/pull/226) ([dependabot[bot]](https://github.com/apps/dependabot))
61
69
 
70
+ ## [2.1.0](https://github.com/puppetlabs/beaker-puppet/tree/2.1.0) (2024-03-19)
71
+
72
+ [Full Changelog](https://github.com/puppetlabs/beaker-puppet/compare/2.0.0...2.1.0)
73
+
74
+ **Implemented enhancements:**
75
+
76
+ - \[PA-6181\]: Fix acceptance test failure caused due to addition of Amazon Linux 2023 in pe-client-tools for orchestrator client pipeline [\#250](https://github.com/puppetlabs/beaker-puppet/pull/250) ([span786](https://github.com/span786))
77
+
62
78
  ## [2.0.0](https://github.com/puppetlabs/beaker-puppet/tree/2.0.0) (2023-05-05)
63
79
 
64
80
  [Full Changelog](https://github.com/puppetlabs/beaker-puppet/compare/1.29.0...2.0.0)
@@ -217,7 +217,12 @@ module Beaker
217
217
 
218
218
  install_targets.each do |host|
219
219
  artifact_url, repoconfig_url = host_urls(host, build_details, base_url)
220
- if repoconfig_url.nil?
220
+ if host.platform.variant == 'ubuntu' && host.platform.version.to_f >= 24.04
221
+ # install the specific artifact we built, not based on how its repos are configured
222
+ tmp_file = host.tmpfile('puppet-agent')
223
+ on(host, "curl -L --output #{tmp_file} #{artifact_url}")
224
+ host.install_local_package(tmp_file)
225
+ elsif repoconfig_url.nil?
221
226
  install_artifact_on(host, artifact_url, project_name)
222
227
  else
223
228
  install_repo_configs_on(host, repoconfig_url)
@@ -1,3 +1,3 @@
1
1
  module BeakerPuppet
2
- VERSION = '4.0.0'
2
+ VERSION = '4.1.0'
3
3
  end
@@ -12,7 +12,7 @@ end
12
12
  describe ClassMixedWithDSLInstallUtils do
13
13
  let(:hosts) do
14
14
  make_hosts({ pe_ver: '3.0',
15
- platform: 'linux',
15
+ platform: Beaker::Platform.new('redhat-9-x86_64'),
16
16
  roles: ['agent'],
17
17
  type: 'foss', }, 4)
18
18
  end
@@ -363,6 +363,23 @@ describe ClassMixedWithDSLInstallUtils do
363
363
  end.to raise_error(Beaker::DSL::Outcomes::FailTest, /project_name.*#{sha_yaml_url}/)
364
364
  end
365
365
 
366
+ it 'installs the artifact on newer Ubuntu hosts' do
367
+ artifact_url = 'https://builds.example.com/puppet-agent.deb'
368
+ project_name = 'fake_project_66'
369
+ allow(subject).to receive(:fetch_build_details)
370
+ allow(subject).to receive(:configure_type_defaults_on)
371
+ allow(subject).to receive(:host_urls) { [artifact_url, ''] }
372
+
373
+ hosts = [make_host('host.example.com', platform: Beaker::Platform.new('ubuntu-24.04-x86_64'))]
374
+ allow(subject).to receive(:hosts).and_return(hosts)
375
+ hosts.each do |host|
376
+ allow(host).to receive(:tmpfile).and_return('/tmp/puppet-agent.GcHvLR')
377
+ allow(subject).to receive(:on).with(host, /^curl/)
378
+ expect(host).to receive(:install_local_package).with('/tmp/puppet-agent.GcHvLR')
379
+ end
380
+ subject.install_from_build_data_url(project_name, 'sha_yaml_url')
381
+ end
382
+
366
383
  it 'runs host.install_package instead of #install_artifact_on if theres a repo_config' do
367
384
  repoconfig_url = 'pants/man/shoot/to/the/stars'
368
385
  project_name = 'fake_project_66'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beaker-puppet
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 4.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vox Pupuli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-29 00:00:00.000000000 Z
11
+ date: 2024-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fakefs