beaker-pe 3.3.1 → 3.5.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 +4 -4
- data/.github/workflows/testing.yml +1 -0
- data/CHANGELOG.md +16 -0
- data/Gemfile +1 -1
- data/lib/beaker-pe/install/pe_utils.rb +6 -1
- data/lib/beaker-pe/options/pe_version_scraper.rb +1 -1
- data/lib/beaker-pe/version.rb +1 -1
- data/spec/beaker-pe/install/pe_utils_spec.rb +20 -1
- data/spec/beaker-pe/pe-client-tools/installer_helper_spec.rb +4 -4
- metadata +6 -7
- data/Gemfile.lock +0 -222
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 67b0404c59865c818eee51a02ce5788f0aef2f5b753a42c9aea792b51e7be236
|
4
|
+
data.tar.gz: a6e7771b5f79635ef39b205eff75079788ebaed1b4fdbac38f241da2092db783
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 104e1314b325bca84a49450ef3f8934783a7c6b686becacd0a30304af35c1ce360fefaede0545abe8167cd6f528140e999536c5f6f11d4c3a194a88eb95ba28a
|
7
|
+
data.tar.gz: 88f0f6c2b7017e5d92b4af70016b24f2d7adb0529a933132862576bb4e8d3f2b651809d4fa69b7c61bd7aa88ad590db74265700ea9b80f754954efeb34d2d037
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [3.5.0](https://github.com/puppetlabs/beaker-pe/tree/3.5.0) (2025-04-15)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/puppetlabs/beaker-pe/compare/3.4.0...3.5.0)
|
6
|
+
|
7
|
+
**Implemented enhancements:**
|
8
|
+
|
9
|
+
- \(PE-40793\) Follow https->>http redirects [\#287](https://github.com/puppetlabs/beaker-pe/pull/287) ([tvpartytonight](https://github.com/tvpartytonight))
|
10
|
+
|
11
|
+
## [3.4.0](https://github.com/puppetlabs/beaker-pe/tree/3.4.0) (2025-03-12)
|
12
|
+
|
13
|
+
[Full Changelog](https://github.com/puppetlabs/beaker-pe/compare/3.3.1...3.4.0)
|
14
|
+
|
15
|
+
**Implemented enhancements:**
|
16
|
+
|
17
|
+
- \(PE-40143\) Add ruby 3.2 support [\#285](https://github.com/puppetlabs/beaker-pe/pull/285) ([tvpartytonight](https://github.com/tvpartytonight))
|
18
|
+
|
3
19
|
## [3.3.1](https://github.com/puppetlabs/beaker-pe/tree/3.3.1) (2024-12-05)
|
4
20
|
|
5
21
|
[Full Changelog](https://github.com/puppetlabs/beaker-pe/compare/3.3.0...3.3.1)
|
data/Gemfile
CHANGED
@@ -1099,7 +1099,12 @@ module Beaker
|
|
1099
1099
|
|
1100
1100
|
onhost_copied_download = File.join(onhost_copy_base, download_file)
|
1101
1101
|
onhost_copied_file = File.join(onhost_copy_base, release_file)
|
1102
|
-
|
1102
|
+
download_uri = URI.parse("#{release_path}/#{download_file}")
|
1103
|
+
if (redirect = Net::HTTP.start(download_uri.host) { |http| http.head(download_uri.path).response['location'] })
|
1104
|
+
fetch_http_file(redirect.chomp("/#{download_file}"), download_file, copy_dir_local)
|
1105
|
+
else
|
1106
|
+
fetch_http_file(release_path, download_file, copy_dir_local)
|
1107
|
+
end
|
1103
1108
|
scp_to host, File.join(copy_dir_local, download_file), onhost_copy_base
|
1104
1109
|
|
1105
1110
|
if variant == 'windows'
|
@@ -17,7 +17,7 @@ module Beaker
|
|
17
17
|
def self.load_pe_version dist_dir, version_file
|
18
18
|
version = nil
|
19
19
|
begin
|
20
|
-
open("#{dist_dir}/#{version_file}") do |file|
|
20
|
+
URI.open("#{dist_dir}/#{version_file}") do |file|
|
21
21
|
while line = file.gets
|
22
22
|
if /(\w.*)/ =~ line then
|
23
23
|
version = $1.strip
|
data/lib/beaker-pe/version.rb
CHANGED
@@ -82,6 +82,25 @@ describe ClassMixedWithDSLInstallUtils do
|
|
82
82
|
subject.logger = logger
|
83
83
|
end
|
84
84
|
|
85
|
+
context '#install_puppet_agent_pe_promoted_repo_on' do
|
86
|
+
|
87
|
+
it 'will read a redirect if necessary' do
|
88
|
+
# Only test the function under test attempts to read the redirect; skip
|
89
|
+
# the rest of function by bailing early after that attempt has been verified
|
90
|
+
# by raising this special exception
|
91
|
+
class SpecialRedirectTestException < StandardError
|
92
|
+
end
|
93
|
+
opts[:pe_promoted_builds_url] = 'https://mycooltesturl.com'
|
94
|
+
allow(Net::HTTP).to receive(:start).with('mycooltesturl.com').and_return('http://mycooltesturlredirect.com/puppet-agent-el-9-x86_64.tar.gz')
|
95
|
+
allow(subject).to receive(:fetch_http_file).with('http://mycooltesturlredirect.com', 'puppet-agent-el-9-x86_64.tar.gz', 'tmp/repo_configs/el').and_raise(SpecialRedirectTestException)
|
96
|
+
allow(subject).to receive(:sanitize_opts).and_return(opts)
|
97
|
+
|
98
|
+
test_host = Beaker::Host.create("test", {platform: 'el-9-x86_64'}, opts)
|
99
|
+
test_host['platform'] = Beaker::Platform.new(test_host['platform'])
|
100
|
+
expect{subject.install_puppet_agent_pe_promoted_repo_on([test_host], opts)}.to raise_error(SpecialRedirectTestException)
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
85
104
|
context '#prep_host_for_upgrade' do
|
86
105
|
|
87
106
|
it 'sets per host options before global options' do
|
@@ -2061,7 +2080,7 @@ describe ClassMixedWithDSLInstallUtils do
|
|
2061
2080
|
|
2062
2081
|
it 'installs agent on agent hosts' do
|
2063
2082
|
agents = [agent, agent]
|
2064
|
-
expect(subject).to receive(:block_on).with(agents, :
|
2083
|
+
expect(subject).to receive(:block_on).with(agents, { run_in_parallel: true }).twice
|
2065
2084
|
subject.install_agents_only_on(agents, opts)
|
2066
2085
|
end
|
2067
2086
|
|
@@ -36,7 +36,7 @@ describe ClassPEClientToolsMixedWithPatterns do
|
|
36
36
|
'pe-client-tools',
|
37
37
|
opts[:pe_client_tools_sha],
|
38
38
|
'/tmp/repo_configs',
|
39
|
-
dev_builds_url: 'http://builds.delivery.puppetlabs.net'
|
39
|
+
{ dev_builds_url: 'http://builds.delivery.puppetlabs.net' }
|
40
40
|
)
|
41
41
|
expect(host).to receive(:install_package).with("pe-client-tools")
|
42
42
|
|
@@ -51,7 +51,7 @@ describe ClassPEClientToolsMixedWithPatterns do
|
|
51
51
|
'pe-client-tools',
|
52
52
|
tag_opts[:pe_client_tools_version],
|
53
53
|
'/tmp/repo_configs',
|
54
|
-
dev_builds_url: 'http://builds.delivery.puppetlabs.net'
|
54
|
+
{ dev_builds_url: 'http://builds.delivery.puppetlabs.net' }
|
55
55
|
)
|
56
56
|
expect(host).to receive(:install_package).with("pe-client-tools")
|
57
57
|
|
@@ -69,7 +69,7 @@ describe ClassPEClientToolsMixedWithPatterns do
|
|
69
69
|
'pe-client-tools',
|
70
70
|
opts[:pe_client_tools_sha],
|
71
71
|
'/tmp/repo_configs',
|
72
|
-
dev_builds_url: 'http://builds.delivery.puppetlabs.net'
|
72
|
+
{ dev_builds_url: 'http://builds.delivery.puppetlabs.net' }
|
73
73
|
)
|
74
74
|
expect(host).to receive(:install_package).with('pe-client-tools')
|
75
75
|
|
@@ -84,7 +84,7 @@ describe ClassPEClientToolsMixedWithPatterns do
|
|
84
84
|
'pe-client-tools',
|
85
85
|
tag_opts[:pe_client_tools_version],
|
86
86
|
'/tmp/repo_configs',
|
87
|
-
dev_builds_url: 'http://builds.delivery.puppetlabs.net'
|
87
|
+
{ dev_builds_url: 'http://builds.delivery.puppetlabs.net' }
|
88
88
|
)
|
89
89
|
expect(host).to receive(:install_package).with('pe-client-tools')
|
90
90
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: beaker-pe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Puppetlabs
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -267,7 +267,6 @@ files:
|
|
267
267
|
- CHANGELOG.md
|
268
268
|
- CODEOWNERS
|
269
269
|
- Gemfile
|
270
|
-
- Gemfile.lock
|
271
270
|
- HISTORY.md
|
272
271
|
- LICENSE
|
273
272
|
- PULL_REQUEST_TEMPLATE.md
|
@@ -308,7 +307,7 @@ homepage: https://github.com/puppetlabs/beaker-pe
|
|
308
307
|
licenses:
|
309
308
|
- Apache2
|
310
309
|
metadata: {}
|
311
|
-
post_install_message:
|
310
|
+
post_install_message:
|
312
311
|
rdoc_options: []
|
313
312
|
require_paths:
|
314
313
|
- lib
|
@@ -323,8 +322,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
323
322
|
- !ruby/object:Gem::Version
|
324
323
|
version: '0'
|
325
324
|
requirements: []
|
326
|
-
rubygems_version: 3.
|
327
|
-
signing_key:
|
325
|
+
rubygems_version: 3.5.22
|
326
|
+
signing_key:
|
328
327
|
specification_version: 4
|
329
328
|
summary: Beaker PE DSL Helpers!
|
330
329
|
test_files: []
|
data/Gemfile.lock
DELETED
@@ -1,222 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
beaker-pe (3.3.0)
|
5
|
-
beaker (>= 4.0, < 7)
|
6
|
-
beaker-abs
|
7
|
-
beaker-answers (~> 1.0)
|
8
|
-
beaker-puppet (>= 1)
|
9
|
-
beaker-vmpooler (~> 1.0)
|
10
|
-
stringify-hash (~> 0.0.0)
|
11
|
-
|
12
|
-
GEM
|
13
|
-
remote: https://rubygems.org/
|
14
|
-
specs:
|
15
|
-
activesupport (7.1.3.2)
|
16
|
-
base64
|
17
|
-
bigdecimal
|
18
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
19
|
-
connection_pool (>= 2.2.5)
|
20
|
-
drb
|
21
|
-
i18n (>= 1.6, < 2)
|
22
|
-
minitest (>= 5.1)
|
23
|
-
mutex_m
|
24
|
-
tzinfo (~> 2.0)
|
25
|
-
ansi (1.5.0)
|
26
|
-
ast (2.4.2)
|
27
|
-
base64 (0.2.0)
|
28
|
-
bcrypt_pbkdf (1.1.0)
|
29
|
-
beaker (4.41.2)
|
30
|
-
beaker-hostgenerator
|
31
|
-
ed25519 (~> 1.0)
|
32
|
-
hocon (~> 1.0)
|
33
|
-
in-parallel (>= 0.1, < 2)
|
34
|
-
inifile (~> 3.0)
|
35
|
-
minitar (~> 0.6)
|
36
|
-
minitest (~> 5.4)
|
37
|
-
net-scp (>= 1.2, < 5.0)
|
38
|
-
net-ssh (>= 5.0)
|
39
|
-
rexml
|
40
|
-
rsync (~> 1.0.9)
|
41
|
-
stringify-hash (~> 0.0)
|
42
|
-
thor (>= 1.0.1, < 2.0)
|
43
|
-
beaker-abs (0.11.0)
|
44
|
-
bcrypt_pbkdf (>= 1.0, < 2.0)
|
45
|
-
beaker (~> 4.0)
|
46
|
-
ed25519 (>= 1.2, < 2.0)
|
47
|
-
vmfloaty (>= 1.0, < 2)
|
48
|
-
beaker-answers (1.0.0)
|
49
|
-
hocon (~> 1.0)
|
50
|
-
require_all (>= 1.3.2, < 3.1.0)
|
51
|
-
stringify-hash (~> 0.0.0)
|
52
|
-
beaker-hostgenerator (2.9.1)
|
53
|
-
deep_merge (~> 1.0)
|
54
|
-
beaker-puppet (2.0.0)
|
55
|
-
beaker (~> 4.1)
|
56
|
-
oga (~> 3.4)
|
57
|
-
beaker-vmpooler (1.4.0)
|
58
|
-
stringify-hash (~> 0.0.0)
|
59
|
-
bigdecimal (3.1.6)
|
60
|
-
coderay (1.1.3)
|
61
|
-
commander (4.6.0)
|
62
|
-
highline (~> 2.0.0)
|
63
|
-
concurrent-ruby (1.2.3)
|
64
|
-
connection_pool (2.4.1)
|
65
|
-
daemons (1.4.1)
|
66
|
-
deep_merge (1.2.2)
|
67
|
-
diff-lcs (1.5.1)
|
68
|
-
docile (1.4.0)
|
69
|
-
domain_name (0.6.20240107)
|
70
|
-
drb (2.2.0)
|
71
|
-
ruby2_keywords
|
72
|
-
ed25519 (1.3.0)
|
73
|
-
eventmachine (1.2.7)
|
74
|
-
fakefs (2.5.0)
|
75
|
-
faraday (1.10.3)
|
76
|
-
faraday-em_http (~> 1.0)
|
77
|
-
faraday-em_synchrony (~> 1.0)
|
78
|
-
faraday-excon (~> 1.1)
|
79
|
-
faraday-httpclient (~> 1.0)
|
80
|
-
faraday-multipart (~> 1.0)
|
81
|
-
faraday-net_http (~> 1.0)
|
82
|
-
faraday-net_http_persistent (~> 1.0)
|
83
|
-
faraday-patron (~> 1.0)
|
84
|
-
faraday-rack (~> 1.0)
|
85
|
-
faraday-retry (~> 1.0)
|
86
|
-
ruby2_keywords (>= 0.0.4)
|
87
|
-
faraday-cookie_jar (0.0.7)
|
88
|
-
faraday (>= 0.8.0)
|
89
|
-
http-cookie (~> 1.0.0)
|
90
|
-
faraday-em_http (1.0.0)
|
91
|
-
faraday-em_synchrony (1.0.0)
|
92
|
-
faraday-excon (1.1.0)
|
93
|
-
faraday-httpclient (1.0.1)
|
94
|
-
faraday-multipart (1.0.4)
|
95
|
-
multipart-post (~> 2)
|
96
|
-
faraday-net_http (1.0.1)
|
97
|
-
faraday-net_http_persistent (1.2.0)
|
98
|
-
faraday-patron (1.0.0)
|
99
|
-
faraday-rack (1.0.0)
|
100
|
-
faraday-retry (1.0.3)
|
101
|
-
faraday_middleware (1.2.0)
|
102
|
-
faraday (~> 1.0)
|
103
|
-
highline (2.0.3)
|
104
|
-
hocon (1.4.0)
|
105
|
-
http-cookie (1.0.5)
|
106
|
-
domain_name (~> 0.5)
|
107
|
-
i18n (1.14.1)
|
108
|
-
concurrent-ruby (~> 1.0)
|
109
|
-
in-parallel (1.0.1)
|
110
|
-
inifile (3.0.0)
|
111
|
-
iniparser (1.0.1)
|
112
|
-
json (2.7.1)
|
113
|
-
kramdown (2.4.0)
|
114
|
-
rexml
|
115
|
-
logutils (0.6.1)
|
116
|
-
markdown (1.2.0)
|
117
|
-
kramdown (>= 1.5.0)
|
118
|
-
props (>= 1.1.2)
|
119
|
-
textutils (>= 0.10.0)
|
120
|
-
method_source (1.0.0)
|
121
|
-
minitar (0.9)
|
122
|
-
minitest (5.22.2)
|
123
|
-
multipart-post (2.4.0)
|
124
|
-
mutex_m (0.2.0)
|
125
|
-
net-ldap (0.19.0)
|
126
|
-
net-scp (4.0.0)
|
127
|
-
net-ssh (>= 2.6.5, < 8.0.0)
|
128
|
-
net-ssh (7.2.1)
|
129
|
-
oga (3.4)
|
130
|
-
ast
|
131
|
-
ruby-ll (~> 2.1)
|
132
|
-
power_assert (2.0.3)
|
133
|
-
props (1.2.0)
|
134
|
-
iniparser (>= 0.1.0)
|
135
|
-
pry (0.14.2)
|
136
|
-
coderay (~> 1.1)
|
137
|
-
method_source (~> 1.0)
|
138
|
-
rack (2.2.8.1)
|
139
|
-
rake (13.1.0)
|
140
|
-
require_all (3.0.0)
|
141
|
-
rexml (3.2.6)
|
142
|
-
rspec (3.13.0)
|
143
|
-
rspec-core (~> 3.13.0)
|
144
|
-
rspec-expectations (~> 3.13.0)
|
145
|
-
rspec-mocks (~> 3.13.0)
|
146
|
-
rspec-core (3.13.0)
|
147
|
-
rspec-support (~> 3.13.0)
|
148
|
-
rspec-expectations (3.13.0)
|
149
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
150
|
-
rspec-support (~> 3.13.0)
|
151
|
-
rspec-its (1.3.0)
|
152
|
-
rspec-core (>= 3.0.0)
|
153
|
-
rspec-expectations (>= 3.0.0)
|
154
|
-
rspec-mocks (3.13.0)
|
155
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
156
|
-
rspec-support (~> 3.13.0)
|
157
|
-
rspec-support (3.13.0)
|
158
|
-
rsync (1.0.9)
|
159
|
-
ruby-ll (2.1.3)
|
160
|
-
ansi
|
161
|
-
ast
|
162
|
-
ruby2_keywords (0.0.5)
|
163
|
-
rubyzip (2.3.2)
|
164
|
-
scooter (4.5.4)
|
165
|
-
beaker
|
166
|
-
faraday
|
167
|
-
faraday-cookie_jar (>= 0.0.7)
|
168
|
-
faraday_middleware (~> 1.2)
|
169
|
-
json
|
170
|
-
net-ldap (~> 0.16)
|
171
|
-
test-unit
|
172
|
-
simplecov (0.22.0)
|
173
|
-
docile (~> 1.1)
|
174
|
-
simplecov-html (~> 0.11)
|
175
|
-
simplecov_json_formatter (~> 0.1)
|
176
|
-
simplecov-html (0.12.3)
|
177
|
-
simplecov_json_formatter (0.1.4)
|
178
|
-
stringify-hash (0.0.2)
|
179
|
-
test-unit (3.6.1)
|
180
|
-
power_assert
|
181
|
-
textutils (1.4.0)
|
182
|
-
activesupport
|
183
|
-
logutils (>= 0.6.1)
|
184
|
-
props (>= 1.1.2)
|
185
|
-
rubyzip (>= 1.0.0)
|
186
|
-
thin (1.8.2)
|
187
|
-
daemons (~> 1.0, >= 1.0.9)
|
188
|
-
eventmachine (~> 1.0, >= 1.0.4)
|
189
|
-
rack (>= 1, < 3)
|
190
|
-
thor (1.3.0)
|
191
|
-
tzinfo (2.0.6)
|
192
|
-
concurrent-ruby (~> 1.0)
|
193
|
-
vmfloaty (1.8.1)
|
194
|
-
commander (>= 4.4.3, < 4.7.0)
|
195
|
-
faraday (~> 1.5, >= 1.5.1)
|
196
|
-
yard (0.9.36)
|
197
|
-
|
198
|
-
PLATFORMS
|
199
|
-
aarch64-linux
|
200
|
-
ruby
|
201
|
-
x86_64-linux
|
202
|
-
|
203
|
-
DEPENDENCIES
|
204
|
-
activesupport (~> 7.0)
|
205
|
-
beaker (~> 4.0)
|
206
|
-
beaker-abs (~> 0.8)
|
207
|
-
beaker-pe!
|
208
|
-
beaker-vmpooler (~> 1.3)
|
209
|
-
deep_merge
|
210
|
-
fakefs (~> 2.4, < 2.6.0)
|
211
|
-
markdown
|
212
|
-
pry (~> 0.10)
|
213
|
-
rake (~> 13.1.0)
|
214
|
-
rspec (~> 3.0)
|
215
|
-
rspec-its
|
216
|
-
scooter (~> 4.3)
|
217
|
-
simplecov (= 0.22.0)
|
218
|
-
thin
|
219
|
-
yard
|
220
|
-
|
221
|
-
BUNDLED WITH
|
222
|
-
2.4.22
|