test-kitchen 2.5.2 → 2.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +0 -11
- data/lib/kitchen/provisioner/chef_apply.rb +2 -2
- data/lib/kitchen/provisioner/chef_base.rb +12 -5
- data/lib/kitchen/version.rb +1 -1
- data/templates/init/kitchen.yml.erb +2 -2
- 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: 15da3669fff472ce1a908562922fa945e8e65a82657b360270e498f17493ace0
|
4
|
+
data.tar.gz: 663b1e2800aff7ae63a8c9b2d2333c5af41b69503e116014ea4fde9f2e212438
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8fa9c1c41866ca32d894a8bd835ab80d389a9e9ea52839b8ec6f19f5a740837d9f57535c9f111d57a97c7649b7097440430ced07bd278e2c99d1f402fe486a0
|
7
|
+
data.tar.gz: e608e44111952e8b46486960a17b79b817b5adde8a83f17863d7332c0f408b11686290fc0ac385aa9dff1f2864495e5e5e9b27c0a489809109c08ad5f7c22ddc
|
data/Gemfile
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
1
|
source "https://rubygems.org"
|
3
2
|
gemspec
|
4
3
|
|
@@ -26,13 +25,3 @@ end
|
|
26
25
|
group :docs do
|
27
26
|
gem "yard"
|
28
27
|
end
|
29
|
-
|
30
|
-
instance_eval(ENV["GEMFILE_MOD"]) if ENV["GEMFILE_MOD"]
|
31
|
-
|
32
|
-
# To avoid bringing in development or test dependencies that are not
|
33
|
-
# absolutely needed, if you want to load tools not present in the gemspec
|
34
|
-
# or this Gemfile, add those additional dependencies into a Gemfile.local
|
35
|
-
# file which is ignored by this repository.
|
36
|
-
# rubocop:disable Security/Eval
|
37
|
-
eval(IO.read(__FILE__ + ".local"), binding) if File.exist?(__FILE__ + ".local")
|
38
|
-
# rubocop:enable Security/Eval
|
@@ -329,7 +329,7 @@ module Kitchen
|
|
329
329
|
return unless config[:require_chef_omnibus] || config[:product_name]
|
330
330
|
return if config[:product_name] && config[:install_strategy] == "skip"
|
331
331
|
|
332
|
-
prefix_command(
|
332
|
+
prefix_command(install_script_contents)
|
333
333
|
end
|
334
334
|
|
335
335
|
private
|
@@ -510,6 +510,8 @@ module Kitchen
|
|
510
510
|
channel: config[:channel].to_sym,
|
511
511
|
install_command_options: {
|
512
512
|
install_strategy: config[:install_strategy],
|
513
|
+
tmp_dir: config[:root_path],
|
514
|
+
"TMPDIR" => config[:root_path],
|
513
515
|
},
|
514
516
|
}.tap do |opts|
|
515
517
|
opts[:shell_type] = :ps1 if powershell_shell?
|
@@ -535,7 +537,6 @@ module Kitchen
|
|
535
537
|
# install.ps1 only supports http_proxy
|
536
538
|
prox.delete_if { |p| %i{https_proxy ftp_proxy no_proxy}.include?(p) } if powershell_shell?
|
537
539
|
end
|
538
|
-
|
539
540
|
opts[:install_command_options].merge!(proxies)
|
540
541
|
end)
|
541
542
|
config[:chef_omnibus_root] = installer.root
|
@@ -554,8 +555,14 @@ module Kitchen
|
|
554
555
|
end
|
555
556
|
|
556
557
|
def install_from_file(command)
|
557
|
-
install_file = "/
|
558
|
-
script = [
|
558
|
+
install_file = "#{config[:root_path]}/chef-installer.sh"
|
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\""
|
559
566
|
script << command
|
560
567
|
script << "EOL"
|
561
568
|
script << "chmod +x #{install_file}"
|
@@ -570,7 +577,7 @@ module Kitchen
|
|
570
577
|
config[:require_chef_omnibus], powershell_shell?, install_options
|
571
578
|
)
|
572
579
|
config[:chef_omnibus_root] = installer.root
|
573
|
-
installer.install_command
|
580
|
+
sudo(installer.install_command)
|
574
581
|
end
|
575
582
|
|
576
583
|
# Hook used in subclasses to indicate support for policyfiles.
|
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: 2.5.
|
4
|
+
version: 2.5.3
|
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-
|
11
|
+
date: 2020-07-10 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.
|