test-kitchen 2.3.3 → 2.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/lib/kitchen/command/action.rb +2 -2
- data/lib/kitchen/command/test.rb +2 -2
- data/lib/kitchen/provisioner/chef/policyfile.rb +10 -3
- data/lib/kitchen/version.rb +1 -1
- data/test-kitchen.gemspec +2 -2
- metadata +12 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 15c9a72eb04c9c0bc9e568e4e239dc05c7dad13d721370afdcc1b35df180ff12
|
4
|
+
data.tar.gz: 528b0c3bc29d1b16c3e56feeaf35f87a5b1b6d1c37b757f6460e19045a219b15
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a4fe9ce79cad2bce2c4fa8fd61b2a5a105183c4d5962c5041f25b0f79e95e2e75c0d84190d21b5915cdb88498bb94e7cce7644aa6ee16428c8bbb760aaa89c6
|
7
|
+
data.tar.gz: f9cf235f6fcaa1594747e92695b34160bbfd3f45fc9f061c553c74d1bda51663fa2ae0304c2f5fae2feb54deb6779f5c033ee56f3aab4bed3e9c109c46f60ff0
|
data/Gemfile
CHANGED
@@ -30,12 +30,12 @@ module Kitchen
|
|
30
30
|
|
31
31
|
# Invoke the command.
|
32
32
|
def call
|
33
|
-
banner "Starting Kitchen (v#{Kitchen::VERSION})"
|
33
|
+
banner "Starting Test Kitchen (v#{Kitchen::VERSION})"
|
34
34
|
elapsed = Benchmark.measure do
|
35
35
|
results = parse_subcommand(args.first)
|
36
36
|
run_action(action, results)
|
37
37
|
end
|
38
|
-
banner "Kitchen is finished. #{Util.duration(elapsed.real)}"
|
38
|
+
banner "Test Kitchen is finished. #{Util.duration(elapsed.real)}"
|
39
39
|
end
|
40
40
|
end
|
41
41
|
end
|
data/lib/kitchen/command/test.rb
CHANGED
@@ -34,14 +34,14 @@ module Kitchen
|
|
34
34
|
raise ArgumentError, "Destroy mode must be passing, always, or never."
|
35
35
|
end
|
36
36
|
|
37
|
-
banner "Starting Kitchen (v#{Kitchen::VERSION})"
|
37
|
+
banner "Starting Test Kitchen (v#{Kitchen::VERSION})"
|
38
38
|
elapsed = Benchmark.measure do
|
39
39
|
destroy_mode = options[:destroy].to_sym
|
40
40
|
results = parse_subcommand(args.join("|"))
|
41
41
|
|
42
42
|
run_action(:test, results, destroy_mode)
|
43
43
|
end
|
44
|
-
banner "Kitchen is finished. #{Util.duration(elapsed.real)}"
|
44
|
+
banner "Test Kitchen is finished. #{Util.duration(elapsed.real)}"
|
45
45
|
end
|
46
46
|
end
|
47
47
|
end
|
@@ -136,13 +136,20 @@ module Kitchen
|
|
136
136
|
# @raise [UserError] if the `chef` command is not in the PATH
|
137
137
|
# @api private
|
138
138
|
def detect_chef_command!(logger)
|
139
|
-
unless ENV["PATH"].split(File::PATH_SEPARATOR).any? do |
|
140
|
-
|
139
|
+
unless ENV["PATH"].split(File::PATH_SEPARATOR).any? do |path|
|
140
|
+
if RbConfig::CONFIG["host_os"] =~ /mswin|mingw/
|
141
|
+
# Windows could have different extentions: BAT, EXE or NONE
|
142
|
+
%w{chef chef.exe chef.bat}.each do |bin|
|
143
|
+
File.exist?(File.join(path, bin))
|
144
|
+
end
|
145
|
+
else
|
146
|
+
File.exist?(File.join(path, "chef"))
|
147
|
+
end
|
141
148
|
end
|
142
149
|
logger.fatal("The `chef` executable cannot be found in your " \
|
143
150
|
"PATH. Ensure you have installed ChefDK or Chef Workstation " \
|
144
151
|
"from https://downloads.chef.io and that your PATH " \
|
145
|
-
"setting includes the path to the `chef`
|
152
|
+
"setting includes the path to the `chef` command.")
|
146
153
|
raise UserError,
|
147
154
|
"Could not find the chef executable in your PATH."
|
148
155
|
end
|
data/lib/kitchen/version.rb
CHANGED
data/test-kitchen.gemspec
CHANGED
@@ -44,9 +44,9 @@ Gem::Specification.new do |gem|
|
|
44
44
|
|
45
45
|
gem.add_development_dependency "aruba", "~> 0.11"
|
46
46
|
gem.add_development_dependency "fakefs", "~> 0.4"
|
47
|
-
gem.add_development_dependency "minitest", "~> 5.3", "< 5.
|
47
|
+
gem.add_development_dependency "minitest", "~> 5.3", "< 5.12"
|
48
48
|
gem.add_development_dependency "mocha", "~> 1.1"
|
49
|
-
gem.add_development_dependency "cucumber", "
|
49
|
+
gem.add_development_dependency "cucumber", ">= 2.1", "< 4.0" # we just need to validate 4.0 when it comes out
|
50
50
|
gem.add_development_dependency "countloc", "~> 0.4"
|
51
51
|
gem.add_development_dependency "maruku", "~> 0.6"
|
52
52
|
end
|
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: 2.3.
|
4
|
+
version: 2.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fletcher Nichol
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-10-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mixlib-shellout
|
@@ -287,7 +287,7 @@ dependencies:
|
|
287
287
|
version: '5.3'
|
288
288
|
- - "<"
|
289
289
|
- !ruby/object:Gem::Version
|
290
|
-
version: '5.
|
290
|
+
version: '5.12'
|
291
291
|
type: :development
|
292
292
|
prerelease: false
|
293
293
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -297,7 +297,7 @@ dependencies:
|
|
297
297
|
version: '5.3'
|
298
298
|
- - "<"
|
299
299
|
- !ruby/object:Gem::Version
|
300
|
-
version: '5.
|
300
|
+
version: '5.12'
|
301
301
|
- !ruby/object:Gem::Dependency
|
302
302
|
name: mocha
|
303
303
|
requirement: !ruby/object:Gem::Requirement
|
@@ -316,16 +316,22 @@ dependencies:
|
|
316
316
|
name: cucumber
|
317
317
|
requirement: !ruby/object:Gem::Requirement
|
318
318
|
requirements:
|
319
|
-
- - "
|
319
|
+
- - ">="
|
320
320
|
- !ruby/object:Gem::Version
|
321
321
|
version: '2.1'
|
322
|
+
- - "<"
|
323
|
+
- !ruby/object:Gem::Version
|
324
|
+
version: '4.0'
|
322
325
|
type: :development
|
323
326
|
prerelease: false
|
324
327
|
version_requirements: !ruby/object:Gem::Requirement
|
325
328
|
requirements:
|
326
|
-
- - "
|
329
|
+
- - ">="
|
327
330
|
- !ruby/object:Gem::Version
|
328
331
|
version: '2.1'
|
332
|
+
- - "<"
|
333
|
+
- !ruby/object:Gem::Version
|
334
|
+
version: '4.0'
|
329
335
|
- !ruby/object:Gem::Dependency
|
330
336
|
name: countloc
|
331
337
|
requirement: !ruby/object:Gem::Requirement
|