beaker-testmode_switcher 0.4.0 → 0.4.1

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
- SHA1:
3
- metadata.gz: ec3225e801b5af3ffb139c419e33d48567da102e
4
- data.tar.gz: 0fcf5b39a4f30a8082a2c96c7aabf57b13fdb84a
2
+ SHA256:
3
+ metadata.gz: bcaed835292641c09d1f3199750be2134e11c6455e3993ec137852b4711aa3bd
4
+ data.tar.gz: e445852657daac0ae2361c2c3170389577248eeaa1377b7778a60e56f297274f
5
5
  SHA512:
6
- metadata.gz: 583f09db223c94c6071b262bdb4898bb9e06ef7fe03ecea1fd77e416014cb32e369cf2fb436dbb603a8ff531796ec528036f87857e79052f290e82ed61924139
7
- data.tar.gz: 60d24646077a43f5a1407d71ef8836d6a8811af011326850b69fcb5abea31f72037dd76b3fe3e410604fd63e63136bb51cadf35323664110f7ea5170867dea56
6
+ metadata.gz: aa23f45aa8e8613987ed742d0f0c04907ed0c1b52ca3aee70e0cd8810825da16e0f50a4af8a6398462634064bd1a955c325eabe3342bcf7ada9621c731895c5f
7
+ data.tar.gz: 306b2671fa187953e335040d8caaaa22675cbf58476268634a2c26baea4fb86935ce7d1a3213ea406efea7b93404791e263b26b8a9693d325abee1d6b5d4d25c
@@ -1,3 +1,10 @@
1
+ # 2018-17-07 Version 0.4.1
2
+ #### Summary
3
+ This release corrects a bug that doesn't return results correctly when multiple hosts are specified.
4
+
5
+ ### BugFixes
6
+ - execute_manifest_on doesn't return results correctly when multiple hosts are specified.
7
+
1
8
  # 2018-03-07 Version 0.4.0
2
9
  ### Summary
3
10
  Adds the ability for execute_manifest_on to work in both agent and apply; improvements for create_remote_file_ex.
@@ -1,4 +1,4 @@
1
- lib = File.expand_path('../lib', __FILE__)
1
+ lib = File.expand_path('lib', __dir__)
2
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
  require 'beaker/testmode_switcher/version'
4
4
 
@@ -96,7 +96,13 @@ module Beaker
96
96
  environment: opts[:environment] || {},
97
97
  acceptable_exit_codes: (0...256))
98
98
 
99
- handle_puppet_run_returned_exit_code(get_acceptable_puppet_run_exit_codes(opts), res.exit_code)
99
+ if res.is_a? Array
100
+ res.each do |result|
101
+ handle_puppet_run_returned_exit_code(get_acceptable_puppet_run_exit_codes(opts), result.exit_code)
102
+ end
103
+ else
104
+ handle_puppet_run_returned_exit_code(get_acceptable_puppet_run_exit_codes(opts), res.exit_code)
105
+ end
100
106
  res
101
107
  end
102
108
  end
@@ -124,7 +130,13 @@ module Beaker
124
130
  expect_failures: true,
125
131
  acceptable_exit_codes: (0...256))
126
132
 
127
- handle_puppet_run_returned_exit_code(get_acceptable_puppet_run_exit_codes(opts), res.exit_code)
133
+ if res.is_a? Array
134
+ res.each do |result|
135
+ handle_puppet_run_returned_exit_code(get_acceptable_puppet_run_exit_codes(opts), result.exit_code)
136
+ end
137
+ else
138
+ handle_puppet_run_returned_exit_code(get_acceptable_puppet_run_exit_codes(opts), res.exit_code)
139
+ end
128
140
  res
129
141
  end
130
142
  end
@@ -17,4 +17,4 @@ module Beaker
17
17
  end
18
18
  end
19
19
 
20
- include Beaker::TestmodeSwitcher::DSL
20
+ include Beaker::TestmodeSwitcher::DSL # rubocop:disable Style/MixinUsage This usage is expected
@@ -1,6 +1,6 @@
1
1
  module Beaker
2
2
  # central definition of this gem's version
3
3
  module TestmodeSwitcher
4
- VERSION = "0.4.0".freeze
4
+ VERSION = "0.4.1".freeze
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beaker-testmode_switcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet Labs
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: exe
14
14
  cert_chain: []
15
- date: 2018-03-08 00:00:00.000000000 Z
15
+ date: 2018-07-17 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: beaker
@@ -88,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
88
88
  version: '0'
89
89
  requirements: []
90
90
  rubyforge_project:
91
- rubygems_version: 2.6.11
91
+ rubygems_version: 2.7.6
92
92
  signing_key:
93
93
  specification_version: 4
94
94
  summary: Let's you run your puppet module tests in master/agent, apply or local mode.