test-kitchen 3.8.0 → 3.8.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
  SHA256:
3
- metadata.gz: b2b9e6d594b61d9e569f8051f34251c4c1c4c531618c70d382558f34c2b4fbdb
4
- data.tar.gz: 6703f8a68a196806e858011fdc1a7695e5e48c936a8e86c550ce8369aba82174
3
+ metadata.gz: 20202cfa53b2c7701a9cf67fa0d48b8d6975b5adbe0c0a6fdac04ccd6fae227a
4
+ data.tar.gz: 78af76288e703870f132824cd0037cb0e35b5128349e73296d648b75c270fbbe
5
5
  SHA512:
6
- metadata.gz: 36e39c93bc5d66d0d46b790f927ee54c412c6467fd61c72a981721511814c1681925232851a437013a1a4c3ee250cc73ae251b057931db9024dab20596c31db9
7
- data.tar.gz: 930266c1bc9c86e98def9eb3e78cf9bde2d8106a13fa831f1f56a88a3ca3d9b48f2c9508df077a4e414add79ef792b47255870c0ff7a12351f238501cdb138f8
6
+ metadata.gz: 4935e08c83c27064098f9903cc76728b74c5cbb7cd15c3378ab5809c5fbb52b9890b13b4109cac44287307a78537aeeb80ed60cc31439f51f90ccbbe583a5645
7
+ data.tar.gz: 5cf63e66b71ef201bae5157f9cf3dcb94682aa7f78611e2669e24466ddb96b101b3818ec1fab4d96283acb483eaaf2e2d3383854140b34f5a3c741ae412dc83d
@@ -98,7 +98,7 @@ module Kitchen
98
98
  # directory containing test suites and other testing-related files and
99
99
  # directories (default: `"#{kitchen_root}/test/integration"`)
100
100
  # @option options [Symbol] :log_level the log level verbosity that the
101
- # loggers will use when outputing information (default: `:info`)
101
+ # loggers will use when outputting information (default: `:info`)
102
102
  def initialize(options = {})
103
103
  @loader = options.fetch(:loader) { Kitchen::Loader::YAML.new }
104
104
  @kitchen_root = options.fetch(:kitchen_root) { Dir.pwd }
@@ -485,7 +485,7 @@ module Kitchen
485
485
  # end
486
486
  #
487
487
  # @param attr [String] configuration attribute name
488
- # @param value [Object, nil] whether or not to exand the file path
488
+ # @param value [Object, nil] whether or not to expand the file path
489
489
  # @yieldparam object [Object] a reference to the instantiated object
490
490
  # @yieldreturn [Object, nil] dynamically compute whether or not to
491
491
  # perform the file expansion
@@ -1,8 +1,3 @@
1
- #
2
- # Author:: Fletcher Nichol (<fnichol@nichol.ca>)
3
- #
4
- # Copyright (C) 2012, Fletcher Nichol
5
- #
6
1
  # Licensed under the Apache License, Version 2.0 (the "License");
7
2
  # you may not use this file except in compliance with the License.
8
3
  # You may obtain a copy of the License at
@@ -25,8 +20,6 @@ require_relative "../shell_out"
25
20
  module Kitchen
26
21
  module Driver
27
22
  # Base class for a driver.
28
- #
29
- # @author Fletcher Nichol <fnichol@nichol.ca>
30
23
  class Base < Kitchen::Plugin::Base
31
24
  include Configurable
32
25
  include Logging
@@ -1,8 +1,3 @@
1
- #
2
- # Author:: Fletcher Nichol (<fnichol@nichol.ca>)
3
- #
4
- # Copyright (C) 2012, 2013, 2014 Fletcher Nichol
5
- #
6
1
  # Licensed under the Apache License, Version 2.0 (the "License");
7
2
  # you may not use this file except in compliance with the License.
8
3
  # You may obtain a copy of the License at
@@ -1,4 +1,3 @@
1
- #
2
1
  # Licensed under the Apache License, Version 2.0 (the "License");
3
2
  # you may not use this file except in compliance with the License.
4
3
  # You may obtain a copy of the License at
@@ -1,9 +1,3 @@
1
- #
2
- # Author:: Seth Chisamore <schisamo@opscode.com>
3
- #
4
- # Copyright:: Copyright (c) 2013 Opscode, Inc.
5
- # License:: Apache License, Version 2.0
6
- #
7
1
  # Licensed under the Apache License, Version 2.0 (the "License");
8
2
  # you may not use this file except in compliance with the License.
9
3
  # You may obtain a copy of the License at
@@ -1,8 +1,3 @@
1
- #
2
- # Author:: Fletcher Nichol (<fnichol@nichol.ca>)
3
- #
4
- # Copyright (C) 2012, Fletcher Nichol
5
- #
6
1
  # Licensed under the Apache License, Version 2.0 (the "License");
7
2
  # you may not use this file except in compliance with the License.
8
3
  # You may obtain a copy of the License at
@@ -79,7 +79,7 @@ module Kitchen
79
79
  end
80
80
 
81
81
  # Run the init command to create the kitchen tmp directory
82
- conn.execute(init_command)
82
+ conn.execute(encode_for_powershell(init_command))
83
83
 
84
84
  # Upload the install script instead of directly executing the command
85
85
  if install_command
@@ -293,6 +293,7 @@ module Kitchen
293
293
 
294
294
  def encode_for_powershell(script)
295
295
  return script unless windows_os?
296
+ return script if script.nil? || script.empty?
296
297
 
297
298
  utf16le = script.encode(Encoding::UTF_16LE)
298
299
  encoded = [utf16le].pack("m0")
@@ -322,7 +322,7 @@ module Kitchen
322
322
  init_command_vars_for_bourne(dirs)
323
323
  end
324
324
 
325
- encode_for_powershell(prefix_command(shell_code_from_file(vars, "chef_base_init_command")))
325
+ prefix_command(shell_code_from_file(vars, "chef_base_init_command"))
326
326
  end
327
327
 
328
328
  # (see Base#install_command)
@@ -115,7 +115,7 @@ module Kitchen
115
115
  end
116
116
  end
117
117
 
118
- code = powershell_shell? ? %{& #{script}} : sudo(script)
118
+ code = powershell_shell? ? %{& "#{script}"} : sudo(script)
119
119
 
120
120
  prefix_command(wrap_shell_code(code))
121
121
  end
@@ -23,7 +23,7 @@ module Kitchen
23
23
  #
24
24
  # @author Fletcher Nichol <fnichol@nichol.ca>
25
25
  module ShellOut
26
- # Wrapped exception for any interally raised shell out commands.
26
+ # Wrapped exception for any internally raised shell out commands.
27
27
  class ShellCommandFailed < TransientFailure; end
28
28
 
29
29
  # Executes a command in a subshell on the local running system.
@@ -16,5 +16,5 @@
16
16
  # limitations under the License.
17
17
 
18
18
  module Kitchen
19
- VERSION = "3.8.0".freeze
19
+ VERSION = "3.8.1".freeze
20
20
  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.8.0
4
+ version: 3.8.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: 2025-07-12 00:00:00.000000000 Z
11
+ date: 2025-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bcrypt_pbkdf