beaker 5.3.0 → 5.3.1

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: b4829c1a428f59340c095f78aa87331fb6a7df76854cdb4d95ed62553af19112
4
- data.tar.gz: 0e08786ce7520319ea25c94ece1fb8f3a2a56e507035fd4ced4edeabfa1153ac
3
+ metadata.gz: 9b23a9cf4e69c1cc33d3b64319de5e01485d051f72b307bb4ba3e710bba1b2ee
4
+ data.tar.gz: 207b9b9829b4e2fed7108ae8c20aedc8da77c52c82ff7bbe44f02e79bc01f97b
5
5
  SHA512:
6
- metadata.gz: 7ecddce8f3ffcc7fba3dceb5061667d48332808a76d88aae73b7d681e1d1f4478d99bdd464aa9ea3a6568425630a105618eb643ee6b9d9710e4e90adabb8e529
7
- data.tar.gz: dd41043f67f6d951beb5de7739e7e9363a221ff2a09d9448edca2bdb9e054ad19200e639da3714d1c364e2fcc5c7ee6b1d17f572b5bdd7c458373301c23acf3a
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.0] (https://github.com/voxpupuli/beaker/tree/5.3.0) (2023-06-06)
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 bcrypt_pbkdf to fix ed25519 ssh keys support [\#1810](https://github.com/voxpupuli/beaker/pull/1810) ([jay7x](https://github.com/jay7x))
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 changes:**
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 restat SSH on EL9 [\#1808](https://github.com/voxpupuli/beaker/pull/1808) ([ekohl](https://github.com/ekohl))
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
- **Merged changes:**
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
- - Drop Ruby 2.4/2.5/2.6 support [\#1767](https://github.com/voxpupuli/beaker/pull/1767) ([bastelfreak](https://github.com/bastelfreak))
44
- - Removes open_uri_redirections [\#1764](https://github.com/voxpupuli/beaker/pull/1764) ([mhashizume](https://github.com/mhashizume))
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
- - 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))
47
- - Remove install_puppet_agent_* methods [\#1775](https://github.com/voxpupuli/beaker/pull/1775) ([ekohl](https://github.com/ekohl))
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
- - Fix many RuboCop violations: [\#1768](https://github.com/voxpupuli/beaker/pull/1768), [\#1777](https://github.com/voxpupuli/beaker/pull/1777), [\#1787](https://github.com/voxpupuli/beaker/pull/1787), [\#1778](https://github.com/voxpupuli/beaker/pull/1778), [\#1790](https://github.com/voxpupuli/beaker/pull/1790), [\#1791](https://github.com/voxpupuli/beaker/pull/1791), [\#1792](https://github.com/voxpupuli/beaker/pull/1792)
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
- ## [4.39.0](https://github.com/voxpupuli/beaker/tree/4.39.0) (2023-02-09)
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
- **Fixed bugs:**
107
+ **Implemented enhancements:**
60
108
 
61
- - 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))
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
- **Implemented enhancements:**
112
+ **Fixed bugs:**
64
113
 
65
- - Add RuboCop [\#1761](https://github.com/voxpupuli/beaker/pull/1761) ([ekohl](https://github.com/ekohl))
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 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.
@@ -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 MiniTest::Assertion, StandardError, SignalException # we have a test failure!
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?
@@ -248,7 +248,7 @@ module Beaker
248
248
 
249
249
  opts.on '--[no-]debug',
250
250
  'DEPRECATED, use --log-level' do |bool|
251
- @cmd_options[:log_level] = bool ? 'debug' : 'info'
251
+ @cmd_options[:log_level] = bool ? 'debug' : 'info'
252
252
  end
253
253
 
254
254
  opts.on '-x', '--[no-]xml',
@@ -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 = '5.3.0'
3
+ STRING = '5.3.1'
4
4
  end
5
5
  end
data/lib/beaker.rb CHANGED
@@ -35,6 +35,6 @@ module Beaker
35
35
  # Shared methods and helpers
36
36
  require 'beaker/shared'
37
37
 
38
- # MiniTest, for including MiniTest::Assertions
38
+ # Minitest, for including Minitest::Assertions
39
39
  require 'minitest/test'
40
40
  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
@@ -196,11 +196,11 @@ describe ClassMixedWithDSLStructure do
196
196
  end
197
197
 
198
198
  describe '#expect_failure' do
199
- it 'passes when a MiniTest assertion is raised' do
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 minitest 5.9.0 trying to write to the file system.
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-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/)
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(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 @@ 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(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: 5.3.0
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-06-06 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