sambot 0.1.142 → 0.1.143

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
  SHA1:
3
- metadata.gz: fd0709e69b3936d24496af3d9c68c13fa5c2cb64
4
- data.tar.gz: ef6063d88181250079459e558a9a56cdfc4c4a51
3
+ metadata.gz: 6e3aa4f0ea76eb8b6060e2147078c14e653df59c
4
+ data.tar.gz: 3f1de1803592a03fa8368c88b14d184cab4064ff
5
5
  SHA512:
6
- metadata.gz: 9b1e6d45d9d6f55e065c57e6ce66df9a939f518f3f63689dc18f1cb09f6c40ae967d9e4079ec88cf32b2668d5f0985ae53016bc3fa779d218b4a01ff7fa16dff
7
- data.tar.gz: ff85ba55a01eb71edef9dd41fcd5e2b733f242facf27d9196749b9badc7235ab8123b656de05715560a5a67072e640c26c39034be5adab612b5083af56e16bc8
6
+ metadata.gz: e462d21817e5c8cd06c4a80fb9834cf895c064b4ae55a43552bb4b545fd1620ee5b1cb3ffe251fbd070f355453b75379bd095f44c93d33b7555de7fd421c2b79
7
+ data.tar.gz: d67e4515c2fa6e49d65abb4b9efb3edd3d23b0e283f6bf627235458de95b11fa488449f32fad99235721ba8c093a5270d796929ff52c0b936c7c58ef8300dd46
@@ -47,7 +47,7 @@ module Sambot
47
47
 
48
48
  def add_platform_identifier(value, platform)
49
49
  value['suites'].each do |config|
50
- params = config # handle_custom_suites(config, platform)
50
+ params = handle_custom_suites(config, platform)
51
51
  params['attributes'] = params['attributes'] || {}
52
52
  params['attributes']['cloud_platform'] = platform
53
53
  params['attributes']['vault'] = params['attributes']['vault'] || {}
@@ -55,12 +55,10 @@ module Sambot
55
55
  end
56
56
  end
57
57
 
58
- def handle_custom_suites(config, platform)
59
- if config.is_a?(Hash) && config['local'] && config['dev']
60
- platform == 'LOCAL' ? config['local'] : config['dev']
61
- else
62
- config
63
- end
58
+ def handle_customized_runlists(config, platform)
59
+ runlist = config['runlist']
60
+ return runlist if runlist.is_a?(Array)
61
+ platform == 'LOCAL' ? runlist['local'] : runlist['dev']
64
62
  end
65
63
 
66
64
  def read_template(template, cookbook_name, platforms)
@@ -18,7 +18,9 @@ set +e
18
18
  chef exec kitchen verify <%= ENV['TEST_KITCHEN_PLATFORM'] || '' %> -l <%= ENV['TEST_KITCHEN_LOG_LEVEL'] || 'info' %>
19
19
  chef exec kitchen destroy <%= ENV['TEST_KITCHEN_PLATFORM'] || '' %> -l <%= ENV['TEST_KITCHEN_LOG_LEVEL'] || 'info' %>
20
20
  <% else %>
21
- <% unless ENV['SKIP_TESTING_AS_EMERGENCY'] %>
21
+ <% unless ENV['SKIP_TESTING_AS_EMERGENCY'] %>
22
+ chef exec kitchen create <%= ENV['TEST_KITCHEN_PLATFORM'] || '' %> -l <%= ENV['TEST_KITCHEN_LOG_LEVEL'] || 'info' %>
23
+ sleep 60
22
24
  chef exec kitchen test <%= ENV['TEST_KITCHEN_PLATFORM'] || '' %> -l <%= ENV['TEST_KITCHEN_LOG_LEVEL'] || 'info' %>
23
25
  RETVAL=$?
24
26
  if [ $RETVAL -eq 0 ] ; then
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Sambot
4
- VERSION = '0.1.142'.freeze
4
+ VERSION = '0.1.143'.freeze
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sambot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.142
4
+ version: 0.1.143
5
5
  platform: ruby
6
6
  authors:
7
7
  - Olivier Kouame