cem_acpt 0.9.1 → 0.9.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3f23a68eeaf8f9808ef643676c3dd16fff63d85abc3ab76eb4c56c256d57becd
4
- data.tar.gz: f3ab49fb629f2ad92ce8c2a0f5ee70eca7112e9741c249b7c00f965782d52188
3
+ metadata.gz: cf014af7878da07c60277b7442026f9858d3be6cae4115d234bbdef42e5be423
4
+ data.tar.gz: 87c1b62d79d341e8c105400687dead9ac47b37f1ce71f1dfd88515f909adb1da
5
5
  SHA512:
6
- metadata.gz: 3abf23773f33488b95ec4c5eeffa94118dcb5e84baebcd05a0c9a290cb67812860e1eb151c5dc159f3037d07844109b69b53ef1a20313146ef2a5f4ed4105cf8
7
- data.tar.gz: b39069af4bc18eb05472c80497344f1a1e568bbf3b1160d4cf276c5f767ef9a23ecc75edabc11b3e6632daccaf9e4a2d18fd31d82c753c4baf6be6c2df0de77d
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.1)
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)
@@ -197,7 +197,7 @@ module CemAcpt
197
197
  @bolt_test_runner.setup!
198
198
  return unless @bolt_test_runner.tests.to_a.empty?
199
199
 
200
- if !only_actions.empty? && only_actions.include?('bolt')
200
+ if !CemAcpt::Actions.config.only.empty? && CemAcpt::Actions.config.only.include?('bolt')
201
201
  raise 'No Bolt tests to run and only bolt action was specified'
202
202
  end
203
203
 
@@ -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.1'
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.1
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-02-28 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