cem_acpt 0.9.2 → 0.9.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/cem_acpt/test_runner.rb +6 -5
- data/lib/cem_acpt/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf014af7878da07c60277b7442026f9858d3be6cae4115d234bbdef42e5be423
|
4
|
+
data.tar.gz: 87c1b62d79d341e8c105400687dead9ac47b37f1ce71f1dfd88515f909adb1da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c738c837d50afbf8cab1b689fcd497587f8572517a09129259409c0319b5c0ef1d8fcd6662f7c055933fdc017a8c06871271f588cf3b14d0df5378f58fc14dd7
|
7
|
+
data.tar.gz: 4fa49c1ae47ff43785b5d10b9d0c7f8c12d84d636cef9e839d1056421314e0f74082c65d098fbae171712f2b60b24a6b07f0d4a5fcc8b1aab603e550d86f77d7
|
data/Gemfile.lock
CHANGED
data/lib/cem_acpt/test_runner.rb
CHANGED
@@ -250,8 +250,6 @@ module CemAcpt
|
|
250
250
|
def run_tests
|
251
251
|
logger.info('CemAcpt::TestRunner') { 'Preparing to run tests...' }
|
252
252
|
logger.verbose('CemAcpt::TestRunner') { "Hosts: #{@hosts}" }
|
253
|
-
logger.verbose('CemAcpt::TestRunner') { "Only actions: #{CemAcpt::Actions.only}" }
|
254
|
-
logger.verbose('CemAcpt::TestRunner') { "Except actions: #{CemAcpt::Actions.except}" }
|
255
253
|
@results = CemAcpt::TestRunner::TestResults.new(config, @instance_names_ips)
|
256
254
|
CemAcpt::Actions.execute
|
257
255
|
end
|
@@ -311,14 +309,17 @@ module CemAcpt
|
|
311
309
|
logger.info('CemAcpt::TestRunner') { "Processing #{@results.size} test result(s)..." }
|
312
310
|
until @results.empty?
|
313
311
|
result = @results.pop
|
312
|
+
res_status = result.status
|
313
|
+
if @exit_code.zero? && !SUCCESS_STATUS.include?(res_status.to_i)
|
314
|
+
logger.debug('CemAcpt::TestRunner') { "Setting exit code to 1 because of result: #{result}" }
|
315
|
+
@exit_code = 1
|
316
|
+
end
|
314
317
|
@statuses << result.status
|
315
318
|
log_test_result(result)
|
316
319
|
end
|
317
320
|
if @statuses.empty?
|
318
321
|
logger.error('CemAcpt::TestRunner') { 'No test results to process' }
|
319
322
|
@exit_code = 1
|
320
|
-
else
|
321
|
-
@exit_code = (@statuses.any? { |s| SUCCESS_STATUS.include?(s.to_i) }) ? 1 : 0
|
322
323
|
end
|
323
324
|
end
|
324
325
|
@duration = Time.now - @start_time
|
@@ -353,7 +354,7 @@ module CemAcpt
|
|
353
354
|
end
|
354
355
|
|
355
356
|
def log_error_test_result(result)
|
356
|
-
logger.
|
357
|
+
logger.error { result.log_formatter.results.join("\n") }
|
357
358
|
end
|
358
359
|
|
359
360
|
# Upload the cem_windows module to the bucket if we're testing the cem_windows module
|
data/lib/cem_acpt/version.rb
CHANGED
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.9.
|
4
|
+
version: 0.9.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- puppetlabs
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-03-
|
11
|
+
date: 2024-03-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async-http
|