beaker 4.40.1 → 4.40.2
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 +19 -6
- data/acceptance/lib/helpers/test_helper.rb +2 -2
- 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: f20284823ba7135cb7d216cb4c5680fc96846ed43eb9103f015e183070049041
|
|
4
|
+
data.tar.gz: a4b459893307c1a792a53c7794ca5bb86d8997b87f928103511b96fe84e328cf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '00409a147c67f50a438215422b247fa691918dd58d48951f984f1e25223b368e29bccda577aee39a71befaee233c5ce1a28afa87b297f537fa4590bc5b833a16'
|
|
7
|
+
data.tar.gz: 56a82b85aa6da9f4344cee95ffe92ab3e9a7d6d9a24f7dda5bdf61c7b552541420045646f644e47ecce0b239e6e99b81a1202dcd1336fc0bcbee9fe80b85c3bd
|
data/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [4.40.2](https://github.com/voxpupuli/beaker/tree/4.40.2) (2023-07-26)
|
|
4
|
+
|
|
5
|
+
[Full Changelog](https://github.com/voxpupuli/beaker/compare/4.40.1...4.40.2)
|
|
6
|
+
|
|
7
|
+
**Fixed bugs:**
|
|
8
|
+
|
|
9
|
+
- Fix Minitest capitalization [\#1818](https://github.com/voxpupuli/beaker/pull/1818) ([mhashizume](https://github.com/mhashizume))
|
|
10
|
+
|
|
3
11
|
## [4.40.1](https://github.com/voxpupuli/beaker/tree/4.40.1) (2023-05-05)
|
|
4
12
|
|
|
13
|
+
[Full Changelog](https://github.com/voxpupuli/beaker/compare/4.40.0...4.40.1)
|
|
14
|
+
|
|
5
15
|
**Merged Changes:**
|
|
6
16
|
|
|
7
17
|
- in-parallel: Allow 1.x [\#1813](https://github.com/voxpupuli/beaker/pull/1813) ([bastelfreak](https://github.com/bastelfreak))
|
|
@@ -18,20 +28,23 @@
|
|
|
18
28
|
|
|
19
29
|
[Full Changelog](https://github.com/voxpupuli/beaker/compare/4.38.1...4.39.0)
|
|
20
30
|
|
|
21
|
-
**Fixed bugs:**
|
|
22
|
-
|
|
23
|
-
- 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))
|
|
24
|
-
|
|
25
31
|
**Implemented enhancements:**
|
|
26
32
|
|
|
27
|
-
- Add Rubocop [\#1761](https://github.com/voxpupuli/beaker/pull/1761) ([ekohl](https://github.com/ekohl))
|
|
28
|
-
- Update net-scp requirement from >= 1.2, < 4.0 to >= 1.2, < 5.0 [\#1757](https://github.com/voxpupuli/beaker/pull/1757)
|
|
29
33
|
- \(maint\) StringInclude Rubocop corrections [\#1765](https://github.com/voxpupuli/beaker/pull/1765) ([mhashizume](https://github.com/mhashizume))
|
|
34
|
+
- Add Rubocop [\#1761](https://github.com/voxpupuli/beaker/pull/1761) ([ekohl](https://github.com/ekohl))
|
|
35
|
+
|
|
36
|
+
**Fixed bugs:**
|
|
37
|
+
|
|
38
|
+
- 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))
|
|
30
39
|
|
|
31
40
|
**Closed issues:**
|
|
32
41
|
|
|
33
42
|
- Ruby 3.1/Psych 4 compatibility issues [\#1753](https://github.com/voxpupuli/beaker/issues/1753)
|
|
34
43
|
|
|
44
|
+
**Merged pull requests:**
|
|
45
|
+
|
|
46
|
+
- 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))
|
|
47
|
+
|
|
35
48
|
## [4.38.1](https://github.com/voxpupuli/beaker/tree/4.38.1) (2022-09-21)
|
|
36
49
|
|
|
37
50
|
[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.
|
|
@@ -69,7 +69,7 @@ def fails_intermittently(issue_link, args = {})
|
|
|
69
69
|
raise ArgumentError, "provide a Jira ticket link" unless issue_link
|
|
70
70
|
raise ArgumentError, "a block is required" unless block_given?
|
|
71
71
|
yield
|
|
72
|
-
rescue
|
|
72
|
+
rescue Minitest::Assertion, StandardError, SignalException # we have a test failure!
|
|
73
73
|
STDERR.puts "\n\nIntermittent test failure! See: #{issue_link}"
|
|
74
74
|
|
|
75
75
|
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
|
|
@@ -197,11 +197,11 @@ describe ClassMixedWithDSLStructure do
|
|
|
197
197
|
end
|
|
198
198
|
|
|
199
199
|
describe '#expect_failure' do
|
|
200
|
-
it 'passes when a
|
|
200
|
+
it 'passes when a Minitest assertion is raised' do
|
|
201
201
|
expect( subject ).to receive( :logger ).and_return( logger )
|
|
202
202
|
expect( logger ).to receive( :notify )
|
|
203
203
|
# We changed this lambda to use the simplest assert possible; using assert_equal
|
|
204
|
-
# caused an error in
|
|
204
|
+
# caused an error in Minitest 5.9.0 trying to write to the file system.
|
|
205
205
|
block = lambda { assert(false, 'this assertion should be caught') }
|
|
206
206
|
expect{ subject.expect_failure 'this is an expected failure', &block }.not_to raise_error
|
|
207
207
|
end
|
|
@@ -213,9 +213,9 @@ describe ClassMixedWithDSLStructure do
|
|
|
213
213
|
expect{ subject.expect_failure 'this is an expected failure', &block }.not_to raise_error
|
|
214
214
|
end
|
|
215
215
|
|
|
216
|
-
it 'fails when a non-Beaker, non-
|
|
217
|
-
block = lambda { raise 'not a Beaker or
|
|
218
|
-
expect{ subject.expect_failure 'this has a non-Beaker, non-
|
|
216
|
+
it 'fails when a non-Beaker, non-Minitest assertion is raised' do
|
|
217
|
+
block = lambda { raise 'not a Beaker or Minitest error' }
|
|
218
|
+
expect{ subject.expect_failure 'this has a non-Beaker, non-Minitest exception', &block }.to raise_error(RuntimeError, /not a Beaker or Minitest error/)
|
|
219
219
|
end
|
|
220
220
|
|
|
221
221
|
it 'fails when no assertion is raised' do
|
|
@@ -52,7 +52,7 @@ EOS
|
|
|
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 @@ EOS
|
|
|
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: 4.40.
|
|
4
|
+
version: 4.40.2
|
|
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
|