beaker 4.28.0 → 4.29.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/test.yml +1 -0
- data/CHANGELOG.md +83 -70
- data/beaker.gemspec +1 -0
- data/docs/how_to/ssh_connection_preference.md +4 -1
- data/lib/beaker/dsl/helpers/web_helpers.rb +3 -4
- data/lib/beaker/host/unix/exec.rb +12 -2
- data/lib/beaker/platform.rb +6 -5
- data/lib/beaker/version.rb +1 -1
- data/spec/beaker/dsl/helpers/web_helpers_spec.rb +2 -2
- data/spec/beaker/host/unix/exec_spec.rb +92 -34
- data/spec/beaker/options/subcommand_options_parser_spec.rb +8 -8
- data/spec/beaker/platform_spec.rb +5 -0
- metadata +17 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dbfaa8f41aaa3ee0ef3400002bed63eccc4bbf4a1057b047f85610fbb30fa677
|
|
4
|
+
data.tar.gz: 942d0e998c84ca98160a49da29608010c8ec42d4c1a175946ff5d31a69f0a991
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 78f4703fbd41da566acc7a674f3694c7d756bfae560f5ff8c00dbc240db7725de3ccc40c01e2c412564ea56d0f94eac8573b8d98c5b1a743b52890bc8341ccf0
|
|
7
|
+
data.tar.gz: a605d125585bf3ddc1dab03216b8056c9aadb26d662074bb15e96594ca3868c08552c06b25a767449af3c31d3099f6f00599274eb2c229995711311a1d11e799
|
data/.github/workflows/test.yml
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -20,9 +20,22 @@ The headers used in [Keep a Changelog](http://keepachangelog.com) are:
|
|
|
20
20
|
- Fixed - for any bug fixes.
|
|
21
21
|
- Security - in case of vulnerabilities.
|
|
22
22
|
|
|
23
|
-
# [
|
|
23
|
+
# [4.29.0](https://github.com/voxpupuli/beaker/compare/4.28.1...4.29.0) - 19-05-2021
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
### Added
|
|
26
|
+
|
|
27
|
+
- Ruby 3.0 support
|
|
28
|
+
|
|
29
|
+
# [4.28.1](https://github.com/voxpupuli/beaker/compare/4.28.0...4.28.1) - 03-10-2021
|
|
30
|
+
|
|
31
|
+
### Fixed
|
|
32
|
+
|
|
33
|
+
- Updated the ssh_preference example
|
|
34
|
+
- Fixed various spec tests
|
|
35
|
+
- Updated the `which` command to try `type -P` before falling back to `which`
|
|
36
|
+
for systems that may not have `which` installed
|
|
37
|
+
|
|
38
|
+
# [4.28.0](https://github.com/voxpupuli/beaker/compare/4.27.1...4.28.0) - 12-21-2020
|
|
26
39
|
|
|
27
40
|
### Changed
|
|
28
41
|
|
|
@@ -34,7 +47,7 @@ The headers used in [Keep a Changelog](http://keepachangelog.com) are:
|
|
|
34
47
|
|
|
35
48
|
- Fix License text and SPDX code ([#1681](https://github.com/voxpupuli/beaker/pull/1678))
|
|
36
49
|
|
|
37
|
-
# [4.27.1](https://github.com/
|
|
50
|
+
# [4.27.1](https://github.com/voxpupuli/beaker/compare/4.27.0...4.27.1) - 09-29-2020
|
|
38
51
|
|
|
39
52
|
### Changed
|
|
40
53
|
|
|
@@ -47,7 +60,7 @@ The headers used in [Keep a Changelog](http://keepachangelog.com) are:
|
|
|
47
60
|
- Fixed time check logic during reboot
|
|
48
61
|
- Wrap paths around "" on pswindows
|
|
49
62
|
|
|
50
|
-
# [4.27.0](https://github.com/
|
|
63
|
+
# [4.27.0](https://github.com/voxpupuli/beaker/compare/4.26.0...4.27.0) - 07-24-2020
|
|
51
64
|
|
|
52
65
|
### Changed
|
|
53
66
|
|
|
@@ -57,7 +70,7 @@ The headers used in [Keep a Changelog](http://keepachangelog.com) are:
|
|
|
57
70
|
repo to Vox Pupuli
|
|
58
71
|
|
|
59
72
|
|
|
60
|
-
# [4.26.0](https://github.com/
|
|
73
|
+
# [4.26.0](https://github.com/voxpupuli/beaker/compare/4.25.0...4.26.0)
|
|
61
74
|
|
|
62
75
|
### Changed
|
|
63
76
|
|
|
@@ -67,41 +80,41 @@ The headers used in [Keep a Changelog](http://keepachangelog.com) are:
|
|
|
67
80
|
|
|
68
81
|
- Removed deprecated use of `paranoid` flag with Net::SSH. #1655
|
|
69
82
|
|
|
70
|
-
# [4.25.0](https://github.com/
|
|
83
|
+
# [4.25.0](https://github.com/voxpupuli/beaker/compare/4.24.0...4.25.0)
|
|
71
84
|
|
|
72
85
|
### Added
|
|
73
86
|
|
|
74
|
-
- Execution of Beaker directly through ruby on localhost #1637 ([#1637](https://github.com/
|
|
87
|
+
- Execution of Beaker directly through ruby on localhost #1637 ([#1637](https://github.com/voxpupuli/beaker/pull/1637))
|
|
75
88
|
|
|
76
89
|
### Fixed
|
|
77
90
|
|
|
78
|
-
- Reliability improvements to the `Host#reboot` method ([#1656](https://github.com/
|
|
91
|
+
- Reliability improvements to the `Host#reboot` method ([#1656](https://github.com/voxpupuli/beaker/pull/1656)) ([#1659](https://github.com/voxpupuli/beaker/pull/1659))
|
|
79
92
|
|
|
80
|
-
# [4.24.0](https://github.com/
|
|
93
|
+
# [4.24.0](https://github.com/voxpupuli/beaker/compare/4.23.0...4.24.0) - 2020-06-05
|
|
81
94
|
|
|
82
95
|
### Added
|
|
83
96
|
|
|
84
|
-
- Host method which ([#1651](https://github.com/
|
|
97
|
+
- Host method which ([#1651](https://github.com/voxpupuli/beaker/pull/1651))
|
|
85
98
|
|
|
86
99
|
### Fixed
|
|
87
100
|
|
|
88
|
-
- Fixed implementation for cat and file_exists? host methods for PSWindows ([#1654](https://github.com/
|
|
89
|
-
- Fixed implementation for mkdir_p host method for PSWindows ([#1657](https://github.com/
|
|
101
|
+
- Fixed implementation for cat and file_exists? host methods for PSWindows ([#1654](https://github.com/voxpupuli/beaker/pull/1654))
|
|
102
|
+
- Fixed implementation for mkdir_p host method for PSWindows ([#1657](https://github.com/voxpupuli/beaker/pull/1657))
|
|
90
103
|
|
|
91
|
-
# [4.23.2](https://github.com/
|
|
104
|
+
# [4.23.2](https://github.com/voxpupuli/beaker/compare/4.23.1...4.23.2)
|
|
92
105
|
|
|
93
106
|
### Fixed
|
|
94
107
|
|
|
95
108
|
- Fixed Beaker's behavior when the `strict_host_key_checking` option is
|
|
96
109
|
provided in the SSH config and Net-SSH > 5 is specified. (#1652)
|
|
97
110
|
|
|
98
|
-
# [4.23.1](https://github.com/
|
|
111
|
+
# [4.23.1](https://github.com/voxpupuli/beaker/compare/4.23.0...4.23.1)
|
|
99
112
|
|
|
100
113
|
### Changed/Removed
|
|
101
114
|
|
|
102
115
|
- Reversed the quoting changes on Unix from #1644 in favor of only quoting on Windows. (#1650)
|
|
103
116
|
|
|
104
|
-
# [4.23.0](https://github.com/
|
|
117
|
+
# [4.23.0](https://github.com/voxpupuli/beaker/compare/4.22.1...4.23.0)
|
|
105
118
|
|
|
106
119
|
### Added
|
|
107
120
|
|
|
@@ -118,137 +131,137 @@ The headers used in [Keep a Changelog](http://keepachangelog.com) are:
|
|
|
118
131
|
- Use Base64 UTF-16LE encoding for commands (#1626)
|
|
119
132
|
- Fix `tmpdir` method for Powershell on Windows (#1645)
|
|
120
133
|
|
|
121
|
-
# [4.22.1](https://github.com/
|
|
134
|
+
# [4.22.1](https://github.com/voxpupuli/beaker/compare/4.22.0...4.22.1)
|
|
122
135
|
|
|
123
136
|
### Fixed
|
|
124
137
|
|
|
125
|
-
- Removed single quotes around paths for file operation commands on `Host` https://github.com/
|
|
138
|
+
- Removed single quotes around paths for file operation commands on `Host` https://github.com/voxpupuli/beaker/pull/1642
|
|
126
139
|
|
|
127
|
-
# [4.22.0](https://github.com/
|
|
140
|
+
# [4.22.0](https://github.com/voxpupuli/beaker/compare/4.21.0...4.22.0) - 2020-05-08
|
|
128
141
|
|
|
129
142
|
### Added
|
|
130
143
|
|
|
131
|
-
- Host methods chmod and modified_at. ([#1638](https://github.com/
|
|
144
|
+
- Host methods chmod and modified_at. ([#1638](https://github.com/voxpupuli/beaker/pull/1638))
|
|
132
145
|
|
|
133
146
|
### Removed
|
|
134
147
|
|
|
135
|
-
- Support for EL-5. ([#1639](https://github.com/
|
|
148
|
+
- Support for EL-5. ([#1639](https://github.com/voxpupuli/beaker/pull/1639)) ([#1640](https://github.com/voxpupuli/beaker/pull/1640))
|
|
136
149
|
|
|
137
|
-
# [4.21.0](https://github.com/
|
|
150
|
+
# [4.21.0](https://github.com/voxpupuli/beaker/compare/4.20.0...4.21.0) - 2020-03-31
|
|
138
151
|
|
|
139
152
|
### Added
|
|
140
153
|
|
|
141
|
-
- Empty file `/etc/environment` while preparing ssh environment on Ubuntu 20.04 to keep the current behavior and consider all variables from `~/.ssh/environment`. ([#1635](https://github.com/
|
|
154
|
+
- Empty file `/etc/environment` while preparing ssh environment on Ubuntu 20.04 to keep the current behavior and consider all variables from `~/.ssh/environment`. ([#1635](https://github.com/voxpupuli/beaker/pull/1635))
|
|
142
155
|
|
|
143
|
-
# [4.20.0](https://github.com/
|
|
156
|
+
# [4.20.0](https://github.com/voxpupuli/beaker/compare/4.19.0...4.20.0) - 2020-03-19
|
|
144
157
|
|
|
145
158
|
### Added
|
|
146
159
|
|
|
147
|
-
- Vagrant RSync/SSH settings will now be picked up if set via beaker-vagrant ([#1634](https://github.com/
|
|
160
|
+
- Vagrant RSync/SSH settings will now be picked up if set via beaker-vagrant ([#1634](https://github.com/voxpupuli/beaker/pull/1634) and [beaker-vagrant#28](https://github.com/voxpupuli/beaker-vagrant/pull/28))
|
|
148
161
|
|
|
149
|
-
# [4.19.0](https://github.com/
|
|
162
|
+
# [4.19.0](https://github.com/voxpupuli/beaker/compare/4.18.0...4.19.0) - 2020-03-13
|
|
150
163
|
|
|
151
164
|
### Added
|
|
152
165
|
|
|
153
|
-
- `apt-transport-https` package will now be installed on Debian-based systems as part of the prebuilt process. ([#1631](https://github.com/
|
|
154
|
-
- Ubuntu 19.10 and 20.04 code name handling. ([#1632](https://github.com/
|
|
166
|
+
- `apt-transport-https` package will now be installed on Debian-based systems as part of the prebuilt process. ([#1631](https://github.com/voxpupuli/beaker/pull/1631))
|
|
167
|
+
- Ubuntu 19.10 and 20.04 code name handling. ([#1632](https://github.com/voxpupuli/beaker/pull/1632))
|
|
155
168
|
|
|
156
169
|
### Changed
|
|
157
170
|
|
|
158
|
-
- The `wait_time`, `max_connection_tries`, and `uptime_retries` parameters have been added to `Host::Unix::Exec.reboot`. This allows for more fine-grained control over how the reboot is handled. ([#1625](https://github.com/
|
|
171
|
+
- The `wait_time`, `max_connection_tries`, and `uptime_retries` parameters have been added to `Host::Unix::Exec.reboot`. This allows for more fine-grained control over how the reboot is handled. ([#1625](https://github.com/voxpupuli/beaker/pull/1625))
|
|
159
172
|
|
|
160
173
|
### Fixed
|
|
161
174
|
|
|
162
|
-
- In `hosts.yml`, `packaging_platform` will now default to `platform` if unspecified. This fixed a bug where beaker would fail unless you specified both values in your config, even if both values were identical. ([#1628](https://github.com/
|
|
163
|
-
- `version_is_less` will now correctly handle builds and RCs when used in version numbers. ([#1630](https://github.com/
|
|
175
|
+
- In `hosts.yml`, `packaging_platform` will now default to `platform` if unspecified. This fixed a bug where beaker would fail unless you specified both values in your config, even if both values were identical. ([#1628](https://github.com/voxpupuli/beaker/pull/1628))
|
|
176
|
+
- `version_is_less` will now correctly handle builds and RCs when used in version numbers. ([#1630](https://github.com/voxpupuli/beaker/pull/1630))
|
|
164
177
|
|
|
165
178
|
### Security
|
|
166
179
|
- Update `rake` to `~> 12.0`, which currently resolves to `12.3.3` to remediate [CVE-2020-8130](https://nvd.nist.gov/vuln/detail/CVE-2020-8130)
|
|
167
180
|
|
|
168
|
-
# [4.18.0](https://github.com/
|
|
181
|
+
# [4.18.0](https://github.com/voxpupuli/beaker/compare/4.17.0...4.18.0) - 2020-02-26
|
|
169
182
|
### Changed
|
|
170
183
|
- Thor dependency bumped to >=1.0.1 <2.0
|
|
171
184
|
|
|
172
|
-
# [4.17.0](https://github.com/
|
|
185
|
+
# [4.17.0](https://github.com/voxpupuli/beaker/compare/4.16.0...4.17.0) - 2020-02-20
|
|
173
186
|
|
|
174
187
|
### Added
|
|
175
188
|
|
|
176
|
-
- Windows support in `host_helpers` ([#1622](https://github.com/
|
|
177
|
-
- EL 8 support ([#1623](https://github.com/
|
|
189
|
+
- Windows support in `host_helpers` ([#1622](https://github.com/voxpupuli/beaker/pull/1622))
|
|
190
|
+
- EL 8 support ([#1623](https://github.com/voxpupuli/beaker/pull/1623))
|
|
178
191
|
|
|
179
|
-
# [4.16.0](https://github.com/
|
|
192
|
+
# [4.16.0](https://github.com/voxpupuli/beaker/compare/4.15.0...4.16.0) - 2020-02-05
|
|
180
193
|
|
|
181
194
|
### Added
|
|
182
195
|
|
|
183
|
-
- release section to README ([#1618](https://github.com/
|
|
184
|
-
- false return if `link_exists?` raises an error ([#1613](https://github.com/
|
|
196
|
+
- release section to README ([#1618](https://github.com/voxpupuli/beaker/pull/1618))
|
|
197
|
+
- false return if `link_exists?` raises an error ([#1613](https://github.com/voxpupuli/beaker/pull/1613))
|
|
185
198
|
|
|
186
199
|
### Fixed
|
|
187
200
|
|
|
188
|
-
- `host.reboot` uses `uptime` rather than `ping` to check host status ([#1619](https://github.com/
|
|
201
|
+
- `host.reboot` uses `uptime` rather than `ping` to check host status ([#1619](https://github.com/voxpupuli/beaker/pull/1619))
|
|
189
202
|
|
|
190
|
-
# [4.15.0](https://github.com/
|
|
203
|
+
# [4.15.0](https://github.com/voxpupuli/beaker/compare/4.14.1...4.15.0) - 2020-01-30
|
|
191
204
|
|
|
192
205
|
### Added
|
|
193
206
|
|
|
194
207
|
- macOS 10.15 Catalina support (BKR-1621)
|
|
195
208
|
|
|
196
|
-
# [4.14.1](https://github.com/
|
|
209
|
+
# [4.14.1](https://github.com/voxpupuli/beaker/compare/4.14.0...4.14.1) - 2019-11-18
|
|
197
210
|
|
|
198
211
|
### Fixed
|
|
199
212
|
|
|
200
213
|
- `fips_mode?` detection (#1607)
|
|
201
214
|
|
|
202
|
-
# [4.14.0](https://github.com/
|
|
215
|
+
# [4.14.0](https://github.com/voxpupuli/beaker/compare/4.13.1...4.14.0) - 2019-11-12
|
|
203
216
|
|
|
204
217
|
### Added
|
|
205
218
|
|
|
206
219
|
- Pre-built steps output stacktraces when aborted (QENG-7466)
|
|
207
220
|
|
|
208
|
-
# [4.13.1](https://github.com/
|
|
221
|
+
# [4.13.1](https://github.com/voxpupuli/beaker/compare/4.13.0...4.13.1) - 2019-10-07
|
|
209
222
|
|
|
210
223
|
### Fixed
|
|
211
224
|
|
|
212
225
|
- Use correct platform variant for FIPS repo configs download (BKR-1616)
|
|
213
226
|
|
|
214
|
-
# [4.13.0](https://github.com/
|
|
227
|
+
# [4.13.0](https://github.com/voxpupuli/beaker/compare/4.12.0...4.13.0) - 2019-09-16
|
|
215
228
|
|
|
216
229
|
### Added
|
|
217
230
|
|
|
218
231
|
- Host `enable_remote_rsyslog` method (QENG-7466)
|
|
219
232
|
|
|
220
|
-
# [4.12.0](https://github.com/
|
|
233
|
+
# [4.12.0](https://github.com/voxpupuli/beaker/compare/4.11.1...4.12.0) - 2019-08-14
|
|
221
234
|
|
|
222
235
|
### Added
|
|
223
236
|
|
|
224
237
|
- redhatfips as a recognized platform (PE-27037)
|
|
225
238
|
|
|
226
|
-
# [4.11.1](https://github.com/
|
|
239
|
+
# [4.11.1](https://github.com/voxpupuli/beaker/compare/4.11.0...4.11.1) - 2019-08-13
|
|
227
240
|
|
|
228
241
|
### Changed
|
|
229
242
|
|
|
230
243
|
- `host.down?`'s wait from a fibonacci to a constant wait (BKR-1595)
|
|
231
244
|
|
|
232
|
-
# [4.11.0](https://github.com/
|
|
245
|
+
# [4.11.0](https://github.com/voxpupuli/beaker/compare/4.10.0...4.11.0) - 2019-07-22
|
|
233
246
|
|
|
234
247
|
### Added
|
|
235
248
|
|
|
236
249
|
- FIPS detection host method (BKR-1604)
|
|
237
250
|
- PassTest exception catching for standard reporting
|
|
238
251
|
|
|
239
|
-
# [4.10.0](https://github.com/
|
|
252
|
+
# [4.10.0](https://github.com/voxpupuli/beaker/compare/4.9.0...4.10.0) - 2019-07-01
|
|
240
253
|
|
|
241
254
|
### Added
|
|
242
255
|
|
|
243
256
|
- Down & Up Checking to Host#reboot (BKR-1595)
|
|
244
257
|
|
|
245
|
-
# [4.9.0](https://github.com/
|
|
258
|
+
# [4.9.0](https://github.com/voxpupuli/beaker/compare/4.8.0...4.9.0) - 2019-06-19
|
|
246
259
|
|
|
247
260
|
### Changed
|
|
248
261
|
|
|
249
262
|
- SSH Connection failure backoff shortened (BKR-1599)
|
|
250
263
|
|
|
251
|
-
# [4.8.0](https://github.com/
|
|
264
|
+
# [4.8.0](https://github.com/voxpupuli/beaker/compare/4.7.0...4.8.0) - 2019-04-17
|
|
252
265
|
|
|
253
266
|
### Added
|
|
254
267
|
|
|
@@ -259,7 +272,7 @@ The headers used in [Keep a Changelog](http://keepachangelog.com) are:
|
|
|
259
272
|
|
|
260
273
|
- Remove "repos-pe" prefix for repo filenames
|
|
261
274
|
|
|
262
|
-
# [4.7.0](https://github.com/
|
|
275
|
+
# [4.7.0](https://github.com/voxpupuli/beaker/compare/4.6.0...4.7.0) - 2019-04-17
|
|
263
276
|
|
|
264
277
|
### Added
|
|
265
278
|
|
|
@@ -273,19 +286,19 @@ The headers used in [Keep a Changelog](http://keepachangelog.com) are:
|
|
|
273
286
|
- Change behavior of ruby versioning to accept job-parameter RUBY\_VER
|
|
274
287
|
- Change subcommand pre-suite to install ruby 2.3.1
|
|
275
288
|
|
|
276
|
-
# [4.6.0](https://github.com/
|
|
289
|
+
# [4.6.0](https://github.com/voxpupuli/beaker/compare/4.5.0...4.6.0) - 2019.03.07
|
|
277
290
|
|
|
278
291
|
### Added
|
|
279
292
|
|
|
280
293
|
- Codename for Debian 10 'Buster'
|
|
281
294
|
|
|
282
|
-
# [4.5.0](https://github.com/
|
|
295
|
+
# [4.5.0](https://github.com/voxpupuli/beaker/compare/4.4.0...4.5.0) - 2019.01.23
|
|
283
296
|
|
|
284
297
|
### Changed
|
|
285
298
|
|
|
286
299
|
- Do not mirror profile.d on Debian (BKR-1559)
|
|
287
300
|
|
|
288
|
-
# [4.4.0](https://github.com/
|
|
301
|
+
# [4.4.0](https://github.com/voxpupuli/beaker/compare/4.3.0...4.4.0) - 2019.01.09
|
|
289
302
|
|
|
290
303
|
### Added
|
|
291
304
|
|
|
@@ -297,14 +310,14 @@ The headers used in [Keep a Changelog](http://keepachangelog.com) are:
|
|
|
297
310
|
|
|
298
311
|
- Replace ntpdate with crony on RHEL-8 (BKR-1555)
|
|
299
312
|
|
|
300
|
-
# [4.3.0](https://github.com/
|
|
313
|
+
# [4.3.0](https://github.com/voxpupuli/beaker/compare/4.2.0...4.3.0) - 2018.12.12
|
|
301
314
|
|
|
302
315
|
### Added
|
|
303
316
|
|
|
304
317
|
- Use zypper to install RPM packages on SLES (PA-2336)
|
|
305
318
|
- Add only-fails capability to beaker (BKR-1523)
|
|
306
319
|
|
|
307
|
-
# [4.2.0](https://github.com/
|
|
320
|
+
# [4.2.0](https://github.com/voxpupuli/beaker/compare/4.1.0...4.2.0) - 2018.11.28
|
|
308
321
|
|
|
309
322
|
### Added
|
|
310
323
|
|
|
@@ -321,7 +334,7 @@ The headers used in [Keep a Changelog](http://keepachangelog.com) are:
|
|
|
321
334
|
- Recursively remove unpersisted subcommand options (BKR-1549)
|
|
322
335
|
|
|
323
336
|
|
|
324
|
-
# [4.1.0](https://github.com/
|
|
337
|
+
# [4.1.0](https://github.com/voxpupuli/beaker/compare/4.0.0...4.1.0) - 2018.10.25
|
|
325
338
|
|
|
326
339
|
### Added
|
|
327
340
|
|
|
@@ -332,7 +345,7 @@ The headers used in [Keep a Changelog](http://keepachangelog.com) are:
|
|
|
332
345
|
- Added additional tests for EL-like systems and added 'redhat' support where necessary
|
|
333
346
|
- Test if puppet module is installed in '/' and avoid stripping of path seperator
|
|
334
347
|
|
|
335
|
-
# [4.0.0](https://github.com/
|
|
348
|
+
# [4.0.0](https://github.com/voxpupuli/beaker/compare/3.37.0...4.0.0) - 2018-08-06
|
|
336
349
|
|
|
337
350
|
### Fixed
|
|
338
351
|
|
|
@@ -358,7 +371,7 @@ The headers used in [Keep a Changelog](http://keepachangelog.com) are:
|
|
|
358
371
|
|
|
359
372
|
- `PEDefaults` has been moved to `beaker-pe`
|
|
360
373
|
|
|
361
|
-
# [3.37.0](https://github.com/
|
|
374
|
+
# [3.37.0](https://github.com/voxpupuli/beaker/compare/3.36.0...3.37.0) - 2018-07-11
|
|
362
375
|
|
|
363
376
|
### Fixed
|
|
364
377
|
|
|
@@ -373,7 +386,7 @@ The headers used in [Keep a Changelog](http://keepachangelog.com) are:
|
|
|
373
386
|
- `beaker-pe` is no longer automagically included. See [the upgrade guide](/docs/how_to/upgrade_from_3_to_4.md}) for more info
|
|
374
387
|
- `beaker-puppet` is no longer required as a dependency
|
|
375
388
|
|
|
376
|
-
# [3.36.0](https://github.com/
|
|
389
|
+
# [3.36.0](https://github.com/voxpupuli/beaker/compare/3.35.0...3.36.0) - 2018-06-18
|
|
377
390
|
|
|
378
391
|
### Fixed
|
|
379
392
|
|
|
@@ -387,7 +400,7 @@ The headers used in [Keep a Changelog](http://keepachangelog.com) are:
|
|
|
387
400
|
- Glossary for project jargon in [`docs/concepts/glossary.md`](docs/concepts/glossary.md)
|
|
388
401
|
- Use AIX 6.1 packages everywhere for puppet6
|
|
389
402
|
|
|
390
|
-
# [3.35.0](https://github.com/
|
|
403
|
+
# [3.35.0](https://github.com/voxpupuli/beaker/compare/3.34.0...3.35.0) - 2018-05-16
|
|
391
404
|
|
|
392
405
|
### Fixed
|
|
393
406
|
|
|
@@ -398,7 +411,7 @@ The headers used in [Keep a Changelog](http://keepachangelog.com) are:
|
|
|
398
411
|
|
|
399
412
|
- Added optional ability to use ERB in nodeset YAML files
|
|
400
413
|
|
|
401
|
-
# [3.34.0](https://github.com/
|
|
414
|
+
# [3.34.0](https://github.com/voxpupuli/beaker/compare/3.33.0...3.34.0) - 2018-03-26
|
|
402
415
|
|
|
403
416
|
### Fixed
|
|
404
417
|
|
|
@@ -408,13 +421,13 @@ The headers used in [Keep a Changelog](http://keepachangelog.com) are:
|
|
|
408
421
|
|
|
409
422
|
- Codename for Ubuntu 18.04 'Bionic'
|
|
410
423
|
|
|
411
|
-
# [3.33.0](https://github.com/
|
|
424
|
+
# [3.33.0](https://github.com/voxpupuli/beaker/compare/3.32.0...3.33.0) - 2018-03-07
|
|
412
425
|
|
|
413
426
|
### Changed
|
|
414
427
|
|
|
415
428
|
- Use relative paths for beaker exec
|
|
416
429
|
|
|
417
|
-
# [3.32.0](https://github.com/
|
|
430
|
+
# [3.32.0](https://github.com/voxpupuli/beaker/compare/3.31.0...3.32.0) - 2018-02-22
|
|
418
431
|
|
|
419
432
|
### Changed
|
|
420
433
|
|
|
@@ -426,7 +439,7 @@ The headers used in [Keep a Changelog](http://keepachangelog.com) are:
|
|
|
426
439
|
|
|
427
440
|
- Added missing beaker options for subcommand passthorugh
|
|
428
441
|
|
|
429
|
-
# [3.31.0](https://github.com/
|
|
442
|
+
# [3.31.0](https://github.com/voxpupuli/beaker/compare/3.30.0...3.31.0) - 2018-01-22
|
|
430
443
|
|
|
431
444
|
### Changed
|
|
432
445
|
|
|
@@ -436,7 +449,7 @@ The headers used in [Keep a Changelog](http://keepachangelog.com) are:
|
|
|
436
449
|
|
|
437
450
|
- Add macOS 10.13 support
|
|
438
451
|
|
|
439
|
-
# [3.30.0](https://github.com/
|
|
452
|
+
# [3.30.0](https://github.com/voxpupuli/beaker/compare/3.29.0...3.30.0) - 2018-01-10
|
|
440
453
|
|
|
441
454
|
### Changed
|
|
442
455
|
|
|
@@ -450,30 +463,30 @@ The headers used in [Keep a Changelog](http://keepachangelog.com) are:
|
|
|
450
463
|
|
|
451
464
|
- Load project options from .beaker.yml
|
|
452
465
|
|
|
453
|
-
# [3.29.0](https://github.com/
|
|
466
|
+
# [3.29.0](https://github.com/voxpupuli/beaker/compare/3.28.0...3.29.0) - 2017-11-16
|
|
454
467
|
|
|
455
468
|
### Added
|
|
456
469
|
|
|
457
470
|
- Adding default to read fog credentials
|
|
458
471
|
|
|
459
|
-
# [3.28.0](https://github.com/
|
|
472
|
+
# [3.28.0](https://github.com/voxpupuli/beaker/compare/3.27.0...3.28.0) - 2017-11-01
|
|
460
473
|
|
|
461
474
|
### Fixed
|
|
462
475
|
|
|
463
476
|
- corruption of `opts[:ignore]` when using `rsync`
|
|
464
477
|
|
|
465
|
-
# [3.27.0](https://github.com/
|
|
478
|
+
# [3.27.0](https://github.com/voxpupuli/beaker/compare/3.26.0...3.27.0) - 2017-10-19
|
|
466
479
|
|
|
467
480
|
### Added
|
|
468
481
|
|
|
469
482
|
- support amazon as a platform
|
|
470
483
|
- add codenames for MacOS 10.13 and Ubuntu Artful
|
|
471
484
|
|
|
472
|
-
# [3.26.0](https://github.com/
|
|
485
|
+
# [3.26.0](https://github.com/voxpupuli/beaker/compare/3.25.0...3.26.0) - 2017-10-05
|
|
473
486
|
|
|
474
487
|
### Added
|
|
475
488
|
|
|
476
489
|
- concept of `manual_test` and `manual_step`
|
|
477
490
|
|
|
478
|
-
# [3.25.0](https://github.com/
|
|
491
|
+
# [3.25.0](https://github.com/voxpupuli/beaker/compare/3.24.0...3.25.0) - 2017-09-26
|
|
479
492
|
|
data/beaker.gemspec
CHANGED
|
@@ -42,6 +42,7 @@ Gem::Specification.new do |s|
|
|
|
42
42
|
s.add_runtime_dependency 'pry-byebug', '~> 3.9'
|
|
43
43
|
# pry-byebug can have issues with native readline libs so add rb-readline
|
|
44
44
|
s.add_runtime_dependency 'rb-readline', '~> 0.5.3'
|
|
45
|
+
s.add_runtime_dependency 'rexml'
|
|
45
46
|
|
|
46
47
|
s.add_runtime_dependency 'hocon', '~> 1.0'
|
|
47
48
|
s.add_runtime_dependency 'net-ssh', '>= 5.0'
|
|
@@ -107,12 +107,11 @@ module Beaker
|
|
|
107
107
|
logger.notify " and saving to #{dst}"
|
|
108
108
|
logger.notify " using command: #{wget_command}"
|
|
109
109
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
result.each_line do |line|
|
|
110
|
+
stdout_and_stderr_str, status = Open3.capture2e(wget_command)
|
|
111
|
+
stdout_and_stderr_str.each_line do |line|
|
|
113
112
|
logger.debug(line)
|
|
114
113
|
end
|
|
115
|
-
|
|
114
|
+
unless status.success?
|
|
116
115
|
raise "Failed to fetch_remote_dir '#{url}' (exit code #{$?})"
|
|
117
116
|
end
|
|
118
117
|
dst
|
|
@@ -456,9 +456,19 @@ module Unix::Exec
|
|
|
456
456
|
#@example
|
|
457
457
|
# host.which('ruby')
|
|
458
458
|
def which(command)
|
|
459
|
-
which_command
|
|
459
|
+
unless @which_command
|
|
460
|
+
if execute('type -P true', :accept_all_exit_codes => true).empty?
|
|
461
|
+
if execute('which true', :accept_all_exit_codes => true).empty?
|
|
462
|
+
raise ArgumentError, "Could not find suitable 'which' command"
|
|
463
|
+
else
|
|
464
|
+
@which_command = 'which'
|
|
465
|
+
end
|
|
466
|
+
else
|
|
467
|
+
@which_command = 'type -P'
|
|
468
|
+
end
|
|
469
|
+
end
|
|
460
470
|
|
|
461
|
-
result = execute(which_command, :accept_all_exit_codes => true)
|
|
471
|
+
result = execute("#{@which_command} #{command}", :accept_all_exit_codes => true)
|
|
462
472
|
return '' if result.empty?
|
|
463
473
|
|
|
464
474
|
result
|
data/lib/beaker/platform.rb
CHANGED
|
@@ -6,11 +6,12 @@ module Beaker
|
|
|
6
6
|
PLATFORMS = /^(alpine|huaweios|cisco_nexus|cisco_ios_xr|(free|open)bsd|osx|centos|fedora|debian|oracle|redhat|redhatfips|scientific|sles|ubuntu|windows|solaris|aix|archlinux|el|eos|cumulus|f5|netscaler)\-.+\-.+$/
|
|
7
7
|
# Platform version numbers vs. codenames conversion hash
|
|
8
8
|
PLATFORM_VERSION_CODES =
|
|
9
|
-
{ :debian => { "
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
9
|
+
{ :debian => { "bullseye" => "11",
|
|
10
|
+
"buster" => "10",
|
|
11
|
+
"stretch" => "9",
|
|
12
|
+
"jessie" => "8",
|
|
13
|
+
"wheezy" => "7",
|
|
14
|
+
"squeeze" => "6",
|
|
14
15
|
},
|
|
15
16
|
:ubuntu => { "focal" => "2004",
|
|
16
17
|
"eoan" => "1910",
|
data/lib/beaker/version.rb
CHANGED
|
@@ -89,6 +89,7 @@ describe ClassMixedWithDSLHelpers do
|
|
|
89
89
|
describe "#fetch_http_dir" do
|
|
90
90
|
let( :logger) { double("Beaker::Logger", :notify => nil , :debug => nil ) }
|
|
91
91
|
let( :result) { double(:each_line => []) }
|
|
92
|
+
let( :status) { double('Process::Status', success?: true) }
|
|
92
93
|
|
|
93
94
|
before do
|
|
94
95
|
fetch_allows
|
|
@@ -97,8 +98,7 @@ describe ClassMixedWithDSLHelpers do
|
|
|
97
98
|
describe "given valid arguments" do
|
|
98
99
|
|
|
99
100
|
it "returns basename of first argument concatenated to second." do
|
|
100
|
-
expect(
|
|
101
|
-
expect($?).to receive(:to_i).and_return(0)
|
|
101
|
+
expect(Open3).to receive(:capture2e).with(/^wget.*/).ordered { result }.and_return(['', status])
|
|
102
102
|
result = subject.fetch_http_dir "#{url}/beep", destdir
|
|
103
103
|
expect(result).to eq("#{destdir}/beep")
|
|
104
104
|
end
|
|
@@ -169,52 +169,54 @@ module Beaker
|
|
|
169
169
|
end
|
|
170
170
|
|
|
171
171
|
describe '#reboot' do
|
|
172
|
+
year = Time.now.strftime('%Y')
|
|
173
|
+
|
|
172
174
|
check_cmd_output = {
|
|
173
175
|
:centos6 => {
|
|
174
176
|
:who => {
|
|
175
|
-
:initial =>
|
|
176
|
-
:success =>
|
|
177
|
+
:initial => " system boot #{year}-05-13 03:51",
|
|
178
|
+
:success => " system boot #{year}-05-13 03:52",
|
|
177
179
|
},
|
|
178
180
|
:last => {
|
|
179
181
|
:initial => <<~LAST_F,
|
|
180
|
-
reboot system boot 2.6.32-754.29.1. Tue May 5 17:34:52
|
|
181
|
-
reboot system boot 2.6.32-754.29.1. Mon May 4 18:45:43
|
|
182
|
+
reboot system boot 2.6.32-754.29.1. Tue May 5 17:34:52 #{year} - Tue May 5 17:52:48 #{year} (00:17)
|
|
183
|
+
reboot system boot 2.6.32-754.29.1. Mon May 4 18:45:43 #{year} - Mon May 5 05:35:44 #{year} (4+01:50)
|
|
182
184
|
LAST_F
|
|
183
185
|
:success => <<~LAST_F,
|
|
184
|
-
reboot system boot 2.6.32-754.29.1. Tue May 5 17:52:48
|
|
185
|
-
reboot system boot 2.6.32-754.29.1. Mon May 4 18:45:43
|
|
186
|
+
reboot system boot 2.6.32-754.29.1. Tue May 5 17:52:48 #{year} - Tue May 5 17:52:49 #{year} (00:17)
|
|
187
|
+
reboot system boot 2.6.32-754.29.1. Mon May 4 18:45:43 #{year} - Mon May 5 05:35:44 #{year} (4+01:50)
|
|
186
188
|
LAST_F
|
|
187
189
|
},
|
|
188
190
|
},
|
|
189
191
|
:centos7 => {
|
|
190
192
|
:who => {
|
|
191
|
-
:initial =>
|
|
192
|
-
:success =>
|
|
193
|
+
:initial => " system boot #{year}-05-13 03:51",
|
|
194
|
+
:success => " system boot #{year}-05-13 03:52",
|
|
193
195
|
},
|
|
194
196
|
:last => {
|
|
195
197
|
:initial => <<~LAST_F,
|
|
196
|
-
reboot system boot 3.10.0-1127.el7. Tue May 5 17:34:52
|
|
197
|
-
reboot system boot 3.10.0-1127.el7. Mon May 4 18:45:43
|
|
198
|
+
reboot system boot 3.10.0-1127.el7. Tue May 5 17:34:52 #{year} - Tue May 5 17:52:48 #{year} (00:17)
|
|
199
|
+
reboot system boot 3.10.0-1127.el7. Mon May 4 18:45:43 #{year} - Mon May 5 05:35:44 #{year} (4+01:50)
|
|
198
200
|
LAST_F
|
|
199
201
|
:success => <<~LAST_F,
|
|
200
|
-
reboot system boot 3.10.0-1127.el7. Tue May 5 17:52:48
|
|
201
|
-
reboot system boot 3.10.0-1127.el7. Mon May 4 18:45:43
|
|
202
|
+
reboot system boot 3.10.0-1127.el7. Tue May 5 17:52:48 #{year} - Tue May 5 17:52:49 #{year} (00:17)
|
|
203
|
+
reboot system boot 3.10.0-1127.el7. Mon May 4 18:45:43 #{year} - Mon May 5 05:35:44 #{year} (4+01:50)
|
|
202
204
|
LAST_F
|
|
203
205
|
},
|
|
204
206
|
},
|
|
205
207
|
:centos8 => {
|
|
206
208
|
:who => {
|
|
207
|
-
:initial =>
|
|
208
|
-
:success =>
|
|
209
|
+
:initial => " system boot #{year}-05-13 03:51",
|
|
210
|
+
:success => " system boot #{year}-05-13 03:52",
|
|
209
211
|
},
|
|
210
212
|
:last => {
|
|
211
213
|
:initial => <<~LAST_F,
|
|
212
|
-
reboot system boot 4.18.0-147.8.1.e Tue May 5 17:34:52
|
|
213
|
-
reboot system boot 4.18.0-147.8.1.e Mon May 4 17:41:27
|
|
214
|
+
reboot system boot 4.18.0-147.8.1.e Tue May 5 17:34:52 #{year} still running
|
|
215
|
+
reboot system boot 4.18.0-147.8.1.e Mon May 4 17:41:27 #{year} - Tue May 5 17:00:00 #{year} (5+00:11)
|
|
214
216
|
LAST_F
|
|
215
217
|
:success => <<~LAST_F,
|
|
216
|
-
reboot system boot 4.18.0-147.8.1.e Tue May 5 17:34:53
|
|
217
|
-
reboot system boot 4.18.0-147.8.1.e Mon May 4 17:41:27
|
|
218
|
+
reboot system boot 4.18.0-147.8.1.e Tue May 5 17:34:53 #{year} still running
|
|
219
|
+
reboot system boot 4.18.0-147.8.1.e Mon May 4 17:41:27 #{year} - Tue May 5 17:00:00 #{year} (5+00:11)
|
|
218
220
|
LAST_F
|
|
219
221
|
},
|
|
220
222
|
},
|
|
@@ -258,8 +260,8 @@ module Beaker
|
|
|
258
260
|
expect(instance).to receive(:sleep).with(sleep_time)
|
|
259
261
|
# bypass shutdown command itself
|
|
260
262
|
expect(instance).to receive( :exec ).with(:shutdown_command_stub, anything).and_return(response)
|
|
261
|
-
# allow the second boot_time and the hash arguments in exec
|
|
262
263
|
expect(instance).to receive( :exec ).with(:boot_time_command_stub, anything).and_return(boot_time_initial_response).once
|
|
264
|
+
# allow the second boot_time and the hash arguments in exec
|
|
263
265
|
expect(instance).to receive( :exec ).with(:boot_time_command_stub, anything).and_return(boot_time_success_response).once
|
|
264
266
|
|
|
265
267
|
expect(instance.reboot).to be(nil)
|
|
@@ -384,30 +386,86 @@ module Beaker
|
|
|
384
386
|
end
|
|
385
387
|
|
|
386
388
|
describe '#which' do
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
389
|
+
context 'when type -P works' do
|
|
390
|
+
before do
|
|
391
|
+
expect(instance).to receive(:execute)
|
|
392
|
+
.with('type -P true', :accept_all_exit_codes => true).and_return('/bin/true').once
|
|
393
|
+
|
|
394
|
+
allow(instance).to receive(:execute)
|
|
395
|
+
.with(where_command, :accept_all_exit_codes => true).and_return(result)
|
|
396
|
+
end
|
|
397
|
+
|
|
398
|
+
context 'when only the environment variable PATH is used' do
|
|
399
|
+
let(:where_command) { "type -P ruby" }
|
|
400
|
+
let(:result) { "/usr/bin/ruby.exe" }
|
|
401
|
+
|
|
402
|
+
it 'returns the correct path' do
|
|
403
|
+
response = instance.which('ruby')
|
|
404
|
+
|
|
405
|
+
expect(response).to eq(result)
|
|
406
|
+
end
|
|
407
|
+
end
|
|
408
|
+
|
|
409
|
+
context 'when command is not found' do
|
|
410
|
+
let(:where_command) { "type -P unknown" }
|
|
411
|
+
let(:result) { '' }
|
|
412
|
+
|
|
413
|
+
it 'return empty string if command is not found' do
|
|
414
|
+
response = instance.which('unknown')
|
|
415
|
+
|
|
416
|
+
expect(response).to eq(result)
|
|
417
|
+
end
|
|
418
|
+
end
|
|
390
419
|
end
|
|
391
420
|
|
|
392
|
-
context 'when
|
|
393
|
-
|
|
394
|
-
|
|
421
|
+
context 'when which works' do
|
|
422
|
+
before do
|
|
423
|
+
expect(instance).to receive(:execute)
|
|
424
|
+
.with('type -P true', :accept_all_exit_codes => true).and_return('').once
|
|
395
425
|
|
|
396
|
-
|
|
397
|
-
|
|
426
|
+
expect(instance).to receive(:execute)
|
|
427
|
+
.with('which true', :accept_all_exit_codes => true).and_return('/bin/true').once
|
|
398
428
|
|
|
399
|
-
|
|
429
|
+
allow(instance).to receive(:execute)
|
|
430
|
+
.with(where_command, :accept_all_exit_codes => true).and_return(result)
|
|
431
|
+
end
|
|
432
|
+
|
|
433
|
+
context 'when only the environment variable PATH is used' do
|
|
434
|
+
let(:where_command) { "which ruby" }
|
|
435
|
+
let(:result) { "/usr/bin/ruby.exe" }
|
|
436
|
+
|
|
437
|
+
it 'returns the correct path' do
|
|
438
|
+
response = instance.which('ruby')
|
|
439
|
+
|
|
440
|
+
expect(response).to eq(result)
|
|
441
|
+
end
|
|
442
|
+
end
|
|
443
|
+
|
|
444
|
+
context 'when command is not found' do
|
|
445
|
+
let(:where_command) { "which unknown" }
|
|
446
|
+
let(:result) { '' }
|
|
447
|
+
|
|
448
|
+
it 'return empty string if command is not found' do
|
|
449
|
+
response = instance.which('unknown')
|
|
450
|
+
|
|
451
|
+
expect(response).to eq(result)
|
|
452
|
+
end
|
|
400
453
|
end
|
|
401
454
|
end
|
|
402
455
|
|
|
403
|
-
context 'when
|
|
404
|
-
|
|
405
|
-
|
|
456
|
+
context 'when neither works' do
|
|
457
|
+
before do
|
|
458
|
+
expect(instance).to receive(:execute)
|
|
459
|
+
.with('type -P true', :accept_all_exit_codes => true).and_return('').once
|
|
406
460
|
|
|
407
|
-
|
|
408
|
-
|
|
461
|
+
expect(instance).to receive(:execute)
|
|
462
|
+
.with('which true', :accept_all_exit_codes => true).and_return('').once
|
|
463
|
+
end
|
|
409
464
|
|
|
410
|
-
|
|
465
|
+
context 'when only the environment variable PATH is used' do
|
|
466
|
+
it 'fails correctly' do
|
|
467
|
+
expect{instance.which('ruby')}.to raise_error(/suitable/)
|
|
468
|
+
end
|
|
411
469
|
end
|
|
412
470
|
end
|
|
413
471
|
end
|
|
@@ -4,8 +4,9 @@ module Beaker
|
|
|
4
4
|
module Options
|
|
5
5
|
describe '#parse_subcommand_options' do
|
|
6
6
|
let(:home_options_file_path) {ENV['HOME']+'/.beaker/subcommand_options.yaml'}
|
|
7
|
-
let(
|
|
8
|
-
let( :
|
|
7
|
+
let(:parser_mod) { Beaker::Options::SubcommandOptionsParser }
|
|
8
|
+
let( :parser ) {parser_mod.parse_subcommand_options(argv, options_file)}
|
|
9
|
+
let( :file_parser ){parser_mod.parse_options_file({})}
|
|
9
10
|
let( :argv ) {[]}
|
|
10
11
|
let( :options_file ) {""}
|
|
11
12
|
|
|
@@ -26,14 +27,14 @@ module Beaker
|
|
|
26
27
|
let( :argv ) {['provision']}
|
|
27
28
|
let(:options_file) {Beaker::Subcommands::SubcommandUtil::SUBCOMMAND_OPTIONS}
|
|
28
29
|
it 'calls parse_options_file with subcommand options file when home_dir is false' do
|
|
29
|
-
allow(
|
|
30
|
-
allow(
|
|
30
|
+
allow(parser_mod).to receive(:execute_subcommand?).with('provision').and_return true
|
|
31
|
+
allow(parser_mod).to receive(:parse_options_file).with(Beaker::Subcommands::SubcommandUtil::SUBCOMMAND_OPTIONS)
|
|
31
32
|
end
|
|
32
33
|
|
|
33
34
|
let( :options_file ) {home_options_file_path}
|
|
34
35
|
it 'calls parse_options_file with home directory options file when home_dir is true' do
|
|
35
|
-
allow(
|
|
36
|
-
allow(
|
|
36
|
+
allow(parser_mod).to receive(:execute_subcommand?).with('provision').and_return true
|
|
37
|
+
allow(parser_mod).to receive(:parse_options_file).with(home_options_file_path)
|
|
37
38
|
end
|
|
38
39
|
|
|
39
40
|
it 'checks for file existence and loads the YAML file' do
|
|
@@ -49,8 +50,7 @@ module Beaker
|
|
|
49
50
|
expect(parser).to be_kind_of(OptionsHash)
|
|
50
51
|
expect(parser).to be_empty
|
|
51
52
|
end
|
|
52
|
-
|
|
53
53
|
end
|
|
54
54
|
end
|
|
55
55
|
end
|
|
56
|
-
end
|
|
56
|
+
end
|
|
@@ -67,6 +67,11 @@ module Beaker
|
|
|
67
67
|
|
|
68
68
|
context 'with_version_codename' do
|
|
69
69
|
|
|
70
|
+
it "can convert debian-11-xxx to debian-bullseye-xxx" do
|
|
71
|
+
@name = 'debian-11-xxx'
|
|
72
|
+
expect( platform.with_version_codename ).to be === 'debian-bullseye-xxx'
|
|
73
|
+
end
|
|
74
|
+
|
|
70
75
|
it "can convert debian-7-xxx to debian-wheezy-xxx" do
|
|
71
76
|
@name = 'debian-7-xxx'
|
|
72
77
|
expect( platform.with_version_codename ).to be === 'debian-wheezy-xxx'
|
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.
|
|
4
|
+
version: 4.29.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Puppet
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2021-05-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rspec
|
|
@@ -192,6 +192,20 @@ dependencies:
|
|
|
192
192
|
- - "~>"
|
|
193
193
|
- !ruby/object:Gem::Version
|
|
194
194
|
version: 0.5.3
|
|
195
|
+
- !ruby/object:Gem::Dependency
|
|
196
|
+
name: rexml
|
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
|
198
|
+
requirements:
|
|
199
|
+
- - ">="
|
|
200
|
+
- !ruby/object:Gem::Version
|
|
201
|
+
version: '0'
|
|
202
|
+
type: :runtime
|
|
203
|
+
prerelease: false
|
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
205
|
+
requirements:
|
|
206
|
+
- - ">="
|
|
207
|
+
- !ruby/object:Gem::Version
|
|
208
|
+
version: '0'
|
|
195
209
|
- !ruby/object:Gem::Dependency
|
|
196
210
|
name: hocon
|
|
197
211
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -703,7 +717,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
703
717
|
- !ruby/object:Gem::Version
|
|
704
718
|
version: '0'
|
|
705
719
|
requirements: []
|
|
706
|
-
rubygems_version: 3.1.
|
|
720
|
+
rubygems_version: 3.1.6
|
|
707
721
|
signing_key:
|
|
708
722
|
specification_version: 4
|
|
709
723
|
summary: Let's test Puppet!
|