test-kitchen 3.4.0 → 3.5.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
  SHA256:
3
- metadata.gz: fb6ceb9a2ef6ae7f76a3edad93e1f74e035c5b7c4187e3385dd02787faec5535
4
- data.tar.gz: b8ffaa1abdad8faf9e76ca894c552972a7ce054925ef28cb29f8318cfd21657e
3
+ metadata.gz: 43f3ba1a55d6f333784b955cda9e822970cd2226b9312f5dad31eb061e459688
4
+ data.tar.gz: a4f73825f0766b4fa61e5206eab8fcb48bc77ff5eb4c17173b1c4ebe5a00ff14
5
5
  SHA512:
6
- metadata.gz: 9180f058a260d94acb55c5739a8a1994f57bb0238bc9e0d00081a0904bbda0a1ba9ebc41a538ab3c4d89f505f4fb638eb759f163a17c73aa2625d18f1752dd56
7
- data.tar.gz: 9b8c843a1d4875f11df5f1d21537d3e1c30ae882dbfcb060d1c4210e2db40782f14e8f68aff406bc7c45ed95bd109f181206b16210897e2757f35cc22f08dc03
6
+ metadata.gz: c99da65b2481b02024d48852f700ad4b314319b12509b939370308f19866a5ee20145ffc0f1a840becd3eff6ecc28606394f9f3e3817ec88d9c5a2bcb230c0e8
7
+ data.tar.gz: 8e09b252dc4ada45de3c3cae80c22762ad418db5ed765e0441653c43a6d25f7117d17108ede0ac0cf7eef5996b73289ac8e6e08af25ade71511525236244fc7c
@@ -46,6 +46,8 @@ module Kitchen
46
46
  run(phase, :pre)
47
47
  yield
48
48
  run(phase, :post)
49
+ ensure
50
+ run(phase, :finally)
49
51
  end
50
52
 
51
53
  # @return [Kitchen::StateFile]
@@ -56,7 +58,7 @@ module Kitchen
56
58
  # Execute a specific lifecycle hook.
57
59
  #
58
60
  # @param phase [String] Lifecycle phase which is being executed.
59
- # @param hook_timing [Symbol] `:pre` or `:post` to indicate which hook to run.
61
+ # @param hook_timing [Symbol] `:pre`, `:post`, or `:finally` to indicate which hook to run.
60
62
  # @return [void]
61
63
  def run(phase, hook_timing)
62
64
  # Yes this has to be a symbol because of how data munger works.
@@ -210,7 +210,7 @@ module Kitchen
210
210
 
211
211
  deprecate_config_for :install_msi_url, Util.outdent!(<<-MSG)
212
212
  The 'install_msi_url' will be relaced by the 'download_url' attribute.
213
- 'download_url' will be applied to Bourne and Powershell download scripts.
213
+ 'download_url' will be applied to Bourne and PowerShell download scripts.
214
214
 
215
215
  Note: 'product_name' must be set in order to use 'download_url'
216
216
  until 'product_name' replaces 'require_chef_omnibus' as the default.
@@ -258,10 +258,10 @@ module Kitchen
258
258
  end
259
259
  end
260
260
 
261
- # Execute a Powershell script over WinRM and return the command's
261
+ # Execute a PowerShell script over WinRM and return the command's
262
262
  # exit code and standard error.
263
263
  #
264
- # @param command [String] Powershell script to execute
264
+ # @param command [String] PowerShell script to execute
265
265
  # @return [[Integer,String]] an array containing the exit code of the
266
266
  # script and the standard error stream
267
267
  # @api private
@@ -73,14 +73,17 @@ module Kitchen
73
73
  conn.upload(sandbox_dirs, config[:root_path])
74
74
  debug("Transfer complete")
75
75
  conn.execute(prepare_command)
76
- conn.execute(run_command)
77
76
 
78
- info("Downloading files from #{instance.to_str}")
79
- config[:downloads].to_h.each do |remotes, local|
80
- debug("Downloading #{Array(remotes).join(", ")} to #{local}")
81
- conn.download(remotes, local)
77
+ begin
78
+ conn.execute(run_command)
79
+ ensure
80
+ info("Downloading files from #{instance.to_str}")
81
+ config[:downloads].to_h.each do |remotes, local|
82
+ debug("Downloading #{Array(remotes).join(", ")} to #{local}")
83
+ conn.download(remotes, local)
84
+ end
85
+ debug("Download complete")
82
86
  end
83
- debug("Download complete")
84
87
  end
85
88
  rescue Kitchen::Transport::TransportFailed => ex
86
89
  raise ActionFailed, ex.message
@@ -16,5 +16,5 @@
16
16
  # limitations under the License.
17
17
 
18
18
  module Kitchen
19
- VERSION = "3.4.0".freeze
19
+ VERSION = "3.5.1".freeze
20
20
  end
data/test-kitchen.gemspec CHANGED
@@ -38,15 +38,14 @@ Gem::Specification.new do |gem|
38
38
  # TK is not under Chef EULA
39
39
  gem.add_dependency "license-acceptance", ">= 1.0.11", "< 3.0" # pinning until we can confirm 3+ works
40
40
 
41
- gem.add_development_dependency "bundler"
42
41
  gem.add_development_dependency "rake"
43
42
  gem.add_development_dependency "rb-readline"
44
43
 
45
44
  gem.add_development_dependency "aruba", ">= 0.11", "< 3.0"
46
45
  gem.add_development_dependency "countloc", "~> 0.4"
47
46
  gem.add_development_dependency "cucumber", ">= 2.1", "< 8.0"
48
- gem.add_development_dependency "fakefs", "~> 1.0"
47
+ gem.add_development_dependency "fakefs", "~> 2.0"
49
48
  gem.add_development_dependency "maruku", "~> 0.6"
50
49
  gem.add_development_dependency "minitest", "~> 5.3", "< 5.16"
51
- gem.add_development_dependency "mocha", "~> 1.1"
50
+ gem.add_development_dependency "mocha", "~> 2.0"
52
51
  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: 3.4.0
4
+ version: 3.5.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: 2022-10-20 00:00:00.000000000 Z
11
+ date: 2023-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bcrypt_pbkdf
@@ -228,20 +228,6 @@ dependencies:
228
228
  - - "<"
229
229
  - !ruby/object:Gem::Version
230
230
  version: '3.0'
231
- - !ruby/object:Gem::Dependency
232
- name: bundler
233
- requirement: !ruby/object:Gem::Requirement
234
- requirements:
235
- - - ">="
236
- - !ruby/object:Gem::Version
237
- version: '0'
238
- type: :development
239
- prerelease: false
240
- version_requirements: !ruby/object:Gem::Requirement
241
- requirements:
242
- - - ">="
243
- - !ruby/object:Gem::Version
244
- version: '0'
245
231
  - !ruby/object:Gem::Dependency
246
232
  name: rake
247
233
  requirement: !ruby/object:Gem::Requirement
@@ -330,14 +316,14 @@ dependencies:
330
316
  requirements:
331
317
  - - "~>"
332
318
  - !ruby/object:Gem::Version
333
- version: '1.0'
319
+ version: '2.0'
334
320
  type: :development
335
321
  prerelease: false
336
322
  version_requirements: !ruby/object:Gem::Requirement
337
323
  requirements:
338
324
  - - "~>"
339
325
  - !ruby/object:Gem::Version
340
- version: '1.0'
326
+ version: '2.0'
341
327
  - !ruby/object:Gem::Dependency
342
328
  name: maruku
343
329
  requirement: !ruby/object:Gem::Requirement
@@ -378,14 +364,14 @@ dependencies:
378
364
  requirements:
379
365
  - - "~>"
380
366
  - !ruby/object:Gem::Version
381
- version: '1.1'
367
+ version: '2.0'
382
368
  type: :development
383
369
  prerelease: false
384
370
  version_requirements: !ruby/object:Gem::Requirement
385
371
  requirements:
386
372
  - - "~>"
387
373
  - !ruby/object:Gem::Version
388
- version: '1.1'
374
+ version: '2.0'
389
375
  description: Test Kitchen is an integration tool for developing and testing infrastructure
390
376
  code and software on isolated target platforms.
391
377
  email:
@@ -521,7 +507,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
521
507
  - !ruby/object:Gem::Version
522
508
  version: '0'
523
509
  requirements: []
524
- rubygems_version: 3.3.16
510
+ rubygems_version: 3.4.10
525
511
  signing_key:
526
512
  specification_version: 4
527
513
  summary: Test Kitchen is an integration tool for developing and testing infrastructure