beaker 4.40.0 → 4.40.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 63f687c51eaaca96401643346f8a76a1cbf0e907950f92c29285df20ce713506
4
- data.tar.gz: d54e2172b6b9d446204dd6fc0ccea5c5d963b411e8a0df536e329de3185ed585
3
+ metadata.gz: f20284823ba7135cb7d216cb4c5680fc96846ed43eb9103f015e183070049041
4
+ data.tar.gz: a4b459893307c1a792a53c7794ca5bb86d8997b87f928103511b96fe84e328cf
5
5
  SHA512:
6
- metadata.gz: 181a5743faac578d27ed8ebb1068804626cd7e47952792a5ea3d59cb572c91e330efedc6238fd05cdf678396f4e13089cc3017d10a03c50bc444d3b847c2ec5f
7
- data.tar.gz: 86fbf39233cb4ce3e25fff57b0bff05f09cc6cd387f41465fe269507f7e775ae3ac835069cdf775662db9106554399b81aac63cf0a83baf9e40dcaa60f3d3240
6
+ metadata.gz: '00409a147c67f50a438215422b247fa691918dd58d48951f984f1e25223b368e29bccda577aee39a71befaee233c5ce1a28afa87b297f537fa4590bc5b833a16'
7
+ data.tar.gz: 56a82b85aa6da9f4344cee95ffe92ab3e9a7d6d9a24f7dda5bdf61c7b552541420045646f644e47ecce0b239e6e99b81a1202dcd1336fc0bcbee9fe80b85c3bd
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
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
+
11
+ ## [4.40.1](https://github.com/voxpupuli/beaker/tree/4.40.1) (2023-05-05)
12
+
13
+ [Full Changelog](https://github.com/voxpupuli/beaker/compare/4.40.0...4.40.1)
14
+
15
+ **Merged Changes:**
16
+
17
+ - in-parallel: Allow 1.x [\#1813](https://github.com/voxpupuli/beaker/pull/1813) ([bastelfreak](https://github.com/bastelfreak))
18
+
3
19
  ## [4.40.0](https://github.com/voxpupuli/beaker/tree/4.40.0) (2023-04-04)
4
20
 
5
21
  [Full Changelog](https://github.com/voxpupuli/beaker/compare/4.39.0...4.40.0)
@@ -12,20 +28,23 @@
12
28
 
13
29
  [Full Changelog](https://github.com/voxpupuli/beaker/compare/4.38.1...4.39.0)
14
30
 
15
- **Fixed bugs:**
16
-
17
- - 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))
18
-
19
31
  **Implemented enhancements:**
20
32
 
21
- - Add Rubocop [\#1761](https://github.com/voxpupuli/beaker/pull/1761) ([ekohl](https://github.com/ekohl))
22
- - Update net-scp requirement from >= 1.2, < 4.0 to >= 1.2, < 5.0 [\#1757](https://github.com/voxpupuli/beaker/pull/1757)
23
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))
24
39
 
25
40
  **Closed issues:**
26
41
 
27
42
  - Ruby 3.1/Psych 4 compatibility issues [\#1753](https://github.com/voxpupuli/beaker/issues/1753)
28
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
+
29
48
  ## [4.38.1](https://github.com/voxpupuli/beaker/tree/4.38.1) (2022-09-21)
30
49
 
31
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?
data/beaker.gemspec CHANGED
@@ -40,7 +40,7 @@ Gem::Specification.new do |s|
40
40
  s.add_runtime_dependency 'net-scp', '>= 1.2', '< 5.0'
41
41
  s.add_runtime_dependency 'net-ssh', '>= 5.0'
42
42
 
43
- s.add_runtime_dependency 'in-parallel', '~> 0.1'
43
+ s.add_runtime_dependency 'in-parallel', '>= 0.1', '< 2'
44
44
  s.add_runtime_dependency 'rsync', '~> 1.0.9'
45
45
  s.add_runtime_dependency 'thor', ['>= 1.0.1', '< 2.0']
46
46
 
@@ -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.0'
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.0
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-04-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
@@ -202,16 +202,22 @@ dependencies:
202
202
  name: in-parallel
203
203
  requirement: !ruby/object:Gem::Requirement
204
204
  requirements:
205
- - - "~>"
205
+ - - ">="
206
206
  - !ruby/object:Gem::Version
207
207
  version: '0.1'
208
+ - - "<"
209
+ - !ruby/object:Gem::Version
210
+ version: '2'
208
211
  type: :runtime
209
212
  prerelease: false
210
213
  version_requirements: !ruby/object:Gem::Requirement
211
214
  requirements:
212
- - - "~>"
215
+ - - ">="
213
216
  - !ruby/object:Gem::Version
214
217
  version: '0.1'
218
+ - - "<"
219
+ - !ruby/object:Gem::Version
220
+ version: '2'
215
221
  - !ruby/object:Gem::Dependency
216
222
  name: rsync
217
223
  requirement: !ruby/object:Gem::Requirement