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 +4 -4
- data/lib/kitchen/config.rb +1 -1
- data/lib/kitchen/configurable.rb +1 -1
- data/lib/kitchen/driver/base.rb +0 -7
- data/lib/kitchen/driver/dummy.rb +0 -5
- data/lib/kitchen/driver/exec.rb +0 -1
- data/lib/kitchen/driver/proxy.rb +0 -6
- data/lib/kitchen/driver/ssh_base.rb +0 -5
- data/lib/kitchen/provisioner/base.rb +2 -1
- data/lib/kitchen/provisioner/chef_base.rb +1 -1
- data/lib/kitchen/provisioner/shell.rb +1 -1
- data/lib/kitchen/shell_out.rb +1 -1
- data/lib/kitchen/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20202cfa53b2c7701a9cf67fa0d48b8d6975b5adbe0c0a6fdac04ccd6fae227a
|
4
|
+
data.tar.gz: 78af76288e703870f132824cd0037cb0e35b5128349e73296d648b75c270fbbe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4935e08c83c27064098f9903cc76728b74c5cbb7cd15c3378ab5809c5fbb52b9890b13b4109cac44287307a78537aeeb80ed60cc31439f51f90ccbbe583a5645
|
7
|
+
data.tar.gz: 5cf63e66b71ef201bae5157f9cf3dcb94682aa7f78611e2669e24466ddb96b101b3818ec1fab4d96283acb483eaaf2e2d3383854140b34f5a3c741ae412dc83d
|
data/lib/kitchen/config.rb
CHANGED
@@ -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
|
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 }
|
data/lib/kitchen/configurable.rb
CHANGED
@@ -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
|
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
|
data/lib/kitchen/driver/base.rb
CHANGED
@@ -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
|
data/lib/kitchen/driver/dummy.rb
CHANGED
@@ -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
|
data/lib/kitchen/driver/exec.rb
CHANGED
data/lib/kitchen/driver/proxy.rb
CHANGED
@@ -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
|
-
|
325
|
+
prefix_command(shell_code_from_file(vars, "chef_base_init_command"))
|
326
326
|
end
|
327
327
|
|
328
328
|
# (see Base#install_command)
|
data/lib/kitchen/shell_out.rb
CHANGED
@@ -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
|
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.
|
data/lib/kitchen/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2025-07-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bcrypt_pbkdf
|