test-kitchen 1.4.0 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6cbd1f0c3efa5fa341dded1be775532c1b8d07bb
4
- data.tar.gz: eb29a06f2db36bafe5a522be2e2aae107e3802e9
3
+ metadata.gz: ac352970d9bb62f576ca7a3c8a1390382fa2fb5d
4
+ data.tar.gz: cd340da33b93b212a7c21de7ccaa212f05be52e8
5
5
  SHA512:
6
- metadata.gz: 3c568cbdba88464d8372f06fd2b6275def230d8efec447cb281114d2a3809a3df3f8671a0b1158ac57ea58ae98bfe0b68b1a3deb8e7226de740e6328ecfeb0f5
7
- data.tar.gz: 1045da5458e2644e1f98af2fd39d796f1070d1f18af18906b9a81a5dba9217585b49a838bf953f920106eb5f631b1859529f33b196ed1b31b3ee26ebb07e101e
6
+ metadata.gz: dd350ae343edb32bac0914df75405d166546274cc7056104859926641fa930c080084686847b5699d01a250e690c4d40aba8444033094aa7fe06f69ea7175daa
7
+ data.tar.gz: c801ac18f1c2019301e6ab80f2b99a73e381064e8df489aa205bd68f3c94d40eb8bf3265f11fc5868eac720b047cdbfa345e8f4e6c2cf0720621c9ba8211ba99
data/CHANGELOG.md CHANGED
@@ -1,4 +1,22 @@
1
- ## 1.4.0.rc.1 / 2015-04-23
1
+ ## 1.4.1 / 2015-06-18
2
+
3
+ ### Potentially breaking changes
4
+
5
+ ### Bug fixes
6
+
7
+ * Issue [#663][], PR [#665][]: Centos 6.4 no longer supported, upgrade in templates for `kitchen init` ([@lloydde][])
8
+ * PR [#711][]: Update to Ubuntu 14.04 and Centos 7.1 for `kitchen init` ([@fnichol][])
9
+ * PR [#734][]: Fix failing `kitchen driver discover` test ([@fnichol][])
10
+ * Issue [#732][], PR [#737][]: Generate a `chefignore` file during `kitchen init` ([@metadave][])
11
+ * Issue [#688][], PR [#728][] and [#736][]: Default WinRM username updated to `administrator` and additional errors caught for retry logic when trying to login with WinRM ([@zl4bv][], [@tyler-ball][])
12
+
13
+ ### New features
14
+
15
+ ### Improvements
16
+
17
+ * PR [#704][]: Don't prompt for passwords when using public key auth ([@caboteria][])
18
+
19
+ ## 1.4.0 / 2015-04-28
2
20
 
3
21
  (*A selected roll-up of 1.4.0 pre-release changelogs*)
4
22
 
@@ -717,6 +735,8 @@ The initial release.
717
735
  [#654]: https://github.com/test-kitchen/test-kitchen/issues/654
718
736
  [#656]: https://github.com/test-kitchen/test-kitchen/issues/656
719
737
  [#658]: https://github.com/test-kitchen/test-kitchen/issues/658
738
+ [#663]: https://github.com/test-kitchen/test-kitchen/issues/663
739
+ [#665]: https://github.com/test-kitchen/test-kitchen/issues/665
720
740
  [#666]: https://github.com/test-kitchen/test-kitchen/issues/666
721
741
  [#667]: https://github.com/test-kitchen/test-kitchen/issues/667
722
742
  [#668]: https://github.com/test-kitchen/test-kitchen/issues/668
@@ -724,6 +744,14 @@ The initial release.
724
744
  [#673]: https://github.com/test-kitchen/test-kitchen/issues/673
725
745
  [#674]: https://github.com/test-kitchen/test-kitchen/issues/674
726
746
  [#675]: https://github.com/test-kitchen/test-kitchen/issues/675
747
+ [#688]: https://github.com/test-kitchen/test-kitchen/issues/688
748
+ [#704]: https://github.com/test-kitchen/test-kitchen/issues/704
749
+ [#711]: https://github.com/test-kitchen/test-kitchen/issues/711
750
+ [#728]: https://github.com/test-kitchen/test-kitchen/issues/728
751
+ [#732]: https://github.com/test-kitchen/test-kitchen/issues/732
752
+ [#734]: https://github.com/test-kitchen/test-kitchen/issues/734
753
+ [#736]: https://github.com/test-kitchen/test-kitchen/issues/736
754
+ [#737]: https://github.com/test-kitchen/test-kitchen/issues/737
727
755
  [@ChrisLundquist]: https://github.com/ChrisLundquist
728
756
  [@MarkGibbons]: https://github.com/MarkGibbons
729
757
  [@adamhjk]: https://github.com/adamhjk
@@ -733,6 +761,7 @@ The initial release.
733
761
  [@benlangfeld]: https://github.com/benlangfeld
734
762
  [@bkw]: https://github.com/bkw
735
763
  [@bryanwb]: https://github.com/bryanwb
764
+ [@caboteria]: https://github.com/caboteria
736
765
  [@calavera]: https://github.com/calavera
737
766
  [@chrishenry]: https://github.com/chrishenry
738
767
  [@coderanger]: https://github.com/coderanger
@@ -763,11 +792,13 @@ The initial release.
763
792
  [@kamalim]: https://github.com/kamalim
764
793
  [@kisoku]: https://github.com/kisoku
765
794
  [@lamont-granquist]: https://github.com/lamont-granquist
795
+ [@lloydde]: https://github.com/lloydde
766
796
  [@manul]: https://github.com/manul
767
797
  [@martinb3]: https://github.com/martinb3
768
798
  [@mattray]: https://github.com/mattray
769
799
  [@mconigliaro]: https://github.com/mconigliaro
770
800
  [@mcquin]: https://github.com/mcquin
801
+ [@metadave]: https://github.com/metadave
771
802
  [@michaelkirk]: https://github.com/michaelkirk
772
803
  [@miketheman]: https://github.com/miketheman
773
804
  [@mthssdrbrg]: https://github.com/mthssdrbrg
@@ -797,4 +828,5 @@ The initial release.
797
828
  [@tknerr]: https://github.com/tknerr
798
829
  [@tyler-ball]: https://github.com/tyler-ball
799
830
  [@whiteley]: https://github.com/whiteley
800
- [@zts]: https://github.com/zts
831
+ [@zl4bv]: https://github.com/zl4bv
832
+ [@zts]: https://github.com/zts
@@ -16,5 +16,4 @@ Feature: Search RubyGems to discover new Test Kitchen Driver gems
16
16
  Scenario: Running driver discover returns live results
17
17
  When I run `kitchen driver discover`
18
18
  Then the exit status should be 0
19
- And the output should contain "kitchen-vagrant"
20
19
  And the output should contain "kitchen-bluebox"
@@ -31,6 +31,8 @@ Feature: Add Test Kitchen support to an existing project
31
31
  And a file named "Rakefile" should not exist
32
32
  And a file named "Thorfile" should not exist
33
33
  And a gem named "kitchen-vagrant" is installed
34
+ And a file named "chefignore" should exist
35
+ And the file "chefignore" should contain ".kitchen"
34
36
 
35
37
  Scenario: Running init that creates a Gemfile
36
38
  When I successfully run `kitchen init --create-gemfile`
@@ -212,8 +214,8 @@ Feature: Add Test Kitchen support to an existing project
212
214
  name: chef_solo
213
215
 
214
216
  platforms:
215
- - name: ubuntu-12.04
216
- - name: centos-6.4
217
+ - name: ubuntu-14.04
218
+ - name: centos-7.1
217
219
 
218
220
  suites:
219
221
  - name: default
@@ -61,6 +61,7 @@ module Kitchen
61
61
  self.class.source_root(Kitchen.source_root.join("templates", "init"))
62
62
 
63
63
  create_kitchen_yaml
64
+ create_chefignore
64
65
  prepare_rakefile
65
66
  prepare_thorfile
66
67
  create_test_dir
@@ -91,6 +92,13 @@ module Kitchen
91
92
  )
92
93
  end
93
94
 
95
+ # Creates the `chefignore` file.
96
+ #
97
+ # @api private
98
+ def create_chefignore
99
+ template("chefignore.erb", "chefignore")
100
+ end
101
+
94
102
  # @return [true,false] whether or not a Gemfile needs to be initialized
95
103
  # @api private
96
104
  def init_gemfile?
@@ -310,6 +310,7 @@ module Kitchen
310
310
 
311
311
  opts[:keys_only] = true if data[:ssh_key]
312
312
  opts[:keys] = Array(data[:ssh_key]) if data[:ssh_key]
313
+ opts[:auth_methods] = ["publickey"] if data[:ssh_key]
313
314
  opts[:password] = data[:password] if data.key?(:password)
314
315
  opts[:forward_agent] = data[:forward_agent] if data.key?(:forward_agent)
315
316
 
@@ -44,7 +44,7 @@ module Kitchen
44
44
  plugin_version Kitchen::VERSION
45
45
 
46
46
  default_config :port, 5985
47
- default_config :username, ".\\administrator"
47
+ default_config :username, "administrator"
48
48
  default_config :password, nil
49
49
  default_config :endpoint_template, "http://%{hostname}:%{port}/wsman"
50
50
  default_config :rdp_port, 3389
@@ -139,7 +139,8 @@ module Kitchen
139
139
  Errno::EACCES, Errno::EADDRINUSE, Errno::ECONNREFUSED,
140
140
  Errno::ECONNRESET, Errno::ENETUNREACH, Errno::EHOSTUNREACH,
141
141
  ::WinRM::WinRMHTTPTransportError, ::WinRM::WinRMAuthorizationError,
142
- HTTPClient::KeepAliveDisconnected
142
+ HTTPClient::KeepAliveDisconnected,
143
+ HTTPClient::ConnectTimeoutError
143
144
  ].freeze
144
145
  end
145
146
 
@@ -18,5 +18,5 @@
18
18
 
19
19
  module Kitchen
20
20
 
21
- VERSION = "1.4.0"
21
+ VERSION = "1.4.1"
22
22
  end
@@ -483,6 +483,16 @@ describe Kitchen::Transport::Ssh do
483
483
  make_connection
484
484
  end
485
485
 
486
+ it "sets :auth_methods to only publickey if :ssh_key is set in config" do
487
+ config[:ssh_key] = "ssh_key_from_config"
488
+
489
+ klass.expects(:new).with do |hash|
490
+ hash[:auth_methods] == ["publickey"]
491
+ end
492
+
493
+ make_connection
494
+ end
495
+
486
496
  it "sets :keys_only to true if :ssh_key is set in state" do
487
497
  state[:ssh_key] = "ssh_key_from_config"
488
498
  config[:ssh_key] = false
@@ -53,8 +53,8 @@ describe Kitchen::Transport::Winrm do
53
53
  transport[:port].must_equal 5985
54
54
  end
55
55
 
56
- it "sets :username to .\\administrator by default" do
57
- transport[:username].must_equal ".\\administrator"
56
+ it "sets :username to administrator by default" do
57
+ transport[:username].must_equal "administrator"
58
58
  end
59
59
 
60
60
  it "sets :password to nil by default" do
@@ -703,7 +703,7 @@ MSG
703
703
  Errno::EACCES, Errno::EADDRINUSE, Errno::ECONNREFUSED,
704
704
  Errno::ECONNRESET, Errno::ENETUNREACH, Errno::EHOSTUNREACH,
705
705
  ::WinRM::WinRMHTTPTransportError, ::WinRM::WinRMAuthorizationError,
706
- HTTPClient::KeepAliveDisconnected
706
+ HTTPClient::KeepAliveDisconnected, HTTPClient::ConnectTimeoutError
707
707
  ].each do |klass|
708
708
  describe "raising #{klass}" do
709
709
 
@@ -0,0 +1 @@
1
+ .kitchen
@@ -6,8 +6,8 @@ provisioner:
6
6
  name: <%= config[:provisioner] %>
7
7
 
8
8
  platforms:
9
- - name: ubuntu-12.04
10
- - name: centos-6.4
9
+ - name: ubuntu-14.04
10
+ - name: centos-7.1
11
11
 
12
12
  suites:
13
13
  - name: default
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.4.0
4
+ version: 1.4.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: 2015-04-28 00:00:00.000000000 Z
11
+ date: 2015-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mixlib-shellout
@@ -453,6 +453,7 @@ files:
453
453
  - templates/driver/tailor.erb
454
454
  - templates/driver/travis.yml.erb
455
455
  - templates/driver/version.rb.erb
456
+ - templates/init/chefignore.erb
456
457
  - templates/init/kitchen.yml.erb
457
458
  - test-kitchen.gemspec
458
459
  homepage: http://kitchen.ci
@@ -475,7 +476,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
475
476
  version: '0'
476
477
  requirements: []
477
478
  rubyforge_project:
478
- rubygems_version: 2.4.5
479
+ rubygems_version: 2.4.7
479
480
  signing_key:
480
481
  specification_version: 4
481
482
  summary: Test Kitchen is an integration tool for developing and testing infrastructure