test-kitchen 1.7.1 → 1.7.2

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: 83bbe53c5dff3e98cd57bf4fc9e0d595ff05867e
4
- data.tar.gz: fbc794886bd4e798c7ae2c08ba79f1c3e681163d
3
+ metadata.gz: 6eb0641174c456b921dc3fd159666dea061168a7
4
+ data.tar.gz: b338b5943cbc82678f5b7b6269e308df53f02242
5
5
  SHA512:
6
- metadata.gz: c84c848a8d25f6af8a4acc856aca71741e1bf5f94419112dd7f2328ccd197d07c2c4e897c93d8448a97314552b67b2e3269a7232489e33d9d5809c14731dfcf9
7
- data.tar.gz: ef5d1dce483a9e979b9ce2bd0ba2a3fa5908a9046952148e99fba432e3840a426925cba37a7645e047bf3d34f84db04d431f1b29440a5d4ed053f52f86dfb7c7
6
+ metadata.gz: c963aed32108fcae2fedcb472dafecc1daef9e0da026f9f74a1887571305fc5b2164b555fbc8898f49ab167fee88bb49a2e6390f706864e722b50b10f536797e
7
+ data.tar.gz: 34ae137d409a0f6b0e45239ffb82363533366cc8bd07c1fb0c6ea8c16fe0a7aed0c7952e1c846dcf53ad7a7d86e4790751b8fccf804214c88cba67654d15d99b
data/.gitignore CHANGED
@@ -3,8 +3,7 @@
3
3
  .bundle
4
4
  .config
5
5
  .yardoc
6
- bin
7
- !bin/kitchen
6
+ binstubs
8
7
  Gemfile*.lock
9
8
  InstalledFiles
10
9
  _yardoc
@@ -1,7 +1,16 @@
1
1
  # Change Log
2
2
 
3
- ## [1.7.1](https://github.com/test-kitchen/test-kitchen/tree/1.7.1) (2016-04-02)
4
- [Full Changelog](https://github.com/test-kitchen/test-kitchen/compare/v1.7.0...1.7.1)
3
+ ## [1.7.2](https://github.com/test-kitchen/test-kitchen/tree/1.7.2) (2016-04-07)
4
+ [Full Changelog](https://github.com/test-kitchen/test-kitchen/compare/v1.7.1...1.7.2)
5
+
6
+ **Merged pull requests:**
7
+
8
+ - Don't require dev dependencies to build [\#1000](https://github.com/test-kitchen/test-kitchen/pull/1000) ([jkeiser](https://github.com/jkeiser))
9
+ - update to win2k8 friendly dependencies [\#999](https://github.com/test-kitchen/test-kitchen/pull/999) ([mwrock](https://github.com/mwrock))
10
+ - Fix Berkshelf load test [\#998](https://github.com/test-kitchen/test-kitchen/pull/998) ([chefsalim](https://github.com/chefsalim))
11
+
12
+ ## [v1.7.1](https://github.com/test-kitchen/test-kitchen/tree/v1.7.1) (2016-04-02)
13
+ [Full Changelog](https://github.com/test-kitchen/test-kitchen/compare/v1.7.1.dev...v1.7.1)
5
14
 
6
15
  **Fixed bugs:**
7
16
 
@@ -1088,4 +1097,4 @@
1088
1097
  ## [0.5.0](https://github.com/test-kitchen/test-kitchen/tree/0.5.0) (2012-08-16)
1089
1098
 
1090
1099
 
1091
- \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
1100
+ \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
data/Rakefile CHANGED
@@ -9,10 +9,14 @@ Rake::TestTask.new(:unit) do |t|
9
9
  t.verbose = true
10
10
  end
11
11
 
12
- require "cucumber"
13
- require "cucumber/rake/task"
14
- Cucumber::Rake::Task.new(:features) do |t|
15
- t.cucumber_opts = ["features", "-x", "--format progress", "--no-color"]
12
+ begin
13
+ require "cucumber"
14
+ require "cucumber/rake/task"
15
+ Cucumber::Rake::Task.new(:features) do |t|
16
+ t.cucumber_opts = ["features", "-x", "--format progress", "--no-color"]
17
+ end
18
+ rescue LoadError
19
+ puts "cucumber is not available. (sudo) gem install cucumber to run tests."
16
20
  end
17
21
 
18
22
  desc "Run all test suites"
@@ -26,36 +30,54 @@ task :stats do
26
30
  sh "countloc -r spec features"
27
31
  end
28
32
 
29
- require "finstyle"
30
- require "rubocop/rake_task"
31
- RuboCop::RakeTask.new(:style) do |task|
32
- task.options += ["--display-cop-names", "--no-color"]
33
+ begin
34
+ require "finstyle"
35
+ require "rubocop/rake_task"
36
+ RuboCop::RakeTask.new(:style) do |task|
37
+ task.options += ["--display-cop-names", "--no-color"]
38
+ end
39
+ rescue LoadError
40
+ puts "finstyle/rubocop is not available. gem install finstyle to do style checking."
33
41
  end
34
42
 
35
- if RUBY_ENGINE != "jruby"
36
- require "cane/rake_task"
37
- desc "Run cane to check quality metrics"
38
- Cane::RakeTask.new do |cane|
39
- cane.canefile = "./.cane"
40
- end
43
+ begin
44
+ if RUBY_ENGINE != "jruby"
45
+ require "cane/rake_task"
46
+ desc "Run cane to check quality metrics"
47
+ Cane::RakeTask.new do |cane|
48
+ cane.canefile = "./.cane"
49
+ end
41
50
 
42
- desc "Run all quality tasks"
43
- task :quality => [:cane, :style, :stats]
44
- else
45
- desc "Run all quality tasks"
46
- task :quality => [:style, :stats]
51
+ desc "Run all quality tasks"
52
+ task :quality => [:cane, :style, :stats]
53
+ else
54
+ desc "Run all quality tasks"
55
+ task :quality => [:style, :stats]
56
+ end
57
+ rescue LoadError
58
+ puts "cane is not available. (sudo) gem install cane to check quality metrics."
47
59
  end
48
60
 
49
- require "yard"
50
- YARD::Rake::YardocTask.new
61
+ begin
62
+ require "yard"
63
+ YARD::Rake::YardocTask.new
64
+ rescue LoadError
65
+ puts "yard is not available. (sudo) gem install yard to generate yard documentation."
66
+ end
51
67
 
52
68
  task :default => [:test, :quality]
53
69
 
54
- require "github_changelog_generator/task"
70
+ begin
71
+ require "github_changelog_generator/task"
72
+ require "kitchen/version"
55
73
 
56
- GitHubChangelogGenerator::RakeTask.new :changelog do |config|
57
- config.future_release = Kitchen::VERSION
58
- config.enhancement_labels = "enhancement,Enhancement,New Feature,Feature,Improvement".split(",")
59
- config.bug_labels = "bug,Bug".split(",")
60
- config.exclude_labels = %w[Duplicate Question Discussion No_Changelog]
74
+ GitHubChangelogGenerator::RakeTask.new :changelog do |config|
75
+ config.future_release = Kitchen::VERSION
76
+ config.enhancement_labels = "enhancement,Enhancement,New Feature,Feature,Improvement".split(",")
77
+ config.bug_labels = "bug,Bug".split(",")
78
+ config.exclude_labels = %w[Duplicate Question Discussion No_Changelog]
79
+ end
80
+ rescue LoadError
81
+ puts "github_changelog_generator is not available." \
82
+ " gem install github_changelog_generator to generate changelogs"
61
83
  end
@@ -0,0 +1,13 @@
1
+ #!/usr/bin/env ruby
2
+ # -*- encoding: utf-8 -*-
3
+
4
+ # Trap interrupts to quit cleanly. See
5
+ # https://twitter.com/mitchellh/status/283014103189053442
6
+ Signal.trap("INT") { exit 1 }
7
+
8
+ $LOAD_PATH.unshift File.join(File.dirname(__FILE__), %w[.. lib])
9
+ require "rubygems"
10
+ require "kitchen/cli"
11
+ require "kitchen/errors"
12
+
13
+ Kitchen.with_friendly_errors { Kitchen::CLI.start }
@@ -359,7 +359,7 @@ module Kitchen
359
359
  private
360
360
 
361
361
  WINRM_SPEC_VERSION = ["~> 1.6"].freeze
362
- WINRM_FS_SPEC_VERSION = ["~> 0.4.0"].freeze
362
+ WINRM_FS_SPEC_VERSION = ["~> 0.4.1"].freeze
363
363
 
364
364
  # Builds the hash of options needed by the Connection object on
365
365
  # construction.
@@ -17,5 +17,5 @@
17
17
  # limitations under the License.
18
18
 
19
19
  module Kitchen
20
- VERSION = "1.7.1"
20
+ VERSION = "1.7.2"
21
21
  end
@@ -905,6 +905,9 @@ describe Kitchen::Provisioner::ChefBase do
905
905
  end
906
906
 
907
907
  it "raises a UserError if Berkshelf library can't be loaded" do
908
+ Kitchen::Provisioner::Chef::Berkshelf.stubs(:load_berkshelf!).with do
909
+ raise Kitchen::UserError, "Load failed"
910
+ end
908
911
  proc { provisioner }.must_raise Kitchen::UserError
909
912
  end
910
913
 
File without changes
@@ -28,13 +28,13 @@ Gem::Specification.new do |gem|
28
28
  gem.add_dependency "net-ssh", ">= 2.9", "< 4.0"
29
29
  gem.add_dependency "safe_yaml", "~> 1.0"
30
30
  gem.add_dependency "thor", "~> 0.18"
31
- gem.add_dependency "mixlib-install", "~> 1.0", ">= 1.0.2"
31
+ gem.add_dependency "mixlib-install", "~> 1.0", ">= 1.0.4"
32
32
 
33
33
  gem.add_development_dependency "pry"
34
34
  gem.add_development_dependency "pry-byebug"
35
35
  gem.add_development_dependency "pry-stack_explorer"
36
36
  gem.add_development_dependency "winrm", "~> 1.6"
37
- gem.add_development_dependency "winrm-fs", "~> 0.4.0"
37
+ gem.add_development_dependency "winrm-fs", "~> 0.4.1"
38
38
 
39
39
  gem.add_development_dependency "bundler", "~> 1.3"
40
40
  gem.add_development_dependency "rake", "~> 10.0"
@@ -8,7 +8,7 @@ Ensure that the cookbook's root directory includes a `Gemfile` that includes you
8
8
  ```
9
9
  gem 'test-kitchen', git: 'https://github.com/mwrock/test-kitchen', branch: 'winrm-fs'
10
10
  gem 'winrm', '~> 1.6'
11
- gem 'winrm-fs', '~> 0.4.0'
11
+ gem 'winrm-fs', '~> 0.4.1'
12
12
  ```
13
13
  The above would target the `winrm-fs` branch in mwrock's test-kitchen repo.
14
14
 
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.7.1
4
+ version: 1.7.2
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-04-02 00:00:00.000000000 Z
11
+ date: 2016-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mixlib-shellout
@@ -101,7 +101,7 @@ dependencies:
101
101
  version: '1.0'
102
102
  - - ">="
103
103
  - !ruby/object:Gem::Version
104
- version: 1.0.2
104
+ version: 1.0.4
105
105
  type: :runtime
106
106
  prerelease: false
107
107
  version_requirements: !ruby/object:Gem::Requirement
@@ -111,7 +111,7 @@ dependencies:
111
111
  version: '1.0'
112
112
  - - ">="
113
113
  - !ruby/object:Gem::Version
114
- version: 1.0.2
114
+ version: 1.0.4
115
115
  - !ruby/object:Gem::Dependency
116
116
  name: pry
117
117
  requirement: !ruby/object:Gem::Requirement
@@ -174,14 +174,14 @@ dependencies:
174
174
  requirements:
175
175
  - - "~>"
176
176
  - !ruby/object:Gem::Version
177
- version: 0.4.0
177
+ version: 0.4.1
178
178
  type: :development
179
179
  prerelease: false
180
180
  version_requirements: !ruby/object:Gem::Requirement
181
181
  requirements:
182
182
  - - "~>"
183
183
  - !ruby/object:Gem::Version
184
- version: 0.4.0
184
+ version: 0.4.1
185
185
  - !ruby/object:Gem::Dependency
186
186
  name: bundler
187
187
  requirement: !ruby/object:Gem::Requirement
@@ -587,7 +587,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
587
587
  version: '0'
588
588
  requirements: []
589
589
  rubyforge_project:
590
- rubygems_version: 2.5.2
590
+ rubygems_version: 2.6.3
591
591
  signing_key:
592
592
  specification_version: 4
593
593
  summary: Test Kitchen is an integration tool for developing and testing infrastructure