test-kitchen 2.5.3 → 2.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +0 -2
- data/bin/kitchen +0 -2
- data/lib/kitchen.rb +0 -1
- data/lib/kitchen/base64_stream.rb +0 -1
- data/lib/kitchen/cli.rb +0 -1
- data/lib/kitchen/collection.rb +0 -1
- data/lib/kitchen/color.rb +0 -1
- data/lib/kitchen/command.rb +0 -1
- data/lib/kitchen/command/action.rb +0 -1
- data/lib/kitchen/command/console.rb +0 -1
- data/lib/kitchen/command/diagnose.rb +0 -1
- data/lib/kitchen/command/doctor.rb +0 -1
- data/lib/kitchen/command/exec.rb +0 -1
- data/lib/kitchen/command/list.rb +0 -1
- data/lib/kitchen/command/login.rb +0 -1
- data/lib/kitchen/command/package.rb +0 -1
- data/lib/kitchen/command/sink.rb +0 -1
- data/lib/kitchen/command/test.rb +0 -1
- data/lib/kitchen/config.rb +0 -1
- data/lib/kitchen/configurable.rb +0 -1
- data/lib/kitchen/data_munger.rb +0 -1
- data/lib/kitchen/diagnostic.rb +0 -1
- data/lib/kitchen/driver.rb +0 -1
- data/lib/kitchen/driver/base.rb +0 -1
- data/lib/kitchen/driver/dummy.rb +0 -1
- data/lib/kitchen/driver/exec.rb +0 -1
- data/lib/kitchen/driver/proxy.rb +0 -1
- data/lib/kitchen/driver/ssh_base.rb +0 -1
- data/lib/kitchen/errors.rb +0 -1
- data/lib/kitchen/generator/init.rb +0 -1
- data/lib/kitchen/instance.rb +0 -1
- data/lib/kitchen/lazy_hash.rb +0 -1
- data/lib/kitchen/lifecycle_hooks.rb +0 -1
- data/lib/kitchen/loader/yaml.rb +0 -1
- data/lib/kitchen/logger.rb +0 -1
- data/lib/kitchen/logging.rb +0 -1
- data/lib/kitchen/login_command.rb +0 -1
- data/lib/kitchen/metadata_chopper.rb +0 -1
- data/lib/kitchen/platform.rb +0 -1
- data/lib/kitchen/plugin.rb +0 -1
- data/lib/kitchen/provisioner.rb +0 -1
- data/lib/kitchen/provisioner/base.rb +0 -1
- data/lib/kitchen/provisioner/chef/berkshelf.rb +0 -1
- data/lib/kitchen/provisioner/chef/common_sandbox.rb +0 -1
- data/lib/kitchen/provisioner/chef/policyfile.rb +0 -1
- data/lib/kitchen/provisioner/chef_apply.rb +0 -1
- data/lib/kitchen/provisioner/chef_base.rb +5 -13
- data/lib/kitchen/provisioner/chef_solo.rb +0 -1
- data/lib/kitchen/provisioner/chef_zero.rb +0 -1
- data/lib/kitchen/provisioner/dummy.rb +0 -1
- data/lib/kitchen/provisioner/shell.rb +0 -1
- data/lib/kitchen/rake_tasks.rb +0 -1
- data/lib/kitchen/shell_out.rb +0 -1
- data/lib/kitchen/ssh.rb +0 -1
- data/lib/kitchen/state_file.rb +0 -1
- data/lib/kitchen/suite.rb +0 -1
- data/lib/kitchen/thor_tasks.rb +0 -1
- data/lib/kitchen/transport.rb +0 -1
- data/lib/kitchen/transport/base.rb +0 -1
- data/lib/kitchen/transport/dummy.rb +0 -1
- data/lib/kitchen/transport/exec.rb +0 -1
- data/lib/kitchen/transport/ssh.rb +0 -1
- data/lib/kitchen/transport/winrm.rb +0 -1
- data/lib/kitchen/util.rb +0 -1
- data/lib/kitchen/verifier.rb +0 -1
- data/lib/kitchen/verifier/base.rb +0 -1
- data/lib/kitchen/verifier/busser.rb +0 -1
- data/lib/kitchen/verifier/dummy.rb +0 -1
- data/lib/kitchen/verifier/shell.rb +0 -1
- data/lib/kitchen/version.rb +1 -2
- data/lib/vendor/hash_recursive_merge.rb +0 -1
- data/test-kitchen.gemspec +0 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba11941e2fb1db16f6bdb83f86c9822ad222f18f0e26e37a94683fb6fda29042
|
4
|
+
data.tar.gz: 57b12bd55f5b39b0be4fd482dc22666fb62eeb7182a44199b7aadcd90857330f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '095582d89c5645bbace34075c30b95170f9c0d5a5a06067c58e7b348bf4d711d5a068101940b0b035ad371f213eaebef70a695d620aa230fafc4ca86828005f4'
|
7
|
+
data.tar.gz: 7b2c76fcea81d87b976745081682122ed7dec1d63ffba2d99180913871c595c7e17adc511223a996a0e25b277f8e782ec8cd1623479a93d79092eda0ce5a3d03
|
data/Rakefile
CHANGED
data/bin/kitchen
CHANGED
data/lib/kitchen.rb
CHANGED
data/lib/kitchen/cli.rb
CHANGED
data/lib/kitchen/collection.rb
CHANGED
data/lib/kitchen/color.rb
CHANGED
data/lib/kitchen/command.rb
CHANGED
data/lib/kitchen/command/exec.rb
CHANGED
data/lib/kitchen/command/list.rb
CHANGED
data/lib/kitchen/command/sink.rb
CHANGED
data/lib/kitchen/command/test.rb
CHANGED
data/lib/kitchen/config.rb
CHANGED
data/lib/kitchen/configurable.rb
CHANGED
data/lib/kitchen/data_munger.rb
CHANGED
data/lib/kitchen/diagnostic.rb
CHANGED
data/lib/kitchen/driver.rb
CHANGED
data/lib/kitchen/driver/base.rb
CHANGED
data/lib/kitchen/driver/dummy.rb
CHANGED
data/lib/kitchen/driver/exec.rb
CHANGED
data/lib/kitchen/driver/proxy.rb
CHANGED
data/lib/kitchen/errors.rb
CHANGED
data/lib/kitchen/instance.rb
CHANGED
data/lib/kitchen/lazy_hash.rb
CHANGED
data/lib/kitchen/loader/yaml.rb
CHANGED
data/lib/kitchen/logger.rb
CHANGED
data/lib/kitchen/logging.rb
CHANGED
data/lib/kitchen/platform.rb
CHANGED
data/lib/kitchen/plugin.rb
CHANGED
data/lib/kitchen/provisioner.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
1
|
#
|
3
2
|
# Author:: Fletcher Nichol (<fnichol@nichol.ca>)
|
4
3
|
#
|
@@ -329,7 +328,7 @@ module Kitchen
|
|
329
328
|
return unless config[:require_chef_omnibus] || config[:product_name]
|
330
329
|
return if config[:product_name] && config[:install_strategy] == "skip"
|
331
330
|
|
332
|
-
prefix_command(install_script_contents)
|
331
|
+
prefix_command(sudo(install_script_contents))
|
333
332
|
end
|
334
333
|
|
335
334
|
private
|
@@ -510,8 +509,6 @@ module Kitchen
|
|
510
509
|
channel: config[:channel].to_sym,
|
511
510
|
install_command_options: {
|
512
511
|
install_strategy: config[:install_strategy],
|
513
|
-
tmp_dir: config[:root_path],
|
514
|
-
"TMPDIR" => config[:root_path],
|
515
512
|
},
|
516
513
|
}.tap do |opts|
|
517
514
|
opts[:shell_type] = :ps1 if powershell_shell?
|
@@ -537,6 +534,7 @@ module Kitchen
|
|
537
534
|
# install.ps1 only supports http_proxy
|
538
535
|
prox.delete_if { |p| %i{https_proxy ftp_proxy no_proxy}.include?(p) } if powershell_shell?
|
539
536
|
end
|
537
|
+
|
540
538
|
opts[:install_command_options].merge!(proxies)
|
541
539
|
end)
|
542
540
|
config[:chef_omnibus_root] = installer.root
|
@@ -555,14 +553,8 @@ module Kitchen
|
|
555
553
|
end
|
556
554
|
|
557
555
|
def install_from_file(command)
|
558
|
-
install_file = "
|
559
|
-
script = []
|
560
|
-
script << "mkdir -p #{config[:root_path]}"
|
561
|
-
script << "if [ $? -ne 0 ]; then"
|
562
|
-
script << " echo Kitchen config setting root_path: '#{config[:root_path]}' not creatable by regular user "
|
563
|
-
script << " exit 1"
|
564
|
-
script << "fi"
|
565
|
-
script << "cat > #{install_file} <<\"EOL\""
|
556
|
+
install_file = "/tmp/chef-installer.sh"
|
557
|
+
script = ["cat > #{install_file} <<\"EOL\""]
|
566
558
|
script << command
|
567
559
|
script << "EOL"
|
568
560
|
script << "chmod +x #{install_file}"
|
@@ -577,7 +569,7 @@ module Kitchen
|
|
577
569
|
config[:require_chef_omnibus], powershell_shell?, install_options
|
578
570
|
)
|
579
571
|
config[:chef_omnibus_root] = installer.root
|
580
|
-
|
572
|
+
installer.install_command
|
581
573
|
end
|
582
574
|
|
583
575
|
# Hook used in subclasses to indicate support for policyfiles.
|
data/lib/kitchen/rake_tasks.rb
CHANGED
data/lib/kitchen/shell_out.rb
CHANGED
data/lib/kitchen/ssh.rb
CHANGED
data/lib/kitchen/state_file.rb
CHANGED
data/lib/kitchen/suite.rb
CHANGED
data/lib/kitchen/thor_tasks.rb
CHANGED
data/lib/kitchen/transport.rb
CHANGED
data/lib/kitchen/util.rb
CHANGED
data/lib/kitchen/verifier.rb
CHANGED
data/lib/kitchen/version.rb
CHANGED
data/test-kitchen.gemspec
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: 2.5.
|
4
|
+
version: 2.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fletcher Nichol
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-07-
|
11
|
+
date: 2020-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mixlib-shellout
|
@@ -484,7 +484,7 @@ homepage: https://kitchen.ci/
|
|
484
484
|
licenses:
|
485
485
|
- Apache-2.0
|
486
486
|
metadata: {}
|
487
|
-
post_install_message:
|
487
|
+
post_install_message:
|
488
488
|
rdoc_options: []
|
489
489
|
require_paths:
|
490
490
|
- lib
|
@@ -500,7 +500,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
500
500
|
version: '0'
|
501
501
|
requirements: []
|
502
502
|
rubygems_version: 3.1.2
|
503
|
-
signing_key:
|
503
|
+
signing_key:
|
504
504
|
specification_version: 4
|
505
505
|
summary: Test Kitchen is an integration tool for developing and testing infrastructure
|
506
506
|
code and software on isolated target platforms.
|