beaker 4.37.1 → 4.37.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f0d409c6cd07fc46ac641d68560cfe5ab40515df89f1a15bf6521b9f3bc044d9
4
- data.tar.gz: e4d0909c8e1cb8190d35e740ee5c954f9e50241b4e763f416ed2d1374c92d2c2
3
+ metadata.gz: 94de428f52b80007b5443a3694bfba1c6cf8fb694373a760ba825d0b044117bb
4
+ data.tar.gz: 0d28d5a725253b87ca396639767778f1a70d143094b94049a60616d7e7accd0d
5
5
  SHA512:
6
- metadata.gz: 45402a7f027808b4a3b3b7e797cf6fcdfb620d3dd7af45e0e07771fb289c21f7bb65265698a1225eeac15629542738cd0e1f67ae5dfd29bb1e1abeef9f5db554
7
- data.tar.gz: 48f6623ca4b0f61dd737f1ef16d1258558aa238ba57bbf8596cd69b3403d5b3883d8d89977d73fd637c526b5665fe12d03af3fd68d38c37d646031cffac506d0
6
+ metadata.gz: 73f8ec5ae3893fe1b99b08515eac624b1531505c2793d507837a30e5bd0a6d87196fee04828d291e1c8bb1f2ab8dc3b158864270aa75a50d43a3759019ddbb94
7
+ data.tar.gz: c81de7019a75a1532ec4ae1b52826c93bc3cfee7060ee52948c364be6ae50174177743bea06edd52b6cbd0866ed3d501d34c686bfe1c0e2c94ae9edfb4915a7b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.37.2](https://github.com/voxpupuli/beaker/tree/4.37.2) (2022-07-28)
4
+
5
+ ## Fixed
6
+
7
+ - Use the new scheme for agent versions >= 6.28 and < 7 [\#1749](https://github.com/voxpupuli/beaker/pull/1749) ([joshcooper](https://github.com/joshcooper))
8
+
3
9
  ## [4.37.1](https://github.com/voxpupuli/beaker/tree/4.37.1) (2022-07-27)
4
10
 
5
11
  ## Fixed
@@ -121,7 +121,9 @@ module Mac::Pkg
121
121
 
122
122
  # macOS puppet-agent tarballs haven't always included arch
123
123
  agent_version = opts[:puppet_agent_version]
124
- download_file = if agent_version && (agent_version.to_f < 6.28 || agent_version.to_f < 7.18)
124
+ agent_version_f = agent_version&.to_f
125
+
126
+ download_file = if agent_version_f.nil? || (agent_version_f < 6.28 || (agent_version_f >= 7.0 && agent_version_f < 7.18))
125
127
  "puppet-agent-#{variant}-#{version}.tar.gz"
126
128
  else
127
129
  "puppet-agent-#{variant}-#{version}-#{arch}.tar.gz"
@@ -1,5 +1,5 @@
1
1
  module Beaker
2
2
  module Version
3
- STRING = '4.37.1'
3
+ STRING = '4.37.2'
4
4
  end
5
5
  end
@@ -82,5 +82,32 @@ module Mac
82
82
  expect( release_path_end ).to be === "apple/PC8"
83
83
  end
84
84
  end
85
+
86
+ describe '#pe_puppet_agent_promoted_package_info' do
87
+ before :each do
88
+ @platform = "osx-10.15-x86_64"
89
+ end
90
+
91
+ it "uses the old scheme if the version is omitted" do
92
+ _, _, download_file = host.pe_puppet_agent_promoted_package_info('pa_collection')
93
+
94
+ expect(download_file).to eq('puppet-agent-osx-10.15.tar.gz')
95
+ end
96
+
97
+ {
98
+ '5.5.22' => 'puppet-agent-osx-10.15.tar.gz',
99
+ '6.27.0' => 'puppet-agent-osx-10.15.tar.gz',
100
+ '6.28.0' => 'puppet-agent-osx-10.15-x86_64.tar.gz',
101
+ '7.0.0' => 'puppet-agent-osx-10.15.tar.gz',
102
+ '7.18.0' => 'puppet-agent-osx-10.15-x86_64.tar.gz',
103
+ '8.0.0' => 'puppet-agent-osx-10.15-x86_64.tar.gz',
104
+ }.each_pair do |version, expected|
105
+ it "returns #{expected} for puppet-agent #{version}" do
106
+ _, _, download_file = host.pe_puppet_agent_promoted_package_info('pa_collection', puppet_agent_version: version)
107
+
108
+ expect(download_file).to eq(expected)
109
+ end
110
+ end
111
+ end
85
112
  end
86
- end
113
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beaker
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.37.1
4
+ version: 4.37.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-27 00:00:00.000000000 Z
11
+ date: 2022-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec