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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f64adcadcfffbb97c3c6cf5a53c70b592f913fa047a8d0eeb0005cd9465c3ba0
4
- data.tar.gz: d94b2819e5f73b83beba6016b036d99c1cd02f81dd6c9596b1d46f146311f618
3
+ metadata.gz: 15da3669fff472ce1a908562922fa945e8e65a82657b360270e498f17493ace0
4
+ data.tar.gz: 663b1e2800aff7ae63a8c9b2d2333c5af41b69503e116014ea4fde9f2e212438
5
5
  SHA512:
6
- metadata.gz: 2f1988e66f7e15097d664e414579f9b2520ebea535bdfdc80ab159cfb2306c1a783559750d579390436b104aca0e8af2ee8d1f160a1119accc5c15dfae97e068
7
- data.tar.gz: d8c9cd609f9257f934c7e2070b6b1fe95093295d0dfd99d205fdc93575892732b543a893753006184a0b66bf4811fe0f87981229e45966004504b9677ff64358
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
@@ -30,8 +30,8 @@
30
30
  # name: chef_apply
31
31
  #
32
32
  # platforms:
33
- # - name: ubuntu-16.04
34
- # - name: centos-7
33
+ # - name: ubuntu-20.04
34
+ # - name: centos-8
35
35
  #
36
36
  # suites:
37
37
  # - name: default
@@ -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(sudo(install_script_contents))
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 = "/tmp/chef-installer.sh"
558
- script = ["cat > #{install_file} <<\"EOL\""]
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.
@@ -17,5 +17,5 @@
17
17
  # limitations under the License.
18
18
 
19
19
  module Kitchen
20
- VERSION = "2.5.2".freeze
20
+ VERSION = "2.5.3".freeze
21
21
  end
@@ -6,8 +6,8 @@ provisioner:
6
6
  name: <%= config[:provisioner] %>
7
7
 
8
8
  platforms:
9
- - name: ubuntu-18.04
10
- - name: centos-7
9
+ - name: ubuntu-20.04
10
+ - name: centos-8
11
11
 
12
12
  suites:
13
13
  - name: default
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.2
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-06-11 00:00:00.000000000 Z
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.