cem_acpt 0.9.2 → 0.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 95508415e2d43c47c4bbd08963e688133e693c395ed646c8d9d6e62f3cab04af
4
- data.tar.gz: 9b4618f3f1a544e35f00b88ff28efd755637db91d7e042c1e526e5720e6ecec2
3
+ metadata.gz: cf014af7878da07c60277b7442026f9858d3be6cae4115d234bbdef42e5be423
4
+ data.tar.gz: 87c1b62d79d341e8c105400687dead9ac47b37f1ce71f1dfd88515f909adb1da
5
5
  SHA512:
6
- metadata.gz: 9ea28e2bb50d55cc24b96235360498cd0b76104bf48586bb9432e2d3b4e614b5d5e7a516b5587a77ff514629db897cc988e4cf4a084eb56d314b54a24d954661
7
- data.tar.gz: e95003005da232f68c058ca492e30bf4eb5f4539772494e6e733da2ecad26e740b1d560bc46ef3dc3916ffbd9449a2b0e02636d5d9554613ee7cee6c317820e7
6
+ metadata.gz: c738c837d50afbf8cab1b689fcd497587f8572517a09129259409c0319b5c0ef1d8fcd6662f7c055933fdc017a8c06871271f588cf3b14d0df5378f58fc14dd7
7
+ data.tar.gz: 4fa49c1ae47ff43785b5d10b9d0c7f8c12d84d636cef9e839d1056421314e0f74082c65d098fbae171712f2b60b24a6b07f0d4a5fcc8b1aab603e550d86f77d7
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cem_acpt (0.9.2)
4
+ cem_acpt (0.9.3)
5
5
  async-http (>= 0.60, < 0.70)
6
6
  bcrypt_pbkdf (>= 1.0, < 2.0)
7
7
  deep_merge (>= 1.2, < 2.0)
@@ -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.fatal { result.log_formatter.results.join("\n") }
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CemAcpt
4
- VERSION = '0.9.2'
4
+ VERSION = '0.9.3'
5
5
  end
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.2
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-05 00:00:00.000000000 Z
11
+ date: 2024-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async-http