beaker 5.5.0 → 5.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +14 -14
- data/.github/workflows/release.yml +1 -1
- data/.github/workflows/test.yml +2 -2
- data/.rubocop_todo.yml +51 -5
- data/CHANGELOG.md +17 -0
- data/acceptance/tests/base/dsl/helpers/host_helpers/on_test.rb +1 -1
- data/acceptance/tests/base/dsl/platform_tag_confiner_test.rb +2 -2
- data/beaker.gemspec +1 -1
- data/lib/beaker/cli.rb +3 -3
- data/lib/beaker/host/unix/pkg.rb +4 -4
- data/lib/beaker/host.rb +1 -5
- data/lib/beaker/options/hosts_file_parser.rb +1 -0
- data/lib/beaker/platform.rb +3 -4
- data/lib/beaker/shared/host_manager.rb +4 -4
- data/lib/beaker/ssh_connection.rb +2 -2
- data/lib/beaker/version.rb +1 -1
- data/spec/beaker/cli_spec.rb +11 -11
- data/spec/beaker/command_spec.rb +10 -10
- data/spec/beaker/dsl/helpers/host_helpers_spec.rb +11 -11
- data/spec/beaker/dsl/roles_spec.rb +15 -15
- data/spec/beaker/dsl/structure_spec.rb +3 -3
- data/spec/beaker/host/pswindows/exec_spec.rb +3 -3
- data/spec/beaker/host/unix/exec_spec.rb +3 -3
- data/spec/beaker/host/unix/pkg_spec.rb +20 -44
- data/spec/beaker/host_spec.rb +6 -6
- data/spec/beaker/logger_spec.rb +7 -7
- data/spec/beaker/options/hosts_file_parser_spec.rb +1 -1
- data/spec/beaker/options/parser_spec.rb +40 -40
- data/spec/beaker/platform_spec.rb +5 -0
- data/spec/beaker/shared/host_manager_spec.rb +1 -1
- data/spec/beaker/shared/semvar_spec.rb +1 -1
- data/spec/beaker/subcommand/subcommand_util_spec.rb +5 -5
- data/spec/beaker/test_suite_spec.rb +12 -12
- metadata +4 -4
@@ -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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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.
|
4
|
+
version: 5.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Puppet
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-02-13 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:
|
61
|
+
version: 2.4.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:
|
68
|
+
version: 2.4.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: minitar
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|