cem_acpt 0.8.8 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/spec.yml +0 -3
- data/Gemfile.lock +9 -1
- data/README.md +95 -13
- data/cem_acpt.gemspec +2 -1
- data/lib/cem_acpt/action_result.rb +8 -2
- data/lib/cem_acpt/actions.rb +153 -0
- data/lib/cem_acpt/bolt/cmd/base.rb +174 -0
- data/lib/cem_acpt/bolt/cmd/output.rb +315 -0
- data/lib/cem_acpt/bolt/cmd/task.rb +59 -0
- data/lib/cem_acpt/bolt/cmd.rb +22 -0
- data/lib/cem_acpt/bolt/errors.rb +49 -0
- data/lib/cem_acpt/bolt/helpers.rb +52 -0
- data/lib/cem_acpt/bolt/inventory.rb +62 -0
- data/lib/cem_acpt/bolt/project.rb +38 -0
- data/lib/cem_acpt/bolt/summary_results.rb +96 -0
- data/lib/cem_acpt/bolt/tasks.rb +181 -0
- data/lib/cem_acpt/bolt/tests.rb +415 -0
- data/lib/cem_acpt/bolt/yaml_file.rb +74 -0
- data/lib/cem_acpt/bolt.rb +142 -0
- data/lib/cem_acpt/cli.rb +6 -0
- data/lib/cem_acpt/config/base.rb +4 -0
- data/lib/cem_acpt/config/cem_acpt.rb +7 -1
- data/lib/cem_acpt/core_ext.rb +25 -0
- data/lib/cem_acpt/goss/api/action_response.rb +4 -0
- data/lib/cem_acpt/goss/api.rb +23 -25
- data/lib/cem_acpt/image_builder/provision_commands.rb +43 -0
- data/lib/cem_acpt/logging/formatter.rb +3 -3
- data/lib/cem_acpt/logging.rb +17 -1
- data/lib/cem_acpt/provision/terraform/linux.rb +2 -2
- data/lib/cem_acpt/test_data.rb +2 -0
- data/lib/cem_acpt/test_runner/log_formatter/base.rb +73 -0
- data/lib/cem_acpt/test_runner/log_formatter/bolt_error_formatter.rb +65 -0
- data/lib/cem_acpt/test_runner/log_formatter/bolt_output_formatter.rb +54 -0
- data/lib/cem_acpt/test_runner/log_formatter/bolt_summary_results_formatter.rb +64 -0
- data/lib/cem_acpt/test_runner/log_formatter/goss_action_response.rb +17 -30
- data/lib/cem_acpt/test_runner/log_formatter/goss_error_formatter.rb +31 -0
- data/lib/cem_acpt/test_runner/log_formatter/standard_error_formatter.rb +35 -0
- data/lib/cem_acpt/test_runner/log_formatter.rb +17 -5
- data/lib/cem_acpt/test_runner/test_results.rb +150 -0
- data/lib/cem_acpt/test_runner.rb +153 -53
- data/lib/cem_acpt/utils/files.rb +189 -0
- data/lib/cem_acpt/utils/finalizer_queue.rb +73 -0
- data/lib/cem_acpt/utils/shell.rb +13 -4
- data/lib/cem_acpt/version.rb +1 -1
- data/sample_config.yaml +13 -0
- metadata +41 -5
- data/lib/cem_acpt/test_runner/log_formatter/error_formatter.rb +0 -33
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cem_acpt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- puppetlabs
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-02-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async-http
|
@@ -180,6 +180,20 @@ dependencies:
|
|
180
180
|
- - ">="
|
181
181
|
- !ruby/object:Gem::Version
|
182
182
|
version: '0'
|
183
|
+
- !ruby/object:Gem::Dependency
|
184
|
+
name: simplecov
|
185
|
+
requirement: !ruby/object:Gem::Requirement
|
186
|
+
requirements:
|
187
|
+
- - ">="
|
188
|
+
- !ruby/object:Gem::Version
|
189
|
+
version: '0'
|
190
|
+
type: :development
|
191
|
+
prerelease: false
|
192
|
+
version_requirements: !ruby/object:Gem::Requirement
|
193
|
+
requirements:
|
194
|
+
- - ">="
|
195
|
+
- !ruby/object:Gem::Version
|
196
|
+
version: '0'
|
183
197
|
description: Litmus-like library focusing on CEM Acceptance Tests
|
184
198
|
email:
|
185
199
|
- abide-team@puppet.com
|
@@ -205,6 +219,20 @@ files:
|
|
205
219
|
- exe/cem_acpt_image
|
206
220
|
- lib/cem_acpt.rb
|
207
221
|
- lib/cem_acpt/action_result.rb
|
222
|
+
- lib/cem_acpt/actions.rb
|
223
|
+
- lib/cem_acpt/bolt.rb
|
224
|
+
- lib/cem_acpt/bolt/cmd.rb
|
225
|
+
- lib/cem_acpt/bolt/cmd/base.rb
|
226
|
+
- lib/cem_acpt/bolt/cmd/output.rb
|
227
|
+
- lib/cem_acpt/bolt/cmd/task.rb
|
228
|
+
- lib/cem_acpt/bolt/errors.rb
|
229
|
+
- lib/cem_acpt/bolt/helpers.rb
|
230
|
+
- lib/cem_acpt/bolt/inventory.rb
|
231
|
+
- lib/cem_acpt/bolt/project.rb
|
232
|
+
- lib/cem_acpt/bolt/summary_results.rb
|
233
|
+
- lib/cem_acpt/bolt/tasks.rb
|
234
|
+
- lib/cem_acpt/bolt/tests.rb
|
235
|
+
- lib/cem_acpt/bolt/yaml_file.rb
|
208
236
|
- lib/cem_acpt/cli.rb
|
209
237
|
- lib/cem_acpt/config.rb
|
210
238
|
- lib/cem_acpt/config/base.rb
|
@@ -233,9 +261,17 @@ files:
|
|
233
261
|
- lib/cem_acpt/test_data.rb
|
234
262
|
- lib/cem_acpt/test_runner.rb
|
235
263
|
- lib/cem_acpt/test_runner/log_formatter.rb
|
236
|
-
- lib/cem_acpt/test_runner/log_formatter/
|
264
|
+
- lib/cem_acpt/test_runner/log_formatter/base.rb
|
265
|
+
- lib/cem_acpt/test_runner/log_formatter/bolt_error_formatter.rb
|
266
|
+
- lib/cem_acpt/test_runner/log_formatter/bolt_output_formatter.rb
|
267
|
+
- lib/cem_acpt/test_runner/log_formatter/bolt_summary_results_formatter.rb
|
237
268
|
- lib/cem_acpt/test_runner/log_formatter/goss_action_response.rb
|
269
|
+
- lib/cem_acpt/test_runner/log_formatter/goss_error_formatter.rb
|
270
|
+
- lib/cem_acpt/test_runner/log_formatter/standard_error_formatter.rb
|
271
|
+
- lib/cem_acpt/test_runner/test_results.rb
|
238
272
|
- lib/cem_acpt/utils.rb
|
273
|
+
- lib/cem_acpt/utils/files.rb
|
274
|
+
- lib/cem_acpt/utils/finalizer_queue.rb
|
239
275
|
- lib/cem_acpt/utils/puppet.rb
|
240
276
|
- lib/cem_acpt/utils/shell.rb
|
241
277
|
- lib/cem_acpt/utils/ssh.rb
|
@@ -270,14 +306,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
270
306
|
requirements:
|
271
307
|
- - ">="
|
272
308
|
- !ruby/object:Gem::Version
|
273
|
-
version:
|
309
|
+
version: 3.0.0
|
274
310
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
275
311
|
requirements:
|
276
312
|
- - ">="
|
277
313
|
- !ruby/object:Gem::Version
|
278
314
|
version: '0'
|
279
315
|
requirements: []
|
280
|
-
rubygems_version: 3.4.
|
316
|
+
rubygems_version: 3.4.22
|
281
317
|
signing_key:
|
282
318
|
specification_version: 4
|
283
319
|
summary: CEM Acceptance Tests
|
@@ -1,33 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module CemAcpt
|
4
|
-
module TestRunner
|
5
|
-
module LogFormatter
|
6
|
-
class ErrorFormatter
|
7
|
-
def inspect
|
8
|
-
to_s
|
9
|
-
end
|
10
|
-
|
11
|
-
def to_s
|
12
|
-
"#<#{self.class.name}:0x#{object_id.to_s(16)}>"
|
13
|
-
end
|
14
|
-
|
15
|
-
def summary(response)
|
16
|
-
"Error: #{response.summary}"
|
17
|
-
end
|
18
|
-
|
19
|
-
def results(response)
|
20
|
-
[response.summary, response.results.join("\n")]
|
21
|
-
end
|
22
|
-
|
23
|
-
def host_name(response)
|
24
|
-
"Error: #{response.error.class.name}"
|
25
|
-
end
|
26
|
-
|
27
|
-
def test_name(response)
|
28
|
-
"Error: #{response.error.class.name}"
|
29
|
-
end
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|