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 +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/beaker/host/mac/pkg.rb +3 -1
- data/lib/beaker/version.rb +1 -1
- data/spec/beaker/host/mac_spec.rb +28 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94de428f52b80007b5443a3694bfba1c6cf8fb694373a760ba825d0b044117bb
|
4
|
+
data.tar.gz: 0d28d5a725253b87ca396639767778f1a70d143094b94049a60616d7e7accd0d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/beaker/host/mac/pkg.rb
CHANGED
@@ -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
|
-
|
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"
|
data/lib/beaker/version.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2022-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|