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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 772b30c85d3406390ceba9e0df29f7911dc990a579da87e3d520b8fd6a5deff5
4
- data.tar.gz: bb5721411884d7876ade5bc04c6304308faf0e4090d3153126367943ccf6d4f2
3
+ metadata.gz: f20284823ba7135cb7d216cb4c5680fc96846ed43eb9103f015e183070049041
4
+ data.tar.gz: a4b459893307c1a792a53c7794ca5bb86d8997b87f928103511b96fe84e328cf
5
5
  SHA512:
6
- metadata.gz: 48814c53dada3769d467a63f15817f07b4c94139b7127aa5befe42b1cce4e3d186baa620a88a9156ccc1ac35170530a1bf6036b4951b3e1adf66d69e628788ed
7
- data.tar.gz: ca25c8a16952c3af5f9415ded1b30fe76ff9ea37bf7892a264b41b6c86432a1fcc787ce3d9e1be05407cfa7a502828a059b6d97d00cbe886024a249e301bf8ff
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 MiniTest::Assertion from a failing test assertion in the block.
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 MiniTest::Assertion, StandardError, SignalException # we have a test failure!
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?
@@ -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 = ::MiniTest::Assertion
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
@@ -1,5 +1,5 @@
1
1
  module Beaker
2
2
  module Version
3
- STRING = '4.40.1'
3
+ STRING = '4.40.2'
4
4
  end
5
5
  end
data/lib/beaker.rb CHANGED
@@ -36,6 +36,6 @@ module Beaker
36
36
  # Shared methods and helpers
37
37
  require 'beaker/shared'
38
38
 
39
- # MiniTest, for including MiniTest::Assertions
39
+ # Minitest, for including Minitest::Assertions
40
40
  require 'minitest/test'
41
41
  end
@@ -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( MiniTest::Assertion )
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 MiniTest assertion is raised' do
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 minitest 5.9.0 trying to write to the file system.
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-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/)
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(MiniTest::Assertion, "failed to get group #{group_name}")
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(MiniTest::Assertion, "failed to get user #{user_name}")
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.1
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-05-05 00:00:00.000000000 Z
11
+ date: 2023-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fakefs