beaker 5.3.0 → 5.3.1
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/CHANGELOG.md +73 -22
- data/acceptance/lib/helpers/test_helper.rb +2 -2
- data/lib/beaker/options/command_line_parser.rb +1 -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
- 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: 9b23a9cf4e69c1cc33d3b64319de5e01485d051f72b307bb4ba3e710bba1b2ee
|
|
4
|
+
data.tar.gz: 207b9b9829b4e2fed7108ae8c20aedc8da77c52c82ff7bbe44f02e79bc01f97b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 62d8f5a82f380bcc4d0e19a92d002eafe2a882e1c4dd48b322596b6c002e41efa78722337b26715850caff8b8fb788e8e89979d9fdd2fdcd61554ea755e6f972
|
|
7
|
+
data.tar.gz: d99dab4be804d55f0434d8a3671e5c6911dba5ad3b6e8b76d0c19a8e09ca4a11dd8463bac3726fc60d4311886325d6e1a2b9dd6bc924e57e8bdfc5303f69b099
|
data/CHANGELOG.md
CHANGED
|
@@ -1,75 +1,126 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## [5.3.
|
|
3
|
+
## [5.3.1](https://github.com/voxpupuli/beaker/tree/5.3.1) (2023-07-26)
|
|
4
|
+
|
|
5
|
+
**Fixed bugs:**
|
|
6
|
+
|
|
7
|
+
- Fix Minitest capitalization [\#1819](https://github.com/voxpupuli/beaker/pull/1819) ([mhashizume](https://github.com/mhashizume))
|
|
8
|
+
|
|
9
|
+
[Full Changelog](https://github.com/voxpupuli/beaker/compare/5.3.0...5.3.1)
|
|
10
|
+
|
|
11
|
+
## [5.3.0](https://github.com/voxpupuli/beaker/tree/5.3.0) (2023-06-06)
|
|
12
|
+
|
|
13
|
+
[Full Changelog](https://github.com/voxpupuli/beaker/compare/5.2.0...5.3.0)
|
|
4
14
|
|
|
5
15
|
**Implemented enhancements:**
|
|
6
16
|
|
|
7
|
-
- Add
|
|
17
|
+
- Add bcrypt\_pbkdf to fix ed25519 ssh keys support [\#1810](https://github.com/voxpupuli/beaker/pull/1810) ([jay7x](https://github.com/jay7x))
|
|
8
18
|
|
|
9
|
-
**Merged
|
|
19
|
+
**Merged pull requests:**
|
|
10
20
|
|
|
11
|
-
- Build gems with verbosity and strictness [\#1811](https://github.com/voxpupuli/beaker/pull/1811) ([bastelfreak](https://github.com/bastelfreak))
|
|
12
21
|
- rubocop: autofix [\#1816](https://github.com/voxpupuli/beaker/pull/1816) ([bastelfreak](https://github.com/bastelfreak))
|
|
13
22
|
- GCG: Add missing faraday dependency [\#1815](https://github.com/voxpupuli/beaker/pull/1815) ([bastelfreak](https://github.com/bastelfreak))
|
|
23
|
+
- Build gems with verbosity and strictness [\#1811](https://github.com/voxpupuli/beaker/pull/1811) ([bastelfreak](https://github.com/bastelfreak))
|
|
14
24
|
|
|
15
25
|
## [5.2.0](https://github.com/voxpupuli/beaker/tree/5.2.0) (2023-04-28)
|
|
16
26
|
|
|
27
|
+
[Full Changelog](https://github.com/voxpupuli/beaker/compare/5.1.0...5.2.0)
|
|
28
|
+
|
|
17
29
|
**Implemented enhancements:**
|
|
18
30
|
|
|
19
|
-
- Enhance documentation about roles [\#1800](https://github.com/voxpupuli/beaker/pull/1800) ([rwaffen](https://github.com/rwaffen))
|
|
20
31
|
- Declare API interface on Beaker::Host [\#1806](https://github.com/voxpupuli/beaker/pull/1806) ([ekohl](https://github.com/ekohl))
|
|
32
|
+
- Switch to voxpupuli-rubocop [\#1804](https://github.com/voxpupuli/beaker/pull/1804) ([bastelfreak](https://github.com/bastelfreak))
|
|
21
33
|
- Support an extension to tmpfile [\#1735](https://github.com/voxpupuli/beaker/pull/1735) ([ekohl](https://github.com/ekohl))
|
|
22
34
|
|
|
23
35
|
**Fixed bugs:**
|
|
24
36
|
|
|
25
|
-
- Use systemctl to
|
|
37
|
+
- Use systemctl to restart SSH on EL9 [\#1808](https://github.com/voxpupuli/beaker/pull/1808) ([ekohl](https://github.com/ekohl))
|
|
38
|
+
|
|
39
|
+
**Closed issues:**
|
|
26
40
|
|
|
27
|
-
|
|
41
|
+
- Failed to exec 'vagrant up' \(rbenv, ruby 2.7.6, bundler 2.3.19, virtualbox\) [\#1752](https://github.com/voxpupuli/beaker/issues/1752)
|
|
42
|
+
- EL 9 error - /sbin/service: No such file or directory [\#1751](https://github.com/voxpupuli/beaker/issues/1751)
|
|
43
|
+
|
|
44
|
+
**Merged pull requests:**
|
|
28
45
|
|
|
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
46
|
- Disable RSpec/IndexedLet [\#1807](https://github.com/voxpupuli/beaker/pull/1807) ([ekohl](https://github.com/ekohl))
|
|
47
|
+
- Drop legacy yard tasks [\#1805](https://github.com/voxpupuli/beaker/pull/1805) ([bastelfreak](https://github.com/bastelfreak))
|
|
48
|
+
- Enhance documentation about roles [\#1800](https://github.com/voxpupuli/beaker/pull/1800) ([rwaffen](https://github.com/rwaffen))
|
|
32
49
|
|
|
33
50
|
## [5.1.0](https://github.com/voxpupuli/beaker/tree/5.1.0) (2023-03-27)
|
|
34
51
|
|
|
52
|
+
[Full Changelog](https://github.com/voxpupuli/beaker/compare/5.0.0...5.1.0)
|
|
53
|
+
|
|
35
54
|
**Implemented enhancements:**
|
|
36
55
|
|
|
37
56
|
- Introduce shareable rubocop config [\#1795](https://github.com/voxpupuli/beaker/pull/1795) ([bastelfreak](https://github.com/bastelfreak))
|
|
38
57
|
|
|
39
58
|
## [5.0.0](https://github.com/voxpupuli/beaker/tree/5.0.0) (2023-03-24)
|
|
40
59
|
|
|
60
|
+
[Full Changelog](https://github.com/voxpupuli/beaker/compare/4.39.0...5.0.0)
|
|
61
|
+
|
|
41
62
|
**Breaking changes:**
|
|
42
63
|
|
|
43
|
-
-
|
|
44
|
-
-
|
|
64
|
+
- Remove install\_puppet\_agent\_\* methods [\#1775](https://github.com/voxpupuli/beaker/pull/1775) ([ekohl](https://github.com/ekohl))
|
|
65
|
+
- 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
66
|
- Drop deprecated methods [\#1769](https://github.com/voxpupuli/beaker/pull/1769) ([ekohl](https://github.com/ekohl))
|
|
46
|
-
-
|
|
47
|
-
-
|
|
67
|
+
- Drop Ruby 2.4/2.5/2.6 support [\#1767](https://github.com/voxpupuli/beaker/pull/1767) ([bastelfreak](https://github.com/bastelfreak))
|
|
68
|
+
- \(maint\) Removes open\_uri\_redirections [\#1764](https://github.com/voxpupuli/beaker/pull/1764) ([mhashizume](https://github.com/mhashizume))
|
|
69
|
+
- 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
70
|
|
|
49
71
|
**Implemented enhancements:**
|
|
50
72
|
|
|
51
|
-
-
|
|
73
|
+
- Drop rspec-its dependency in favor of have\_attributes [\#1788](https://github.com/voxpupuli/beaker/pull/1788) ([ekohl](https://github.com/ekohl))
|
|
52
74
|
- 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
75
|
|
|
55
|
-
|
|
76
|
+
**Fixed bugs:**
|
|
77
|
+
|
|
78
|
+
- 4.39.0 breaks beaker-puppet tests [\#1772](https://github.com/voxpupuli/beaker/issues/1772)
|
|
79
|
+
|
|
80
|
+
**Merged pull requests:**
|
|
81
|
+
|
|
82
|
+
- Use send instead of instance\_eval [\#1793](https://github.com/voxpupuli/beaker/pull/1793) ([ekohl](https://github.com/ekohl))
|
|
83
|
+
- rubocop: Fix more Style cops [\#1792](https://github.com/voxpupuli/beaker/pull/1792) ([bastelfreak](https://github.com/bastelfreak))
|
|
84
|
+
- Rubocop: Fix more Style cops [\#1791](https://github.com/voxpupuli/beaker/pull/1791) ([bastelfreak](https://github.com/bastelfreak))
|
|
85
|
+
- Rubocop: Fix multiple Layout cops [\#1790](https://github.com/voxpupuli/beaker/pull/1790) ([bastelfreak](https://github.com/bastelfreak))
|
|
86
|
+
- Add a CI job we can enforce in branch protection [\#1789](https://github.com/voxpupuli/beaker/pull/1789) ([bastelfreak](https://github.com/bastelfreak))
|
|
87
|
+
- rubocop: disable Gemspec/DevelopmentDependencies [\#1787](https://github.com/voxpupuli/beaker/pull/1787) ([bastelfreak](https://github.com/bastelfreak))
|
|
88
|
+
- Release pipeline: Dont install optional gems [\#1786](https://github.com/voxpupuli/beaker/pull/1786) ([bastelfreak](https://github.com/bastelfreak))
|
|
89
|
+
- CI: Run on merges to master [\#1785](https://github.com/voxpupuli/beaker/pull/1785) ([bastelfreak](https://github.com/bastelfreak))
|
|
90
|
+
- Run acceptance tests in CI [\#1784](https://github.com/voxpupuli/beaker/pull/1784) ([ekohl](https://github.com/ekohl))
|
|
91
|
+
- 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))
|
|
92
|
+
- 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))
|
|
93
|
+
- 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))
|
|
94
|
+
- dependabot: check for github actions as well [\#1779](https://github.com/voxpupuli/beaker/pull/1779) ([bastelfreak](https://github.com/bastelfreak))
|
|
95
|
+
- RuboCop: Fix Layout cops [\#1778](https://github.com/voxpupuli/beaker/pull/1778) ([bastelfreak](https://github.com/bastelfreak))
|
|
96
|
+
- Fix more rubocop violations [\#1777](https://github.com/voxpupuli/beaker/pull/1777) ([bastelfreak](https://github.com/bastelfreak))
|
|
97
|
+
- Use Enumerable\#all? [\#1776](https://github.com/voxpupuli/beaker/pull/1776) ([ekohl](https://github.com/ekohl))
|
|
98
|
+
- Do not include Unix::Exec on Windows::Exec tests [\#1774](https://github.com/voxpupuli/beaker/pull/1774) ([ekohl](https://github.com/ekohl))
|
|
99
|
+
- 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))
|
|
100
|
+
- rubocop: Fix commas and whitespace and newlines [\#1768](https://github.com/voxpupuli/beaker/pull/1768) ([bastelfreak](https://github.com/bastelfreak))
|
|
101
|
+
- CI: Use latest actions/checkout version [\#1766](https://github.com/voxpupuli/beaker/pull/1766) ([bastelfreak](https://github.com/bastelfreak))
|
|
102
|
+
|
|
103
|
+
## [4.39.0](https://github.com/voxpupuli/beaker/tree/4.39.0) (2023-02-18)
|
|
56
104
|
|
|
57
105
|
[Full Changelog](https://github.com/voxpupuli/beaker/compare/4.38.1...4.39.0)
|
|
58
106
|
|
|
59
|
-
**
|
|
107
|
+
**Implemented enhancements:**
|
|
60
108
|
|
|
61
|
-
-
|
|
109
|
+
- \(maint\) StringInclude Rubocop corrections [\#1765](https://github.com/voxpupuli/beaker/pull/1765) ([mhashizume](https://github.com/mhashizume))
|
|
110
|
+
- Add Rubocop [\#1761](https://github.com/voxpupuli/beaker/pull/1761) ([ekohl](https://github.com/ekohl))
|
|
62
111
|
|
|
63
|
-
**
|
|
112
|
+
**Fixed bugs:**
|
|
64
113
|
|
|
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))
|
|
114
|
+
- 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
115
|
|
|
69
116
|
**Closed issues:**
|
|
70
117
|
|
|
71
118
|
- Ruby 3.1/Psych 4 compatibility issues [\#1753](https://github.com/voxpupuli/beaker/issues/1753)
|
|
72
119
|
|
|
120
|
+
**Merged pull requests:**
|
|
121
|
+
|
|
122
|
+
- 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))
|
|
123
|
+
|
|
73
124
|
## [4.38.1](https://github.com/voxpupuli/beaker/tree/4.38.1) (2022-09-21)
|
|
74
125
|
|
|
75
126
|
[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/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
|
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.3.
|
|
4
|
+
version: 5.3.1
|
|
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-07-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: fakefs
|