test-kitchen 1.10.0 → 1.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/bin/kitchen +0 -0
- data/lib/kitchen/transport/winrm.rb +2 -0
- data/lib/kitchen/version.rb +1 -1
- data/spec/kitchen/transport/winrm_spec.rb +33 -11
- data/support/chef-client-zero.rb +0 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5af4bbafc780efba4aec917fad13a508bcbddc5d
|
4
|
+
data.tar.gz: e05ef8bed56a20639859d3193f1ff280d1cfef21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a5478128d4a8336a64d6035527a7627910071750510aed0e654fa5a573af1003200edb6c669c8cbf627908ec4c7f658f8f233283405225759582f4e7947b337
|
7
|
+
data.tar.gz: a960a552aaf0bb7bc1250ac0bf238d62eb7906b28109aa19164a1b3ae06bd9223dfaf0f86740b0a305ce1a88155f8bda0a26361b29afd528a756038fcb3e2244
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## [v1.10.1](https://github.com/test-kitchen/test-kitchen/tree/v1.10.1) (2016-06-23)
|
4
|
+
[Full Changelog](https://github.com/test-kitchen/test-kitchen/compare/v1.10.0...v1.10.1)
|
5
|
+
|
6
|
+
**Fixed bugs:**
|
7
|
+
|
8
|
+
- Reboot resource with new 'reboot and try again' feature [\#1062](https://github.com/test-kitchen/test-kitchen/issues/1062)
|
9
|
+
- Fix WinRM Upload Failures After Reboot [\#1064](https://github.com/test-kitchen/test-kitchen/pull/1064) ([smurawski](https://github.com/smurawski))
|
10
|
+
|
3
11
|
## [v1.10.0](https://github.com/test-kitchen/test-kitchen/tree/v1.10.0) (2016-06-16)
|
4
12
|
[Full Changelog](https://github.com/test-kitchen/test-kitchen/compare/v1.9.2...v1.10.0)
|
5
13
|
|
data/bin/kitchen
CHANGED
File without changes
|
data/lib/kitchen/version.rb
CHANGED
@@ -652,6 +652,18 @@ describe Kitchen::Transport::Winrm::Connection do
|
|
652
652
|
s
|
653
653
|
end
|
654
654
|
|
655
|
+
let(:transporter) do
|
656
|
+
t = mock("file_transporter")
|
657
|
+
t.responds_like_instance_of(WinRM::FS::Core::FileTransporter)
|
658
|
+
t
|
659
|
+
end
|
660
|
+
|
661
|
+
let(:elevated_runner) do
|
662
|
+
r = mock("elevated_runner")
|
663
|
+
r.responds_like_instance_of(WinRM::Elevated::Runner)
|
664
|
+
r
|
665
|
+
end
|
666
|
+
|
655
667
|
let(:connection) do
|
656
668
|
Kitchen::Transport::Winrm::Connection.new(options)
|
657
669
|
end
|
@@ -673,6 +685,8 @@ describe Kitchen::Transport::Winrm::Connection do
|
|
673
685
|
|
674
686
|
before do
|
675
687
|
winrm_session.stubs(:create_executor).returns(executor)
|
688
|
+
transporter.stubs(:upload)
|
689
|
+
elevated_runner.stubs(:powershell_elevated).returns(response)
|
676
690
|
executor.stubs(:close)
|
677
691
|
executor.stubs(:run_powershell_script).
|
678
692
|
with("doit").yields("ok\n", nil).returns(response)
|
@@ -686,6 +700,25 @@ describe Kitchen::Transport::Winrm::Connection do
|
|
686
700
|
connection.close
|
687
701
|
connection.close
|
688
702
|
end
|
703
|
+
|
704
|
+
it "clears the file_transporter executor" do
|
705
|
+
WinRM::FS::Core::FileTransporter.expects(:new).returns(transporter).twice
|
706
|
+
|
707
|
+
connection.upload("local", "remote")
|
708
|
+
connection.close
|
709
|
+
connection.upload("local", "remote")
|
710
|
+
end
|
711
|
+
|
712
|
+
it "clears the elevated_runner executor" do
|
713
|
+
options[:elevated] = true
|
714
|
+
options[:elevated_username] = options[:user]
|
715
|
+
options[:elevated_password] = options[:pass]
|
716
|
+
WinRM::Elevated::Runner.expects(:new).returns(elevated_runner).twice
|
717
|
+
|
718
|
+
connection.execute("doit")
|
719
|
+
connection.close
|
720
|
+
connection.execute("doit")
|
721
|
+
end
|
689
722
|
end
|
690
723
|
|
691
724
|
describe "#execute" do
|
@@ -757,11 +790,6 @@ describe Kitchen::Transport::Winrm::Connection do
|
|
757
790
|
])
|
758
791
|
o
|
759
792
|
end
|
760
|
-
let(:elevated_runner) do
|
761
|
-
r = mock("elevated_runner")
|
762
|
-
r.responds_like_instance_of(WinRM::Elevated::Runner)
|
763
|
-
r
|
764
|
-
end
|
765
793
|
|
766
794
|
before do
|
767
795
|
options[:elevated] = true
|
@@ -1154,12 +1182,6 @@ MSG
|
|
1154
1182
|
|
1155
1183
|
describe "#upload" do
|
1156
1184
|
|
1157
|
-
let(:transporter) do
|
1158
|
-
t = mock("file_transporter")
|
1159
|
-
t.responds_like_instance_of(WinRM::FS::Core::FileTransporter)
|
1160
|
-
t
|
1161
|
-
end
|
1162
|
-
|
1163
1185
|
before do
|
1164
1186
|
winrm_session.stubs(:create_executor).returns(executor)
|
1165
1187
|
|
data/support/chef-client-zero.rb
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: test-kitchen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.10.
|
4
|
+
version: 1.10.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fletcher Nichol
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-06-
|
11
|
+
date: 2016-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mixlib-shellout
|