beaker 5.6.0 → 5.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/.github/dependabot.yml +14 -14
  3. data/.github/workflows/release.yml +2 -2
  4. data/.github/workflows/test.yml +4 -3
  5. data/.rubocop_todo.yml +58 -5
  6. data/CHANGELOG.md +22 -0
  7. data/acceptance/tests/base/dsl/helpers/host_helpers/on_test.rb +1 -1
  8. data/acceptance/tests/base/dsl/platform_tag_confiner_test.rb +2 -2
  9. data/beaker.gemspec +1 -1
  10. data/docs/concepts/argument_processing_and_precedence.md +1 -1
  11. data/lib/beaker/host/unix/file.rb +1 -1
  12. data/lib/beaker/host_prebuilt_steps.rb +4 -7
  13. data/lib/beaker/options/command_line_parser.rb +1 -1
  14. data/lib/beaker/platform.rb +2 -1
  15. data/lib/beaker/shared/host_manager.rb +4 -4
  16. data/lib/beaker/ssh_connection.rb +2 -2
  17. data/lib/beaker/version.rb +1 -1
  18. data/spec/beaker/cli_spec.rb +11 -11
  19. data/spec/beaker/command_spec.rb +10 -10
  20. data/spec/beaker/dsl/helpers/host_helpers_spec.rb +11 -11
  21. data/spec/beaker/dsl/roles_spec.rb +15 -15
  22. data/spec/beaker/dsl/structure_spec.rb +3 -3
  23. data/spec/beaker/host/pswindows/exec_spec.rb +3 -3
  24. data/spec/beaker/host/unix/exec_spec.rb +3 -3
  25. data/spec/beaker/host/unix/file_spec.rb +8 -0
  26. data/spec/beaker/host/unix/pkg_spec.rb +10 -10
  27. data/spec/beaker/host_spec.rb +6 -6
  28. data/spec/beaker/logger_spec.rb +7 -7
  29. data/spec/beaker/options/hosts_file_parser_spec.rb +1 -1
  30. data/spec/beaker/options/parser_spec.rb +40 -40
  31. data/spec/beaker/platform_spec.rb +5 -0
  32. data/spec/beaker/shared/host_manager_spec.rb +1 -1
  33. data/spec/beaker/shared/semvar_spec.rb +1 -1
  34. data/spec/beaker/subcommand/subcommand_util_spec.rb +5 -5
  35. data/spec/beaker/test_suite_spec.rb +12 -12
  36. metadata +5 -5
@@ -27,14 +27,14 @@ module Beaker
27
27
  @files = [rb_test]
28
28
  ts = described_class.new('name', 'hosts', options, Time.now)
29
29
  tfm = ts.instance_variable_get(:@fail_mode)
30
- expect(tfm).to be == :slow
30
+ expect(tfm).to eq :slow
31
31
  end
32
32
 
33
33
  it 'uses provided parameter fail_mode' do
34
34
  @files = [rb_test]
35
35
  ts = described_class.new('name', 'hosts', options, Time.now, :fast)
36
36
  tfm = ts.instance_variable_get(:@fail_mode)
37
- expect(tfm).to be == :fast
37
+ expect(tfm).to eq :fast
38
38
  end
39
39
 
40
40
  it 'uses options fail_mode if fail_mode parameter is not provided' do
@@ -42,7 +42,7 @@ module Beaker
42
42
  options[:fail_mode] = :fast
43
43
  ts = described_class.new('name', 'hosts', options, Time.now)
44
44
  tfm = ts.instance_variable_get(:@fail_mode)
45
- expect(tfm).to be == :fast
45
+ expect(tfm).to eq :fast
46
46
  end
47
47
  end
48
48
 
@@ -135,7 +135,7 @@ module Beaker
135
135
  test_suite_result.add_test_case(testcase1)
136
136
  test_suite_result.add_test_case(testcase2)
137
137
  test_suite_result.add_test_case(testcase3)
138
- expect(test_suite_result.passed_tests).to be == 2
138
+ expect(test_suite_result.passed_tests).to eq 2
139
139
  end
140
140
 
141
141
  it 'calculates failed tests' do
@@ -145,7 +145,7 @@ module Beaker
145
145
  test_suite_result.add_test_case(testcase1)
146
146
  test_suite_result.add_test_case(testcase2)
147
147
  test_suite_result.add_test_case(testcase3)
148
- expect(test_suite_result.failed_tests).to be == 1
148
+ expect(test_suite_result.failed_tests).to eq 1
149
149
  end
150
150
 
151
151
  it 'calculates errored tests' do
@@ -155,7 +155,7 @@ module Beaker
155
155
  test_suite_result.add_test_case(testcase1)
156
156
  test_suite_result.add_test_case(testcase2)
157
157
  test_suite_result.add_test_case(testcase3)
158
- expect(test_suite_result.errored_tests).to be == 1
158
+ expect(test_suite_result.errored_tests).to eq 1
159
159
  end
160
160
 
161
161
  it 'calculates skipped tests' do
@@ -165,7 +165,7 @@ module Beaker
165
165
  test_suite_result.add_test_case(testcase1)
166
166
  test_suite_result.add_test_case(testcase2)
167
167
  test_suite_result.add_test_case(testcase3)
168
- expect(test_suite_result.skipped_tests).to be == 1
168
+ expect(test_suite_result.skipped_tests).to eq 1
169
169
  end
170
170
 
171
171
  it 'calculates pending tests' do
@@ -175,7 +175,7 @@ module Beaker
175
175
  test_suite_result.add_test_case(testcase1)
176
176
  test_suite_result.add_test_case(testcase2)
177
177
  test_suite_result.add_test_case(testcase3)
178
- expect(test_suite_result.pending_tests).to be == 1
178
+ expect(test_suite_result.pending_tests).to eq 1
179
179
  end
180
180
 
181
181
  it 'calculates sum_failed as a sum of errored and failed TestCases' do
@@ -185,7 +185,7 @@ module Beaker
185
185
  test_suite_result.add_test_case(testcase1)
186
186
  test_suite_result.add_test_case(testcase2)
187
187
  test_suite_result.add_test_case(testcase3)
188
- expect(test_suite_result.sum_failed).to be == 2
188
+ expect(test_suite_result.sum_failed).to eq 2
189
189
  end
190
190
 
191
191
  it 'reports success with no errors/failures' do
@@ -195,7 +195,7 @@ module Beaker
195
195
  test_suite_result.add_test_case(testcase1)
196
196
  test_suite_result.add_test_case(testcase2)
197
197
  test_suite_result.add_test_case(testcase3)
198
- expect(test_suite_result.success?).to be == false
198
+ expect(test_suite_result.success?).to eq false
199
199
  end
200
200
 
201
201
  it 'reports failed if any tests error/fail' do
@@ -205,7 +205,7 @@ module Beaker
205
205
  test_suite_result.add_test_case(testcase1)
206
206
  test_suite_result.add_test_case(testcase2)
207
207
  test_suite_result.add_test_case(testcase3)
208
- expect(test_suite_result.failed?).to be == true
208
+ expect(test_suite_result.failed?).to eq true
209
209
  end
210
210
 
211
211
  it 'can calculate the sum of all TestCase runtimes' do
@@ -215,7 +215,7 @@ module Beaker
215
215
  test_suite_result.add_test_case(testcase1)
216
216
  test_suite_result.add_test_case(testcase2)
217
217
  test_suite_result.add_test_case(testcase3)
218
- expect(test_suite_result.elapsed_time).to be == 111
218
+ expect(test_suite_result.elapsed_time).to eq 111
219
219
  end
220
220
 
221
221
  describe '#print_test_result' 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.6.0
4
+ version: 5.8.0
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-23 00:00:00.000000000 Z
11
+ date: 2024-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fakefs
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 2.0.0
61
+ version: 2.6.0
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 2.0.0
68
+ version: 2.6.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: minitar
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -656,7 +656,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
656
656
  - !ruby/object:Gem::Version
657
657
  version: '0'
658
658
  requirements: []
659
- rubygems_version: 3.2.33
659
+ rubygems_version: 3.5.3
660
660
  signing_key:
661
661
  specification_version: 4
662
662
  summary: Let's test Puppet!