kitchen-nodes 0.9.0 → 0.9.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
2
  SHA1:
3
- metadata.gz: 0d6c87f451e7a0e4674ca1e50c60f72c763abf7f
4
- data.tar.gz: e4c8af60fdbded114da28eb3ada964c18cb47324
3
+ metadata.gz: 54654e6ef13d51b4fb5c0a1eba7cb0ca31e2db79
4
+ data.tar.gz: a9038459803b73ecd7d3b2bb69b15bee48641d63
5
5
  SHA512:
6
- metadata.gz: be0b287d79d8fb054afc4f17cd66e70732c8c91f192afe2309f8822b5e70e7672f388f1691ba3919c9833ae0ceba75f1028fc64beae9242e11827d942ec01dff
7
- data.tar.gz: 7387603d4f782ef646dee59b78f9d56e0b1924cbab8b833067f027f1a0f8ca495e4a8ac6a532f5b6cbb983c80ca4ae822bb938390366dcb9c84bc8a235dcbb1b
6
+ metadata.gz: a6102820beee2980d31638a7d7971462fb577a5d4125d2c3194696592cfba4a8157855890676c71e6bef6ee2035c0d546e45e9b0901fa438235e7ee48f1ded6f
7
+ data.tar.gz: c4defca0b24df6fa477017ad1475c41c795da538b6a31597ef1c5fe5e6fa5905b6b68eae32deb7e95d94c1e110ce2d6beb6f42bc2c175ced3225b595b136f74f
@@ -15,10 +15,10 @@ platforms:
15
15
  driver_config:
16
16
  box: hashicorp/precise64
17
17
 
18
- - name: windows-2012R2
18
+ - name: windows-2016
19
19
  driver_config:
20
20
  gui: true
21
- box: mwrock/Windows2012R2
21
+ box: mwrock/Windows2016
22
22
 
23
23
  - name: windows-2008R2
24
24
  driver_config:
@@ -1,7 +1,18 @@
1
1
  # Change Log
2
2
 
3
- ## [0.9.0](https://github.com/mwrock/kitchen-nodes/tree/0.9.0) (2017-01-12)
4
- [Full Changelog](https://github.com/mwrock/kitchen-nodes/compare/v0.8.0...0.9.0)
3
+ ## [0.9.1](https://github.com/mwrock/kitchen-nodes/tree/0.9.1) (2017-03-19)
4
+ [Full Changelog](https://github.com/mwrock/kitchen-nodes/compare/v0.9.0...0.9.1)
5
+
6
+ **Closed issues:**
7
+
8
+ - Failed to complete \#converge action: \[undefined method `\[\]' for \#\<WinRM::Output:0x4adaab8\>\] [\#32](https://github.com/mwrock/kitchen-nodes/issues/32)
9
+
10
+ **Merged pull requests:**
11
+
12
+ - Fix winrm [\#33](https://github.com/mwrock/kitchen-nodes/pull/33) ([mwrock](https://github.com/mwrock))
13
+
14
+ ## [v0.9.0](https://github.com/mwrock/kitchen-nodes/tree/v0.9.0) (2017-01-13)
15
+ [Full Changelog](https://github.com/mwrock/kitchen-nodes/compare/v0.8.0...v0.9.0)
5
16
 
6
17
  **Closed issues:**
7
18
 
@@ -26,9 +26,8 @@ module Kitchen
26
26
  '(ipconfig) -match \'IPv[46] Address\''
27
27
  )
28
28
  data = []
29
- out[:data].each do |out_data|
30
- stdout = out_data[:stdout]
31
- data << Regexp.last_match[1] if stdout.chomp =~ /:\s*(\S+)/
29
+ out.stdout.lines.each do |line|
30
+ data << Regexp.last_match[1] if line.chomp =~ /:\s*(\S+)/
32
31
  end
33
32
  data
34
33
  end
@@ -19,6 +19,6 @@
19
19
  module Kitchen
20
20
  # Version string for Nodes Kitchen driver
21
21
  module Provisioner
22
- NODES_VERSION = '0.9.0'.freeze
22
+ NODES_VERSION = '0.9.1'.freeze
23
23
  end
24
24
  end
@@ -6,7 +6,9 @@ require 'kitchen/provisioner/nodes'
6
6
  require 'kitchen/transport/dummy'
7
7
  require 'kitchen/transport/winrm'
8
8
  require 'kitchen/transport/ssh'
9
+ require 'winrm'
9
10
 
11
+ # rubocop:disable Metrics/BlockLength
10
12
  describe Kitchen::Provisioner::Nodes do
11
13
  let(:config) do
12
14
  {
@@ -156,10 +158,11 @@ describe Kitchen::Provisioner::Nodes do
156
158
  let(:transport) { Kitchen::Transport::Winrm.new }
157
159
 
158
160
  before do
159
- data = machine_ips.map { |ip| { stdout: "IPv4 Address .: #{ip}\r\n" } }
160
- data = data.insert(0, stdout: "\r\n")
161
+ data = WinRM::Output.new
162
+ data << { stdout: "\r\n" }
163
+ machine_ips.map { |ip| data << { stdout: "IPv4 Address .: #{ip}\r\n" } }
161
164
  allow_any_instance_of(Kitchen::Transport::Base::Connection).to(
162
- receive(:node_execute).and_return(data: data)
165
+ receive(:node_execute).and_return(data)
163
166
  )
164
167
  allow(platform).to receive(:name).and_return('windows')
165
168
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-nodes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Wrock
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-13 00:00:00.000000000 Z
11
+ date: 2017-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-ping
@@ -200,7 +200,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
200
200
  version: '0'
201
201
  requirements: []
202
202
  rubyforge_project:
203
- rubygems_version: 2.6.6
203
+ rubygems_version: 2.6.8
204
204
  signing_key:
205
205
  specification_version: 4
206
206
  summary: A Test Kitchen Provisioner for Chef Nodes