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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0bc5575233f5ed2155fa31c3bb7465a277263d51
4
- data.tar.gz: 52412155a99cc874b7cb7c9293117ea22d900945
3
+ metadata.gz: 5af4bbafc780efba4aec917fad13a508bcbddc5d
4
+ data.tar.gz: e05ef8bed56a20639859d3193f1ff280d1cfef21
5
5
  SHA512:
6
- metadata.gz: d096151c56581d3aeb407c30dfb42f2fd419c608d1f29ddc623bc3e62c025c03b988e1a99b9a26945e6325c5863b5e42b440f356f91703c3fa448084500723da
7
- data.tar.gz: b76320028f75a9e9786462437cfbce9354181b9ca49cb6ae79ad0ea4a9cc4e379cfd64e0c8fed7d051b6f703a4b769a341a7ee4f3952806c9e90f83a5d76e613
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
@@ -88,7 +88,9 @@ module Kitchen
88
88
 
89
89
  session.close
90
90
  ensure
91
+ @file_transporter = nil
91
92
  @session = nil
93
+ @elevated_runner = nil
92
94
  end
93
95
 
94
96
  # (see Base::Connection#execute)
@@ -17,5 +17,5 @@
17
17
  # limitations under the License.
18
18
 
19
19
  module Kitchen
20
- VERSION = "1.10.0"
20
+ VERSION = "1.10.1"
21
21
  end
@@ -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
 
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.0
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-17 00:00:00.000000000 Z
11
+ date: 2016-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mixlib-shellout