test-kitchen 2.5.0 → 2.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +0 -11
  3. data/Rakefile +0 -2
  4. data/bin/kitchen +0 -2
  5. data/lib/kitchen.rb +0 -1
  6. data/lib/kitchen/base64_stream.rb +0 -1
  7. data/lib/kitchen/cli.rb +0 -1
  8. data/lib/kitchen/collection.rb +0 -1
  9. data/lib/kitchen/color.rb +0 -1
  10. data/lib/kitchen/command.rb +0 -1
  11. data/lib/kitchen/command/action.rb +0 -1
  12. data/lib/kitchen/command/console.rb +0 -1
  13. data/lib/kitchen/command/diagnose.rb +0 -1
  14. data/lib/kitchen/command/doctor.rb +0 -1
  15. data/lib/kitchen/command/exec.rb +0 -1
  16. data/lib/kitchen/command/list.rb +0 -1
  17. data/lib/kitchen/command/login.rb +0 -1
  18. data/lib/kitchen/command/package.rb +0 -1
  19. data/lib/kitchen/command/sink.rb +0 -1
  20. data/lib/kitchen/command/test.rb +0 -1
  21. data/lib/kitchen/config.rb +0 -1
  22. data/lib/kitchen/configurable.rb +0 -1
  23. data/lib/kitchen/data_munger.rb +0 -1
  24. data/lib/kitchen/diagnostic.rb +0 -1
  25. data/lib/kitchen/driver.rb +0 -1
  26. data/lib/kitchen/driver/base.rb +0 -1
  27. data/lib/kitchen/driver/dummy.rb +0 -1
  28. data/lib/kitchen/driver/exec.rb +0 -1
  29. data/lib/kitchen/driver/proxy.rb +0 -1
  30. data/lib/kitchen/driver/ssh_base.rb +0 -1
  31. data/lib/kitchen/errors.rb +0 -1
  32. data/lib/kitchen/generator/init.rb +0 -1
  33. data/lib/kitchen/instance.rb +0 -1
  34. data/lib/kitchen/lazy_hash.rb +0 -1
  35. data/lib/kitchen/lifecycle_hooks.rb +0 -1
  36. data/lib/kitchen/loader/yaml.rb +0 -1
  37. data/lib/kitchen/logger.rb +0 -1
  38. data/lib/kitchen/logging.rb +0 -1
  39. data/lib/kitchen/login_command.rb +0 -1
  40. data/lib/kitchen/metadata_chopper.rb +0 -1
  41. data/lib/kitchen/platform.rb +0 -1
  42. data/lib/kitchen/plugin.rb +0 -1
  43. data/lib/kitchen/provisioner.rb +0 -1
  44. data/lib/kitchen/provisioner/base.rb +0 -1
  45. data/lib/kitchen/provisioner/chef/berkshelf.rb +0 -1
  46. data/lib/kitchen/provisioner/chef/common_sandbox.rb +0 -1
  47. data/lib/kitchen/provisioner/chef/policyfile.rb +0 -1
  48. data/lib/kitchen/provisioner/chef_apply.rb +2 -3
  49. data/lib/kitchen/provisioner/chef_base.rb +25 -15
  50. data/lib/kitchen/provisioner/chef_solo.rb +0 -1
  51. data/lib/kitchen/provisioner/chef_zero.rb +0 -1
  52. data/lib/kitchen/provisioner/dummy.rb +0 -1
  53. data/lib/kitchen/provisioner/shell.rb +0 -1
  54. data/lib/kitchen/rake_tasks.rb +0 -1
  55. data/lib/kitchen/shell_out.rb +0 -1
  56. data/lib/kitchen/ssh.rb +0 -1
  57. data/lib/kitchen/state_file.rb +0 -1
  58. data/lib/kitchen/suite.rb +0 -1
  59. data/lib/kitchen/thor_tasks.rb +0 -1
  60. data/lib/kitchen/transport.rb +0 -1
  61. data/lib/kitchen/transport/base.rb +0 -1
  62. data/lib/kitchen/transport/dummy.rb +0 -1
  63. data/lib/kitchen/transport/exec.rb +0 -1
  64. data/lib/kitchen/transport/ssh.rb +0 -1
  65. data/lib/kitchen/transport/winrm.rb +0 -1
  66. data/lib/kitchen/util.rb +0 -1
  67. data/lib/kitchen/verifier.rb +0 -1
  68. data/lib/kitchen/verifier/base.rb +0 -1
  69. data/lib/kitchen/verifier/busser.rb +0 -1
  70. data/lib/kitchen/verifier/dummy.rb +0 -1
  71. data/lib/kitchen/verifier/shell.rb +0 -1
  72. data/lib/kitchen/version.rb +1 -2
  73. data/lib/vendor/hash_recursive_merge.rb +0 -1
  74. data/support/chef_base_install_command.ps1 +3 -3
  75. data/support/chef_base_install_command.sh +2 -2
  76. data/templates/init/kitchen.yml.erb +2 -2
  77. data/test-kitchen.gemspec +5 -6
  78. metadata +26 -14
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 16b0681a5bd595ed8f8ee5725ba989e5bfa4b7efb779cf87111408e28b6e676e
4
- data.tar.gz: 61f44e79785bc67b7625f90b10540103c53dd3b019b2574ac54dafec99ad98ae
3
+ metadata.gz: fbc194fbd762658d4d989813aa6eb5aff36dda3859ee7d65eaf080fe033b1fad
4
+ data.tar.gz: f4afc61cf21085c167952eadae6867ffc242c616d283dbfdff8c7e87085d5dfb
5
5
  SHA512:
6
- metadata.gz: 0c35a63439332192b1d3bb200c10bab08863924b9df033796348f8cdde3fd7db7c399dca2089dec475686813c2f5b2be1ad3f00ab20d3416d4e60dd4bd413993
7
- data.tar.gz: 901c84feb84e15e9e83af8d33ed7c72ecb567bd11f0250eba2aa9ae368841ff07cb4b96cf49c64a5d723407c1d2c27e25dad93ec2792655ae8ca393110a34e2a
6
+ metadata.gz: 7278defbe363816e09a07eaa757bc7108d7e87bbbf93dc8f30e1d93d4eda5aebe2b5a826d817a8be20cd123ffaa917f890458568245860d8f0e7ae233428c38b
7
+ data.tar.gz: 509577b9063d96342cfd1491aeae633930ca88dbf18be3b2bee23145850ee8eba1fd8e8581fd11ce583216797eaf9d9f9dff78e8e38997c2f614ba3159a12e10
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
data/Rakefile CHANGED
@@ -1,5 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
-
3
1
  require "bundler/gem_tasks"
4
2
 
5
3
  require "rake/testtask"
@@ -1,6 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
- # -*- encoding: utf-8 -*-
3
-
4
2
  # Trap interrupts to quit cleanly. See
5
3
  # https://twitter.com/mitchellh/status/283014103189053442
6
4
  Signal.trap("INT") { exit 1 }
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Fletcher Nichol (<fnichol@nichol.ca>)
4
3
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Fletcher Nichol (<fnichol@nichol.ca>)
4
3
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Fletcher Nichol (<fnichol@nichol.ca>)
4
3
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Fletcher Nichol (<fnichol@nichol.ca>)
4
3
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Fletcher Nichol (<fnichol@nichol.ca>)
4
3
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Fletcher Nichol (<fnichol@nichol.ca>)
4
3
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Fletcher Nichol (<fnichol@nichol.ca>)
4
3
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Fletcher Nichol (<fnichol@nichol.ca>)
4
3
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Fletcher Nichol (<fnichol@nichol.ca>)
4
3
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  #
4
3
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: SAWANOBORI Yukihiko (<sawanoboriyu@higanworks.com>)
4
3
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Fletcher Nichol (<fnichol@nichol.ca>)
4
3
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Fletcher Nichol (<fnichol@nichol.ca>)
4
3
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  #
4
3
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Fletcher Nichol (<fnichol@nichol.ca>)
4
3
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Fletcher Nichol (<fnichol@nichol.ca>)
4
3
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Fletcher Nichol (<fnichol@nichol.ca>)
4
3
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Fletcher Nichol (<fnichol@nichol.ca>)
4
3
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Fletcher Nichol (<fnichol@nichol.ca>)
4
3
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Fletcher Nichol (<fnichol@nichol.ca>)
4
3
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Fletcher Nichol (<fnichol@nichol.ca>)
4
3
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Fletcher Nichol (<fnichol@nichol.ca>)
4
3
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Fletcher Nichol (<fnichol@nichol.ca>)
4
3
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Licensed under the Apache License, Version 2.0 (the "License");
4
3
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Seth Chisamore <schisamo@opscode.com>
4
3
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Fletcher Nichol (<fnichol@nichol.ca>)
4
3
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Fletcher Nichol (<fnichol@nichol.ca>)
4
3
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Fletcher Nichol (<fnichol@nichol.ca>)
4
3
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Fletcher Nichol (<fnichol@nichol.ca>)
4
3
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Fletcher Nichol (<fnichol@nichol.ca>)
4
3
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Noah Kantrowitz <noah@coderanger.net>
4
3
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Fletcher Nichol (<fnichol@nichol.ca>)
4
3
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Fletcher Nichol (<fnichol@nichol.ca>)
4
3
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Fletcher Nichol (<fnichol@nichol.ca>)
4
3
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Fletcher Nichol (<fnichol@nichol.ca>)
4
3
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Fletcher Nichol (<fnichol@nichol.ca>)
4
3
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Fletcher Nichol (<fnichol@nichol.ca>)
4
3
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Fletcher Nichol (<fnichol@nichol.ca>)
4
3
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Fletcher Nichol (<fnichol@nichol.ca>)
4
3
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Fletcher Nichol (<fnichol@nichol.ca>)
4
3
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Fletcher Nichol (<fnichol@nichol.ca>)
4
3
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Fletcher Nichol (<fnichol@nichol.ca>)
4
3
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Fletcher Nichol (<fnichol@nichol.ca>)
4
3
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: SAWANOBORI Yukihiko <sawanoboriyu@higanworks.com>)
4
3
  #
@@ -30,8 +29,8 @@
30
29
  # name: chef_apply
31
30
  #
32
31
  # platforms:
33
- # - name: ubuntu-16.04
34
- # - name: centos-7
32
+ # - name: ubuntu-20.04
33
+ # - name: centos-8
35
34
  #
36
35
  # suites:
37
36
  # - name: default
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Fletcher Nichol (<fnichol@nichol.ca>)
4
3
  #
@@ -154,7 +153,7 @@ module Kitchen
154
153
 
155
154
  # New Usage #
156
155
  provisioner:
157
- product_name: <chef or chefdk>
156
+ product_name: <chef or chef-workstation>
158
157
  install_strategy: skip
159
158
  MSG
160
159
  when provisioner[:require_chef_omnibus].to_s.match(/\d/)
@@ -167,7 +166,7 @@ module Kitchen
167
166
 
168
167
  # New Usage #
169
168
  provisioner:
170
- product_name: <chef or chefdk>
169
+ product_name: <chef or chef-workstation>
171
170
  product_version: #{provisioner[:require_chef_omnibus]}
172
171
  MSG
173
172
  when provisioner[:require_chef_omnibus] == "latest"
@@ -180,7 +179,7 @@ module Kitchen
180
179
 
181
180
  # New Usage #
182
181
  provisioner:
183
- product_name: <chef or chefdk>
182
+ product_name: <chef or chef-workstation>
184
183
  install_strategy: always
185
184
  MSG
186
185
  end
@@ -200,11 +199,11 @@ module Kitchen
200
199
 
201
200
  # Deprecated Example #
202
201
  provisioner:
203
- chef_omnibus_install_options: -P chefdk -c current
202
+ chef_omnibus_install_options: -P chef-workstation -c current
204
203
 
205
204
  # New Usage #
206
205
  provisioner:
207
- product_name: chefdk
206
+ product_name: chef-workstation
208
207
  channel: current
209
208
  MSG
210
209
 
@@ -217,7 +216,7 @@ module Kitchen
217
216
 
218
217
  # New Usage #
219
218
  provisioner:
220
- product_name: <chef or chefdk>
219
+ product_name: <chef or chef-workstation>
221
220
  download_url: http://direct-download-url
222
221
  MSG
223
222
 
@@ -226,9 +225,9 @@ module Kitchen
226
225
  fully managed by using attribute settings.
227
226
  MSG
228
227
 
229
- # Reads the local Chef::Config object (if present). We do this because
230
- # we want to start bring Chef config and ChefDK tool config closer
231
- # together. For example, we want to configure proxy settings in 1
228
+ # Reads the local Chef::Config object (if present). We do this because
229
+ # we want to start bring Chef config and Chef Workstation config closer
230
+ # together. For example, we want to configure proxy settings in 1
232
231
  # location instead of 3 configuration files.
233
232
  #
234
233
  # @param config [Hash] initial provided configuration
@@ -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(sudo(install_script_contents))
331
+ prefix_command(install_script_contents)
333
332
  end
334
333
 
335
334
  private
@@ -517,6 +516,12 @@ module Kitchen
517
516
  opts[key] = config[key] if config[key]
518
517
  end
519
518
 
519
+ unless windows_os?
520
+ # omnitruck installer does not currently support a tmp dir option on windows
521
+ opts[:install_command_options][:tmp_dir] = config[:root_path]
522
+ opts[:install_command_options]["TMPDIR"] = config[:root_path]
523
+ end
524
+
520
525
  if config[:download_url]
521
526
  opts[:install_command_options][:download_url_override] = config[:download_url]
522
527
  opts[:install_command_options][:checksum] = config[:checksum] if config[:checksum]
@@ -535,7 +540,6 @@ module Kitchen
535
540
  # install.ps1 only supports http_proxy
536
541
  prox.delete_if { |p| %i{https_proxy ftp_proxy no_proxy}.include?(p) } if powershell_shell?
537
542
  end
538
-
539
543
  opts[:install_command_options].merge!(proxies)
540
544
  end)
541
545
  config[:chef_omnibus_root] = installer.root
@@ -554,8 +558,14 @@ module Kitchen
554
558
  end
555
559
 
556
560
  def install_from_file(command)
557
- install_file = "/tmp/chef-installer.sh"
558
- script = ["cat > #{install_file} <<\"EOL\""]
561
+ install_file = "#{config[:root_path]}/chef-installer.sh"
562
+ script = []
563
+ script << "mkdir -p #{config[:root_path]}"
564
+ script << "if [ $? -ne 0 ]; then"
565
+ script << " echo Kitchen config setting root_path: '#{config[:root_path]}' not creatable by regular user "
566
+ script << " exit 1"
567
+ script << "fi"
568
+ script << "cat > #{install_file} <<\"EOL\""
559
569
  script << command
560
570
  script << "EOL"
561
571
  script << "chmod +x #{install_file}"
@@ -570,7 +580,7 @@ module Kitchen
570
580
  config[:require_chef_omnibus], powershell_shell?, install_options
571
581
  )
572
582
  config[:chef_omnibus_root] = installer.root
573
- installer.install_command
583
+ sudo(installer.install_command)
574
584
  end
575
585
 
576
586
  # Hook used in subclasses to indicate support for policyfiles.
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Fletcher Nichol (<fnichol@nichol.ca>)
4
3
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Fletcher Nichol (<fnichol@nichol.ca>)
4
3
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Fletcher Nichol (<fnichol@nichol.ca>)
4
3
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Chris Lundquist (<chris.lundquist@github.com>)
4
3
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Fletcher Nichol (<fnichol@nichol.ca>)
4
3
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Fletcher Nichol (<fnichol@nichol.ca>)
4
3
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Fletcher Nichol (<fnichol@nichol.ca>)
4
3
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Fletcher Nichol (<fnichol@nichol.ca>)
4
3
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Fletcher Nichol (<fnichol@nichol.ca>)
4
3
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Fletcher Nichol (<fnichol@nichol.ca>)
4
3
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Salim Afiune (<salim@afiunemaya.com.mx>)
4
3
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Salim Afiune (<salim@afiunemaya.com.mx>)
4
3
  # Author:: Fletcher Nichol (<fnichol@nichol.ca>)
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Salim Afiune (<salim@afiunemaya.com.mx>)
4
3
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Licensed under the Apache License, Version 2.0 (the "License");
4
3
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Fletcher Nichol (<fnichol@nichol.ca>)
4
3
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Salim Afiune (<salim@afiunemaya.com.mx>)
4
3
  # Author:: Matt Wrock (<matt@mattwrock.com>)
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Fletcher Nichol (<fnichol@nichol.ca>)
4
3
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Fletcher Nichol (<fnichol@nichol.ca>)
4
3
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Fletcher Nichol (<fnichol@nichol.ca>)
4
3
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Fletcher Nichol (<fnichol@nichol.ca>)
4
3
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Fletcher Nichol (<fnichol@nichol.ca>)
4
3
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: SAWANOBORI Yukihiko (<sawanoboriyu@higanworks.com>)
4
3
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # Author:: Fletcher Nichol (<fnichol@nichol.ca>)
4
3
  #
@@ -17,5 +16,5 @@
17
16
  # limitations under the License.
18
17
 
19
18
  module Kitchen
20
- VERSION = "2.5.0".freeze
19
+ VERSION = "2.6.0".freeze
21
20
  end
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  #
3
2
  # = Hash Recursive Merge
4
3
  #
@@ -44,7 +44,7 @@ Function Download-Chef($md_url, $dst) {
44
44
  }
45
45
 
46
46
  Function Install-Chef($msi) {
47
- Log "Installing Chef package $msi"
47
+ Log "Installing Chef Infra Client package $msi"
48
48
  $p = Start-Process -FilePath "msiexec.exe" -ArgumentList "/qn /i $msi" -Passthru -Wait
49
49
 
50
50
  if ($p.ExitCode -ne 0) { throw "msiexec was not successful. Received exit code $($p.ExitCode)" }
@@ -73,11 +73,11 @@ Try {
73
73
  $msi = Unresolve-Path $msi
74
74
 
75
75
  if (Check-UpdateChef $chef_omnibus_root $version) {
76
- Write-Host "-----> Installing Chef package ($pretty_version)`n"
76
+ Write-Host "-----> Installing Chef Infra Client package ($pretty_version)`n"
77
77
  Download-Chef "$chef_metadata_url" $msi
78
78
  Install-Chef $msi
79
79
  } else {
80
- Write-Host "-----> Chef package installation detected ($pretty_version)`n"
80
+ Write-Host "-----> Chef Infra Client package installation detected ($pretty_version)`n"
81
81
  }
82
82
  Catch {
83
83
  Write-Error ($_ | ft -Property * | out-string) -ErrorAction Continue
@@ -206,7 +206,7 @@ unable_to_download() {
206
206
  main() {
207
207
  should_update_chef "$chef_omnibus_root" "$version"
208
208
  if test $? -eq 0; then
209
- echo "-----> Installing Chef package (${pretty_version})";
209
+ echo "-----> Installing Chef Infra Client package (${pretty_version})";
210
210
 
211
211
  # solaris 10 lacks recent enough credentials, so http url is used
212
212
  platform="`/usr/bin/uname -s 2>/dev/null`";
@@ -218,7 +218,7 @@ main() {
218
218
  do_download "$chef_omnibus_url" /tmp/install.sh;
219
219
  $sudo_sh /tmp/install.sh $install_flags;
220
220
  else
221
- echo "-----> Chef package installation detected (${pretty_version})";
221
+ echo "-----> Chef Infra Client package installation detected (${pretty_version})";
222
222
  fi
223
223
  }
224
224
 
@@ -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
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  lib = File.expand_path("../lib", __FILE__)
3
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
3
  require "kitchen/version"
@@ -16,12 +15,12 @@ Gem::Specification.new do |gem|
16
15
  gem.summary = gem.description
17
16
  gem.homepage = "https://kitchen.ci/"
18
17
 
19
- # The gemfile and gemspec are necessary for appbundler in Chef-DK / Workstation
18
+ # The gemfile and gemspec are necessary for appbundler in ChefDK / Workstation
20
19
  gem.files = %w{LICENSE test-kitchen.gemspec Gemfile Rakefile} + Dir.glob("{bin,lib,templates,support}/**/*")
21
20
  gem.executables = %w{kitchen}
22
21
  gem.require_paths = ["lib"]
23
22
 
24
- gem.required_ruby_version = ">= 2.3"
23
+ gem.required_ruby_version = ">= 2.4"
25
24
 
26
25
  gem.add_dependency "mixlib-shellout", ">= 1.2", "< 4.0"
27
26
  gem.add_dependency "net-scp", ">= 1.1", "< 4.0" # pinning until we can confirm 4+ works
@@ -29,20 +28,20 @@ Gem::Specification.new do |gem|
29
28
  gem.add_dependency "net-ssh-gateway", ">= 1.2", "< 3.0" # pinning until we can confirm 3+ works
30
29
  gem.add_dependency "ed25519", "~> 1.2" # ed25519 ssh key support
31
30
  gem.add_dependency "bcrypt_pbkdf", "~> 1.0" # ed25519 ssh key support
32
- gem.add_dependency "thor", "~> 0.19"
31
+ gem.add_dependency "thor", ">= 0.19", "< 2.0"
33
32
  gem.add_dependency "mixlib-install", "~> 3.6"
34
33
  gem.add_dependency "winrm", "~> 2.0"
35
34
  gem.add_dependency "winrm-elevated", "~> 1.0"
36
35
  gem.add_dependency "winrm-fs", "~> 1.1"
37
36
  # Required to run the Chef provisioner local license check for remote systems
38
37
  # TK is not under Chef EULA
39
- gem.add_dependency "license-acceptance", "~> 1.0", ">= 1.0.11"
38
+ gem.add_dependency "license-acceptance", ">= 1.0.11", "< 3.0" # pinning until we can confirm 3+ works
40
39
 
41
40
  gem.add_development_dependency "rb-readline"
42
41
  gem.add_development_dependency "bundler"
43
42
  gem.add_development_dependency "rake"
44
43
 
45
- gem.add_development_dependency "aruba", "~> 0.11"
44
+ gem.add_development_dependency "aruba", "~> 0.11", "< 1.0"
46
45
  gem.add_development_dependency "fakefs", "~> 1.0"
47
46
  gem.add_development_dependency "minitest", "~> 5.3", "< 5.12"
48
47
  gem.add_development_dependency "mocha", "~> 1.1"
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.0
4
+ version: 2.6.0
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-05-06 00:00:00.000000000 Z
11
+ date: 2020-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mixlib-shellout
@@ -122,16 +122,22 @@ dependencies:
122
122
  name: thor
123
123
  requirement: !ruby/object:Gem::Requirement
124
124
  requirements:
125
- - - "~>"
125
+ - - ">="
126
126
  - !ruby/object:Gem::Version
127
127
  version: '0.19'
128
+ - - "<"
129
+ - !ruby/object:Gem::Version
130
+ version: '2.0'
128
131
  type: :runtime
129
132
  prerelease: false
130
133
  version_requirements: !ruby/object:Gem::Requirement
131
134
  requirements:
132
- - - "~>"
135
+ - - ">="
133
136
  - !ruby/object:Gem::Version
134
137
  version: '0.19'
138
+ - - "<"
139
+ - !ruby/object:Gem::Version
140
+ version: '2.0'
135
141
  - !ruby/object:Gem::Dependency
136
142
  name: mixlib-install
137
143
  requirement: !ruby/object:Gem::Requirement
@@ -192,22 +198,22 @@ dependencies:
192
198
  name: license-acceptance
193
199
  requirement: !ruby/object:Gem::Requirement
194
200
  requirements:
195
- - - "~>"
196
- - !ruby/object:Gem::Version
197
- version: '1.0'
198
201
  - - ">="
199
202
  - !ruby/object:Gem::Version
200
203
  version: 1.0.11
204
+ - - "<"
205
+ - !ruby/object:Gem::Version
206
+ version: '3.0'
201
207
  type: :runtime
202
208
  prerelease: false
203
209
  version_requirements: !ruby/object:Gem::Requirement
204
210
  requirements:
205
- - - "~>"
206
- - !ruby/object:Gem::Version
207
- version: '1.0'
208
211
  - - ">="
209
212
  - !ruby/object:Gem::Version
210
213
  version: 1.0.11
214
+ - - "<"
215
+ - !ruby/object:Gem::Version
216
+ version: '3.0'
211
217
  - !ruby/object:Gem::Dependency
212
218
  name: rb-readline
213
219
  requirement: !ruby/object:Gem::Requirement
@@ -257,6 +263,9 @@ dependencies:
257
263
  - - "~>"
258
264
  - !ruby/object:Gem::Version
259
265
  version: '0.11'
266
+ - - "<"
267
+ - !ruby/object:Gem::Version
268
+ version: '1.0'
260
269
  type: :development
261
270
  prerelease: false
262
271
  version_requirements: !ruby/object:Gem::Requirement
@@ -264,6 +273,9 @@ dependencies:
264
273
  - - "~>"
265
274
  - !ruby/object:Gem::Version
266
275
  version: '0.11'
276
+ - - "<"
277
+ - !ruby/object:Gem::Version
278
+ version: '1.0'
267
279
  - !ruby/object:Gem::Dependency
268
280
  name: fakefs
269
281
  requirement: !ruby/object:Gem::Requirement
@@ -472,7 +484,7 @@ homepage: https://kitchen.ci/
472
484
  licenses:
473
485
  - Apache-2.0
474
486
  metadata: {}
475
- post_install_message:
487
+ post_install_message:
476
488
  rdoc_options: []
477
489
  require_paths:
478
490
  - lib
@@ -480,7 +492,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
480
492
  requirements:
481
493
  - - ">="
482
494
  - !ruby/object:Gem::Version
483
- version: '2.3'
495
+ version: '2.4'
484
496
  required_rubygems_version: !ruby/object:Gem::Requirement
485
497
  requirements:
486
498
  - - ">="
@@ -488,7 +500,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
488
500
  version: '0'
489
501
  requirements: []
490
502
  rubygems_version: 3.1.2
491
- signing_key:
503
+ signing_key:
492
504
  specification_version: 4
493
505
  summary: Test Kitchen is an integration tool for developing and testing infrastructure
494
506
  code and software on isolated target platforms.