beaker 5.3.0 → 5.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +81 -22
- data/acceptance/lib/helpers/test_helper.rb +2 -2
- data/lib/beaker/options/command_line_parser.rb +1 -1
- data/lib/beaker/platform.rb +4 -1
- data/lib/beaker/test_case.rb +1 -1
- data/lib/beaker/version.rb +1 -1
- data/lib/beaker.rb +1 -1
- data/spec/beaker/dsl/assertions_spec.rb +1 -1
- data/spec/beaker/dsl/structure_spec.rb +5 -5
- data/spec/beaker/host/mac/group_spec.rb +1 -1
- data/spec/beaker/host/mac/user_spec.rb +1 -1
- data/spec/beaker/platform_spec.rb +15 -0
- 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: bfd2ad07fea03a806838c759f62a7d8012f47da31b9e408d8caf5eae018a7353
|
4
|
+
data.tar.gz: ef99fa2273d9ed94a4fa5ccb9f6b43157e270e2cd72d685ce08016a14b8ba5b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ef30fb6d9538ec1d4cc2644e0a4231a8788e93f36a657205ec5f11b030462fa1bf429a6dead72db0a98118928f51dd610c675489b8a7f0a0955ed2aa7c645f6
|
7
|
+
data.tar.gz: 443b0624611e79c3d3a4bb3f10148bee8b2a9a96d0a01364f2b62399a288bee5f05364bdfb33b31a9064b5bcd893bf918867f4063817c63487cfbb58bf672250
|
data/CHANGELOG.md
CHANGED
@@ -1,75 +1,134 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
-
## [5.
|
3
|
+
## [5.4.0](https://github.com/voxpupuli/beaker/tree/5.4.0) (2023-09-12)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/voxpupuli/beaker/compare/5.3.0...5.4.0)
|
4
6
|
|
5
7
|
**Implemented enhancements:**
|
6
8
|
|
7
|
-
- Add
|
9
|
+
- \(RE-15540\) Add Debian 12\/13\/14 support [\#1822](https://github.com/voxpupuli/beaker/pull/1822) ([yachub](https://github.com/yachub))
|
8
10
|
|
9
|
-
|
11
|
+
## [5.3.1](https://github.com/voxpupuli/beaker/tree/5.3.1) (2023-07-26)
|
12
|
+
|
13
|
+
**Fixed bugs:**
|
14
|
+
|
15
|
+
- Fix Minitest capitalization [\#1819](https://github.com/voxpupuli/beaker/pull/1819) ([mhashizume](https://github.com/mhashizume))
|
16
|
+
|
17
|
+
[Full Changelog](https://github.com/voxpupuli/beaker/compare/5.3.0...5.3.1)
|
18
|
+
|
19
|
+
## [5.3.0](https://github.com/voxpupuli/beaker/tree/5.3.0) (2023-06-06)
|
20
|
+
|
21
|
+
[Full Changelog](https://github.com/voxpupuli/beaker/compare/5.2.0...5.3.0)
|
22
|
+
|
23
|
+
**Implemented enhancements:**
|
24
|
+
|
25
|
+
- Add bcrypt\_pbkdf to fix ed25519 ssh keys support [\#1810](https://github.com/voxpupuli/beaker/pull/1810) ([jay7x](https://github.com/jay7x))
|
26
|
+
|
27
|
+
**Merged pull requests:**
|
10
28
|
|
11
|
-
- Build gems with verbosity and strictness [\#1811](https://github.com/voxpupuli/beaker/pull/1811) ([bastelfreak](https://github.com/bastelfreak))
|
12
29
|
- rubocop: autofix [\#1816](https://github.com/voxpupuli/beaker/pull/1816) ([bastelfreak](https://github.com/bastelfreak))
|
13
30
|
- GCG: Add missing faraday dependency [\#1815](https://github.com/voxpupuli/beaker/pull/1815) ([bastelfreak](https://github.com/bastelfreak))
|
31
|
+
- Build gems with verbosity and strictness [\#1811](https://github.com/voxpupuli/beaker/pull/1811) ([bastelfreak](https://github.com/bastelfreak))
|
14
32
|
|
15
33
|
## [5.2.0](https://github.com/voxpupuli/beaker/tree/5.2.0) (2023-04-28)
|
16
34
|
|
35
|
+
[Full Changelog](https://github.com/voxpupuli/beaker/compare/5.1.0...5.2.0)
|
36
|
+
|
17
37
|
**Implemented enhancements:**
|
18
38
|
|
19
|
-
- Enhance documentation about roles [\#1800](https://github.com/voxpupuli/beaker/pull/1800) ([rwaffen](https://github.com/rwaffen))
|
20
39
|
- Declare API interface on Beaker::Host [\#1806](https://github.com/voxpupuli/beaker/pull/1806) ([ekohl](https://github.com/ekohl))
|
40
|
+
- Switch to voxpupuli-rubocop [\#1804](https://github.com/voxpupuli/beaker/pull/1804) ([bastelfreak](https://github.com/bastelfreak))
|
21
41
|
- Support an extension to tmpfile [\#1735](https://github.com/voxpupuli/beaker/pull/1735) ([ekohl](https://github.com/ekohl))
|
22
42
|
|
23
43
|
**Fixed bugs:**
|
24
44
|
|
25
|
-
- Use systemctl to
|
45
|
+
- Use systemctl to restart SSH on EL9 [\#1808](https://github.com/voxpupuli/beaker/pull/1808) ([ekohl](https://github.com/ekohl))
|
26
46
|
|
27
|
-
**
|
47
|
+
**Closed issues:**
|
48
|
+
|
49
|
+
- Failed to exec 'vagrant up' \(rbenv, ruby 2.7.6, bundler 2.3.19, virtualbox\) [\#1752](https://github.com/voxpupuli/beaker/issues/1752)
|
50
|
+
- EL 9 error - /sbin/service: No such file or directory [\#1751](https://github.com/voxpupuli/beaker/issues/1751)
|
51
|
+
|
52
|
+
**Merged pull requests:**
|
28
53
|
|
29
|
-
- Drop legacy yard tasks [\#1805](https://github.com/voxpupuli/beaker/pull/1805) ([bastelfreak](https://github.com/bastelfreak))
|
30
|
-
- Switch to voxpupuli-rubocop [\#1804](https://github.com/voxpupuli/beaker/pull/1804) ([bastelfreak](https://github.com/bastelfreak))
|
31
54
|
- Disable RSpec/IndexedLet [\#1807](https://github.com/voxpupuli/beaker/pull/1807) ([ekohl](https://github.com/ekohl))
|
55
|
+
- Drop legacy yard tasks [\#1805](https://github.com/voxpupuli/beaker/pull/1805) ([bastelfreak](https://github.com/bastelfreak))
|
56
|
+
- Enhance documentation about roles [\#1800](https://github.com/voxpupuli/beaker/pull/1800) ([rwaffen](https://github.com/rwaffen))
|
32
57
|
|
33
58
|
## [5.1.0](https://github.com/voxpupuli/beaker/tree/5.1.0) (2023-03-27)
|
34
59
|
|
60
|
+
[Full Changelog](https://github.com/voxpupuli/beaker/compare/5.0.0...5.1.0)
|
61
|
+
|
35
62
|
**Implemented enhancements:**
|
36
63
|
|
37
64
|
- Introduce shareable rubocop config [\#1795](https://github.com/voxpupuli/beaker/pull/1795) ([bastelfreak](https://github.com/bastelfreak))
|
38
65
|
|
39
66
|
## [5.0.0](https://github.com/voxpupuli/beaker/tree/5.0.0) (2023-03-24)
|
40
67
|
|
68
|
+
[Full Changelog](https://github.com/voxpupuli/beaker/compare/4.39.0...5.0.0)
|
69
|
+
|
41
70
|
**Breaking changes:**
|
42
71
|
|
43
|
-
-
|
44
|
-
-
|
72
|
+
- Remove install\_puppet\_agent\_\* methods [\#1775](https://github.com/voxpupuli/beaker/pull/1775) ([ekohl](https://github.com/ekohl))
|
73
|
+
- Update fakefs requirement from ~\> 1.0 to ~\> 2.4 [\#1770](https://github.com/voxpupuli/beaker/pull/1770) ([dependabot[bot]](https://github.com/apps/dependabot))
|
45
74
|
- Drop deprecated methods [\#1769](https://github.com/voxpupuli/beaker/pull/1769) ([ekohl](https://github.com/ekohl))
|
46
|
-
-
|
47
|
-
-
|
75
|
+
- Drop Ruby 2.4/2.5/2.6 support [\#1767](https://github.com/voxpupuli/beaker/pull/1767) ([bastelfreak](https://github.com/bastelfreak))
|
76
|
+
- \(maint\) Removes open\_uri\_redirections [\#1764](https://github.com/voxpupuli/beaker/pull/1764) ([mhashizume](https://github.com/mhashizume))
|
77
|
+
- Remove add-el-extras, passenger, proxy\_config, disable\_iptables and clean up code [\#1731](https://github.com/voxpupuli/beaker/pull/1731) ([ekohl](https://github.com/ekohl))
|
48
78
|
|
49
79
|
**Implemented enhancements:**
|
50
80
|
|
51
|
-
-
|
81
|
+
- Drop rspec-its dependency in favor of have\_attributes [\#1788](https://github.com/voxpupuli/beaker/pull/1788) ([ekohl](https://github.com/ekohl))
|
52
82
|
- Add Ruby 3.2 support [\#1762](https://github.com/voxpupuli/beaker/pull/1762) ([ekohl](https://github.com/ekohl))
|
53
|
-
- Drop rspec-its dependency in favor of have_attributes [\#1788](https://github.com/voxpupuli/beaker/pull/1788)
|
54
83
|
|
55
|
-
|
84
|
+
**Fixed bugs:**
|
85
|
+
|
86
|
+
- 4.39.0 breaks beaker-puppet tests [\#1772](https://github.com/voxpupuli/beaker/issues/1772)
|
87
|
+
|
88
|
+
**Merged pull requests:**
|
89
|
+
|
90
|
+
- Use send instead of instance\_eval [\#1793](https://github.com/voxpupuli/beaker/pull/1793) ([ekohl](https://github.com/ekohl))
|
91
|
+
- rubocop: Fix more Style cops [\#1792](https://github.com/voxpupuli/beaker/pull/1792) ([bastelfreak](https://github.com/bastelfreak))
|
92
|
+
- Rubocop: Fix more Style cops [\#1791](https://github.com/voxpupuli/beaker/pull/1791) ([bastelfreak](https://github.com/bastelfreak))
|
93
|
+
- Rubocop: Fix multiple Layout cops [\#1790](https://github.com/voxpupuli/beaker/pull/1790) ([bastelfreak](https://github.com/bastelfreak))
|
94
|
+
- Add a CI job we can enforce in branch protection [\#1789](https://github.com/voxpupuli/beaker/pull/1789) ([bastelfreak](https://github.com/bastelfreak))
|
95
|
+
- rubocop: disable Gemspec/DevelopmentDependencies [\#1787](https://github.com/voxpupuli/beaker/pull/1787) ([bastelfreak](https://github.com/bastelfreak))
|
96
|
+
- Release pipeline: Dont install optional gems [\#1786](https://github.com/voxpupuli/beaker/pull/1786) ([bastelfreak](https://github.com/bastelfreak))
|
97
|
+
- CI: Run on merges to master [\#1785](https://github.com/voxpupuli/beaker/pull/1785) ([bastelfreak](https://github.com/bastelfreak))
|
98
|
+
- Run acceptance tests in CI [\#1784](https://github.com/voxpupuli/beaker/pull/1784) ([ekohl](https://github.com/ekohl))
|
99
|
+
- Update in-parallel requirement from ~\> 0.1 to \>= 0.1, \< 2.0 [\#1783](https://github.com/voxpupuli/beaker/pull/1783) ([dependabot[bot]](https://github.com/apps/dependabot))
|
100
|
+
- Update rubocop-rspec requirement from ~\> 2.18.1 to ~\> 2.19.0 [\#1781](https://github.com/voxpupuli/beaker/pull/1781) ([dependabot[bot]](https://github.com/apps/dependabot))
|
101
|
+
- Update rubocop requirement from ~\> 1.47.0 to ~\> 1.48.0 [\#1780](https://github.com/voxpupuli/beaker/pull/1780) ([dependabot[bot]](https://github.com/apps/dependabot))
|
102
|
+
- dependabot: check for github actions as well [\#1779](https://github.com/voxpupuli/beaker/pull/1779) ([bastelfreak](https://github.com/bastelfreak))
|
103
|
+
- RuboCop: Fix Layout cops [\#1778](https://github.com/voxpupuli/beaker/pull/1778) ([bastelfreak](https://github.com/bastelfreak))
|
104
|
+
- Fix more rubocop violations [\#1777](https://github.com/voxpupuli/beaker/pull/1777) ([bastelfreak](https://github.com/bastelfreak))
|
105
|
+
- Use Enumerable\#all? [\#1776](https://github.com/voxpupuli/beaker/pull/1776) ([ekohl](https://github.com/ekohl))
|
106
|
+
- Do not include Unix::Exec on Windows::Exec tests [\#1774](https://github.com/voxpupuli/beaker/pull/1774) ([ekohl](https://github.com/ekohl))
|
107
|
+
- Update rubocop requirement from ~\> 1.45.0 to ~\> 1.47.0 [\#1773](https://github.com/voxpupuli/beaker/pull/1773) ([dependabot[bot]](https://github.com/apps/dependabot))
|
108
|
+
- rubocop: Fix commas and whitespace and newlines [\#1768](https://github.com/voxpupuli/beaker/pull/1768) ([bastelfreak](https://github.com/bastelfreak))
|
109
|
+
- CI: Use latest actions/checkout version [\#1766](https://github.com/voxpupuli/beaker/pull/1766) ([bastelfreak](https://github.com/bastelfreak))
|
110
|
+
|
111
|
+
## [4.39.0](https://github.com/voxpupuli/beaker/tree/4.39.0) (2023-02-18)
|
56
112
|
|
57
113
|
[Full Changelog](https://github.com/voxpupuli/beaker/compare/4.38.1...4.39.0)
|
58
114
|
|
59
|
-
**
|
115
|
+
**Implemented enhancements:**
|
60
116
|
|
61
|
-
-
|
117
|
+
- \(maint\) StringInclude Rubocop corrections [\#1765](https://github.com/voxpupuli/beaker/pull/1765) ([mhashizume](https://github.com/mhashizume))
|
118
|
+
- Add Rubocop [\#1761](https://github.com/voxpupuli/beaker/pull/1761) ([ekohl](https://github.com/ekohl))
|
62
119
|
|
63
|
-
**
|
120
|
+
**Fixed bugs:**
|
64
121
|
|
65
|
-
-
|
66
|
-
- Update net-scp requirement from >= 1.2, < 4.0 to >= 1.2, < 5.0 [\#1757](https://github.com/voxpupuli/beaker/pull/1757)
|
67
|
-
- (maint) StringInclude Rubocop corrections [\1765](https://github.com/voxpupuli/beaker/pull/1765) ([mhashizume](https://github.com/mhashizume))
|
122
|
+
- Extend list of permitted classes for YAML safe load and allow aliases [\#1758](https://github.com/voxpupuli/beaker/pull/1758) ([nmburgan](https://github.com/nmburgan))
|
68
123
|
|
69
124
|
**Closed issues:**
|
70
125
|
|
71
126
|
- Ruby 3.1/Psych 4 compatibility issues [\#1753](https://github.com/voxpupuli/beaker/issues/1753)
|
72
127
|
|
128
|
+
**Merged pull requests:**
|
129
|
+
|
130
|
+
- Update net-scp requirement from \>= 1.2, \< 4.0 to \>= 1.2, \< 5.0 [\#1757](https://github.com/voxpupuli/beaker/pull/1757) ([dependabot[bot]](https://github.com/apps/dependabot))
|
131
|
+
|
73
132
|
## [4.38.1](https://github.com/voxpupuli/beaker/tree/4.38.1) (2022-09-21)
|
74
133
|
|
75
134
|
[Full Changelog](https://github.com/voxpupuli/beaker/compare/4.38.0...4.38.1)
|
@@ -59,7 +59,7 @@ end
|
|
59
59
|
# assert_equal expected, user
|
60
60
|
# end
|
61
61
|
#
|
62
|
-
# Absorbs any
|
62
|
+
# Absorbs any Minitest::Assertion from a failing test assertion in the block.
|
63
63
|
# This implies that the intermittent failure is caught and the suite will not
|
64
64
|
# go red for this failure. Intended to be used with the Jenkins Build Failure
|
65
65
|
# Analyzer (or similar), to detect these failures without failing the build.
|
@@ -70,7 +70,7 @@ def fails_intermittently(issue_link, args = {})
|
|
70
70
|
raise ArgumentError, "a block is required" unless block_given?
|
71
71
|
|
72
72
|
yield
|
73
|
-
rescue
|
73
|
+
rescue Minitest::Assertion, StandardError, SignalException # we have a test failure!
|
74
74
|
STDERR.puts "\n\nIntermittent test failure! See: #{issue_link}"
|
75
75
|
|
76
76
|
if args.empty?
|
data/lib/beaker/platform.rb
CHANGED
@@ -6,7 +6,10 @@ module Beaker
|
|
6
6
|
PLATFORMS = /^(alpine|huaweios|cisco_nexus|cisco_ios_xr|(free|open)bsd|osx|centos|fedora|debian|oracle|redhat|redhatfips|scientific|opensuse|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 => { "
|
9
|
+
{ :debian => { "forky" => "14",
|
10
|
+
"trixie" => "13",
|
11
|
+
"bookworm" => "12",
|
12
|
+
"bullseye" => "11",
|
10
13
|
"buster" => "10",
|
11
14
|
"stretch" => "9",
|
12
15
|
"jessie" => "8",
|
data/lib/beaker/test_case.rb
CHANGED
@@ -22,7 +22,7 @@ module Beaker
|
|
22
22
|
include Beaker::DSL
|
23
23
|
|
24
24
|
# The Exception raised by Ruby's STDLIB's test framework (Ruby 1.9)
|
25
|
-
TEST_EXCEPTION_CLASS = ::
|
25
|
+
TEST_EXCEPTION_CLASS = ::Minitest::Assertion
|
26
26
|
|
27
27
|
# Necessary for implementing {Beaker::DSL::Helpers#confine}.
|
28
28
|
# Assumed to be an array of valid {Beaker::Host} objects for
|
data/lib/beaker/version.rb
CHANGED
data/lib/beaker.rb
CHANGED
@@ -79,7 +79,7 @@ EXPECT
|
|
79
79
|
expect(result).to receive(:output).and_return(output)
|
80
80
|
|
81
81
|
expect(subject).to receive(:result).at_least(:once).and_return(result)
|
82
|
-
expect { subject.assert_output expectation }.to raise_error(
|
82
|
+
expect { subject.assert_output expectation }.to raise_error(Minitest::Assertion)
|
83
83
|
end
|
84
84
|
end
|
85
85
|
end
|
@@ -196,11 +196,11 @@ describe ClassMixedWithDSLStructure do
|
|
196
196
|
end
|
197
197
|
|
198
198
|
describe '#expect_failure' do
|
199
|
-
it 'passes when a
|
199
|
+
it 'passes when a Minitest assertion is raised' do
|
200
200
|
expect(subject).to receive(:logger).and_return(logger)
|
201
201
|
expect(logger).to receive(:notify)
|
202
202
|
# We changed this lambda to use the simplest assert possible; using assert_equal
|
203
|
-
# caused an error in
|
203
|
+
# caused an error in Minitest 5.9.0 trying to write to the file system.
|
204
204
|
block = -> { assert(false, 'this assertion should be caught') }
|
205
205
|
expect { subject.expect_failure 'this is an expected failure', &block }.not_to raise_error
|
206
206
|
end
|
@@ -212,9 +212,9 @@ describe ClassMixedWithDSLStructure do
|
|
212
212
|
expect { subject.expect_failure 'this is an expected failure', &block }.not_to raise_error
|
213
213
|
end
|
214
214
|
|
215
|
-
it 'fails when a non-Beaker, non-
|
216
|
-
block = -> { raise 'not a Beaker or
|
217
|
-
expect { subject.expect_failure 'this has a non-Beaker, non-
|
215
|
+
it 'fails when a non-Beaker, non-Minitest assertion is raised' do
|
216
|
+
block = -> { raise 'not a Beaker or Minitest error' }
|
217
|
+
expect { subject.expect_failure 'this has a non-Beaker, non-Minitest exception', &block }.to raise_error(RuntimeError, /not a Beaker or Minitest error/)
|
218
218
|
end
|
219
219
|
|
220
220
|
it 'fails when no assertion is raised' do
|
@@ -52,7 +52,7 @@ describe MacGroupTest do
|
|
52
52
|
result.stdout = ''
|
53
53
|
group_name = 'any_name'
|
54
54
|
expect(subject).to receive(:execute).and_yield(result)
|
55
|
-
expect { subject.group_get(group_name) }.to raise_error(
|
55
|
+
expect { subject.group_get(group_name) }.to raise_error(Minitest::Assertion, "failed to get group #{group_name}")
|
56
56
|
end
|
57
57
|
|
58
58
|
it 'parses mac dscacheutil output into /etc/group format correctly' do
|
@@ -63,7 +63,7 @@ describe MacUserTest do
|
|
63
63
|
result.stdout = ''
|
64
64
|
user_name = 'any_name'
|
65
65
|
expect(subject).to receive(:execute).and_yield(result)
|
66
|
-
expect { subject.user_get(user_name) }.to raise_error(
|
66
|
+
expect { subject.user_get(user_name) }.to raise_error(Minitest::Assertion, "failed to get user #{user_name}")
|
67
67
|
end
|
68
68
|
|
69
69
|
it 'yields correctly with the result object' do
|
@@ -58,6 +58,21 @@ module Beaker
|
|
58
58
|
end
|
59
59
|
|
60
60
|
context 'with_version_codename' do
|
61
|
+
it "can convert debian-14-xxx to debian-forky-xxx" do
|
62
|
+
@name = 'debian-14-xxx'
|
63
|
+
expect(platform.with_version_codename).to be === 'debian-forky-xxx'
|
64
|
+
end
|
65
|
+
|
66
|
+
it "can convert debian-13-xxx to debian-trixie-xxx" do
|
67
|
+
@name = 'debian-13-xxx'
|
68
|
+
expect(platform.with_version_codename).to be === 'debian-trixie-xxx'
|
69
|
+
end
|
70
|
+
|
71
|
+
it "can convert debian-12-xxx to debian-bookworm-xxx" do
|
72
|
+
@name = 'debian-12-xxx'
|
73
|
+
expect(platform.with_version_codename).to be === 'debian-bookworm-xxx'
|
74
|
+
end
|
75
|
+
|
61
76
|
it "can convert debian-11-xxx to debian-bullseye-xxx" do
|
62
77
|
@name = 'debian-11-xxx'
|
63
78
|
expect(platform.with_version_codename).to be === 'debian-bullseye-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: 5.
|
4
|
+
version: 5.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Puppet
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fakefs
|