chef 17.8.25-universal-mingw32 → 17.9.46-universal-mingw32

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 +3 -3
  3. data/README.md +1 -1
  4. data/lib/chef/application/exit_code.rb +7 -21
  5. data/lib/chef/chef_fs/file_system/chef_server/cookbook_file.rb +1 -1
  6. data/lib/chef/chef_fs/file_system/repository/base_file.rb +1 -1
  7. data/lib/chef/chef_fs/file_system/repository/file_system_entry.rb +1 -1
  8. data/lib/chef/compliance/input_collection.rb +1 -1
  9. data/lib/chef/compliance/waiver_collection.rb +1 -1
  10. data/lib/chef/cookbook/syntax_check.rb +1 -1
  11. data/lib/chef/cookbook_uploader.rb +1 -1
  12. data/lib/chef/cookbook_version.rb +1 -1
  13. data/lib/chef/provider/cron.rb +2 -2
  14. data/lib/chef/provider/directory.rb +2 -2
  15. data/lib/chef/provider/ifconfig.rb +5 -5
  16. data/lib/chef/provider/package/yum/python_helper.rb +81 -25
  17. data/lib/chef/provider/package/yum.rb +39 -12
  18. data/lib/chef/provider/package.rb +5 -5
  19. data/lib/chef/provider/user/mac.rb +3 -3
  20. data/lib/chef/provider.rb +4 -1
  21. data/lib/chef/providers.rb +0 -1
  22. data/lib/chef/resource/apt_package.rb +2 -2
  23. data/lib/chef/resource/archive_file.rb +6 -6
  24. data/lib/chef/resource/chef_client_config.rb +2 -3
  25. data/lib/chef/resource/chocolatey_package.rb +3 -3
  26. data/lib/chef/resource/cron/cron.rb +75 -1
  27. data/lib/chef/resource/cron/cron_d.rb +2 -1
  28. data/lib/chef/resource/habitat/habitat_sup.rb +1 -1
  29. data/lib/chef/resource/habitat/habitat_sup_windows.rb +1 -1
  30. data/lib/chef/resource/homebrew_tap.rb +1 -5
  31. data/lib/chef/resource/inspec_waiver_file_entry.rb +1 -1
  32. data/lib/chef/resource/launchd.rb +2 -2
  33. data/lib/chef/resource/lwrp_base.rb +1 -1
  34. data/lib/chef/resource/powershell_package_source.rb +8 -8
  35. data/lib/chef/resource/remote_file.rb +1 -1
  36. data/lib/chef/resource/rhsm_register.rb +3 -3
  37. data/lib/chef/resource/windows_feature_powershell.rb +1 -2
  38. data/lib/chef/resource/windows_task.rb +25 -10
  39. data/lib/chef/resource.rb +2 -2
  40. data/lib/chef/resource_reporter.rb +1 -1
  41. data/lib/chef/run_lock.rb +1 -1
  42. data/lib/chef/secret_fetcher/azure_key_vault.rb +4 -2
  43. data/lib/chef/secret_fetcher/hashi_vault.rb +37 -3
  44. data/lib/chef/util/dsc/configuration_generator.rb +1 -1
  45. data/lib/chef/version.rb +1 -1
  46. data/spec/functional/resource/archive_file_spec.rb +3 -2
  47. data/spec/functional/resource/cookbook_file_spec.rb +1 -1
  48. data/spec/functional/resource/dnf_package_spec.rb +107 -107
  49. data/spec/functional/resource/dsc_script_spec.rb +2 -2
  50. data/spec/functional/resource/template_spec.rb +1 -1
  51. data/spec/functional/resource/yum_package_spec.rb +789 -129
  52. data/spec/integration/client/client_spec.rb +1 -1
  53. data/spec/spec_helper.rb +3 -5
  54. data/spec/support/platform_helpers.rb +1 -1
  55. data/spec/support/ruby_installer.rb +1 -1
  56. data/spec/support/shared/functional/file_resource.rb +2 -2
  57. data/spec/support/shared/functional/http.rb +9 -9
  58. data/spec/support/shared/unit/provider/useradd_based_user_provider.rb +1 -1
  59. data/spec/unit/dsl/registry_helper_spec.rb +6 -6
  60. data/spec/unit/guard_interpreter/resource_guard_interpreter_spec.rb +1 -1
  61. data/spec/unit/lwrp_spec.rb +2 -2
  62. data/spec/unit/provider/dsc_script_spec.rb +8 -8
  63. data/spec/unit/provider/group/usermod_spec.rb +2 -2
  64. data/spec/unit/provider/ifconfig/aix_spec.rb +14 -14
  65. data/spec/unit/provider/ifconfig/debian_spec.rb +1 -1
  66. data/spec/unit/provider/ifconfig/redhat_spec.rb +1 -1
  67. data/spec/unit/provider/ifconfig_spec.rb +3 -3
  68. data/spec/unit/provider/remote_file/cache_control_data_spec.rb +3 -3
  69. data/spec/unit/provider/service/gentoo_service_spec.rb +2 -2
  70. data/spec/unit/provider/service/upstart_service_spec.rb +3 -3
  71. data/spec/unit/provider/user/solaris_spec.rb +1 -1
  72. data/spec/unit/resource/archive_file_spec.rb +1 -2
  73. data/spec/unit/resource/conditional_spec.rb +4 -4
  74. data/spec/unit/resource_spec.rb +2 -2
  75. data/spec/unit/secret_fetcher/hashi_vault_spec.rb +46 -0
  76. metadata +6 -8
  77. data/lib/chef/provider/group/suse.rb +0 -82
  78. data/spec/unit/provider/group/suse_spec.rb +0 -90
@@ -345,7 +345,7 @@ describe Chef::Resource::DscScript, :windows_powershell_dsc_only, :ruby64_only d
345
345
  let(:config_param_section) { config_params }
346
346
  let(:config_flags) { { "#{dsc_user_prefix_param_name}": (dsc_user_prefix).to_s, "#{dsc_user_suffix_param_name}": (dsc_user_suffix).to_s } }
347
347
  it "does not directly contain the user name" do
348
- configuration_script_content = ::File.open(dsc_test_resource.command, &:read)
348
+ configuration_script_content = ::File.read(dsc_test_resource.command)
349
349
  expect(configuration_script_content.include?(dsc_user)).to be(false)
350
350
  end
351
351
  it_behaves_like "a dsc_script with configuration data"
@@ -355,7 +355,7 @@ describe Chef::Resource::DscScript, :windows_powershell_dsc_only, :ruby64_only d
355
355
  let(:dsc_user_code) { dsc_user_env_code }
356
356
 
357
357
  it "does not directly contain the user name" do
358
- configuration_script_content = ::File.open(dsc_test_resource.command, &:read)
358
+ configuration_script_content = ::File.read(dsc_test_resource.command)
359
359
  expect(configuration_script_content.include?(dsc_user)).to be(false)
360
360
  end
361
361
  it_behaves_like "a dsc_script with configuration data"
@@ -21,7 +21,7 @@ require "spec_helper"
21
21
  describe Chef::Resource::Template do
22
22
 
23
23
  def binread(file)
24
- File.open(file, "rb", &:read)
24
+ File.binread(file)
25
25
  end
26
26
 
27
27
  include_context Chef::Resource::File