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 +4 -4
- data/.kitchen.yml +2 -2
- data/CHANGELOG.md +13 -2
- data/lib/kitchen/provisioner/finder/winrm.rb +2 -3
- data/lib/kitchen/provisioner/nodes_version.rb +1 -1
- data/spec/unit/nodes_spec.rb +6 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 54654e6ef13d51b4fb5c0a1eba7cb0ca31e2db79
|
4
|
+
data.tar.gz: a9038459803b73ecd7d3b2bb69b15bee48641d63
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6102820beee2980d31638a7d7971462fb577a5d4125d2c3194696592cfba4a8157855890676c71e6bef6ee2035c0d546e45e9b0901fa438235e7ee48f1ded6f
|
7
|
+
data.tar.gz: c4defca0b24df6fa477017ad1475c41c795da538b6a31597ef1c5fe5e6fa5905b6b68eae32deb7e95d94c1e110ce2d6beb6f42bc2c175ced3225b595b136f74f
|
data/.kitchen.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,18 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
-
## [0.9.
|
4
|
-
[Full Changelog](https://github.com/mwrock/kitchen-nodes/compare/v0.
|
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
|
30
|
-
|
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
|
data/spec/unit/nodes_spec.rb
CHANGED
@@ -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 =
|
160
|
-
data
|
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
|
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.
|
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-
|
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.
|
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
|