chef 17.10.163 → 18.0.169

Sign up to get free protection for your applications and to get access to all the features.
Files changed (330) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +19 -20
  3. data/README.md +7 -7
  4. data/Rakefile +3 -22
  5. data/{chef-universal-mingw32.gemspec → chef-universal-mingw-ucrt.gemspec} +8 -7
  6. data/chef.gemspec +17 -15
  7. data/lib/chef/api_client_v1.rb +9 -1
  8. data/lib/chef/application/exit_code.rb +3 -3
  9. data/lib/chef/client.rb +182 -0
  10. data/lib/chef/compliance/input.rb +1 -1
  11. data/lib/chef/compliance/profile.rb +1 -1
  12. data/lib/chef/compliance/profile_collection.rb +0 -1
  13. data/lib/chef/compliance/waiver.rb +1 -1
  14. data/lib/chef/cookbook/syntax_check.rb +2 -2
  15. data/lib/chef/dsl/reader_helpers.rb +1 -1
  16. data/lib/chef/dsl/rest_resource.rb +77 -0
  17. data/lib/chef/event_dispatch/base.rb +3 -0
  18. data/lib/chef/exceptions.rb +8 -0
  19. data/lib/chef/http/authenticator.rb +170 -3
  20. data/lib/chef/http/ssl_policies.rb +4 -4
  21. data/lib/chef/mixin/checksum.rb +0 -6
  22. data/lib/chef/mixin/homebrew_user.rb +5 -15
  23. data/lib/chef/mixin/openssl_helper.rb +13 -17
  24. data/lib/chef/mixin/powershell_exec.rb +5 -28
  25. data/lib/chef/node/mixin/immutablize_array.rb +1 -0
  26. data/lib/chef/property.rb +5 -3
  27. data/lib/chef/provider/cron.rb +1 -5
  28. data/lib/chef/provider/file.rb +2 -2
  29. data/lib/chef/provider/group/windows.rb +1 -1
  30. data/lib/chef/provider/http_request.rb +11 -9
  31. data/lib/chef/provider/mount/linux.rb +5 -0
  32. data/lib/chef/provider/mount/mount.rb +8 -0
  33. data/lib/chef/provider/mount/windows.rb +1 -1
  34. data/lib/chef/provider/package/chocolatey.rb +1 -14
  35. data/lib/chef/provider/package/rubygems.rb +1 -1
  36. data/lib/chef/provider/package/windows/msi.rb +2 -2
  37. data/lib/chef/provider/package/windows/registry_uninstall_entry.rb +1 -1
  38. data/lib/chef/provider/package/windows.rb +1 -1
  39. data/lib/chef/provider/package/yum/yum_helper.py +14 -2
  40. data/lib/chef/provider/package/zypper/version.rb +60 -0
  41. data/lib/chef/provider/package/zypper.rb +47 -8
  42. data/lib/chef/provider/service/windows.rb +1 -1
  43. data/lib/chef/provider/user/aix.rb +5 -0
  44. data/lib/chef/provider/user/linux.rb +29 -0
  45. data/lib/chef/provider/user/mac.rb +1 -1
  46. data/lib/chef/provider/user.rb +46 -14
  47. data/lib/chef/provider.rb +1 -1
  48. data/lib/chef/recipe.rb +1 -1
  49. data/lib/chef/resource/_rest_resource.rb +389 -0
  50. data/lib/chef/resource/alternatives.rb +0 -1
  51. data/lib/chef/resource/apt_package.rb +0 -1
  52. data/lib/chef/resource/apt_preference.rb +0 -1
  53. data/lib/chef/resource/apt_repository.rb +0 -1
  54. data/lib/chef/resource/apt_update.rb +0 -1
  55. data/lib/chef/resource/archive_file.rb +0 -1
  56. data/lib/chef/resource/bash.rb +0 -1
  57. data/lib/chef/resource/batch.rb +0 -1
  58. data/lib/chef/resource/bff_package.rb +0 -1
  59. data/lib/chef/resource/breakpoint.rb +0 -1
  60. data/lib/chef/resource/build_essential.rb +0 -1
  61. data/lib/chef/resource/cab_package.rb +0 -1
  62. data/lib/chef/resource/chef_client_config.rb +14 -18
  63. data/lib/chef/resource/chef_client_cron.rb +1 -2
  64. data/lib/chef/resource/chef_client_launchd.rb +2 -2
  65. data/lib/chef/resource/chef_client_scheduled_task.rb +3 -3
  66. data/lib/chef/resource/chef_client_systemd_timer.rb +1 -2
  67. data/lib/chef/resource/chef_client_trusted_certificate.rb +0 -1
  68. data/lib/chef/resource/chef_gem.rb +0 -1
  69. data/lib/chef/resource/chef_handler.rb +0 -1
  70. data/lib/chef/resource/chef_sleep.rb +1 -3
  71. data/lib/chef/resource/chef_vault_secret.rb +0 -1
  72. data/lib/chef/resource/chocolatey_config.rb +0 -1
  73. data/lib/chef/resource/chocolatey_feature.rb +0 -1
  74. data/lib/chef/resource/chocolatey_package.rb +0 -1
  75. data/lib/chef/resource/chocolatey_source.rb +0 -1
  76. data/lib/chef/resource/cookbook_file.rb +0 -1
  77. data/lib/chef/resource/cron/_cron_shared.rb +0 -1
  78. data/lib/chef/resource/cron/cron.rb +0 -1
  79. data/lib/chef/resource/cron/cron_d.rb +15 -1
  80. data/lib/chef/resource/cron_access.rb +0 -1
  81. data/lib/chef/resource/csh.rb +0 -1
  82. data/lib/chef/resource/directory.rb +0 -1
  83. data/lib/chef/resource/dmg_package.rb +0 -1
  84. data/lib/chef/resource/dnf_package.rb +0 -1
  85. data/lib/chef/resource/dpkg_package.rb +0 -1
  86. data/lib/chef/resource/dsc_resource.rb +0 -1
  87. data/lib/chef/resource/dsc_script.rb +0 -1
  88. data/lib/chef/resource/execute.rb +0 -1
  89. data/lib/chef/resource/file.rb +0 -1
  90. data/lib/chef/resource/freebsd_package.rb +0 -1
  91. data/lib/chef/resource/gem_package.rb +0 -1
  92. data/lib/chef/resource/group.rb +25 -2
  93. data/lib/chef/resource/habitat/habitat_package.rb +0 -1
  94. data/lib/chef/resource/habitat/habitat_sup.rb +6 -7
  95. data/lib/chef/resource/habitat/habitat_sup_windows.rb +1 -1
  96. data/lib/chef/resource/habitat_config.rb +0 -1
  97. data/lib/chef/resource/habitat_install.rb +0 -1
  98. data/lib/chef/resource/habitat_service.rb +0 -1
  99. data/lib/chef/resource/habitat_user_toml.rb +0 -1
  100. data/lib/chef/resource/homebrew_cask.rb +8 -8
  101. data/lib/chef/resource/homebrew_package.rb +1 -2
  102. data/lib/chef/resource/homebrew_tap.rb +5 -6
  103. data/lib/chef/resource/homebrew_update.rb +0 -2
  104. data/lib/chef/resource/hostname.rb +0 -1
  105. data/lib/chef/resource/http_request.rb +0 -1
  106. data/lib/chef/resource/ifconfig.rb +0 -1
  107. data/lib/chef/resource/inspec_input.rb +0 -1
  108. data/lib/chef/resource/inspec_waiver.rb +0 -1
  109. data/lib/chef/resource/inspec_waiver_file_entry.rb +2 -3
  110. data/lib/chef/resource/ips_package.rb +0 -1
  111. data/lib/chef/resource/kernel_module.rb +0 -1
  112. data/lib/chef/resource/ksh.rb +0 -1
  113. data/lib/chef/resource/launchd.rb +0 -1
  114. data/lib/chef/resource/link.rb +0 -1
  115. data/lib/chef/resource/locale.rb +2 -6
  116. data/lib/chef/resource/log.rb +0 -1
  117. data/lib/chef/resource/lwrp_base.rb +0 -4
  118. data/lib/chef/resource/macos_userdefaults.rb +5 -10
  119. data/lib/chef/resource/macosx_service.rb +0 -1
  120. data/lib/chef/resource/macports_package.rb +0 -1
  121. data/lib/chef/resource/mdadm.rb +0 -1
  122. data/lib/chef/resource/mount.rb +0 -1
  123. data/lib/chef/resource/msu_package.rb +0 -1
  124. data/lib/chef/resource/notify_group.rb +0 -2
  125. data/lib/chef/resource/ohai.rb +0 -1
  126. data/lib/chef/resource/ohai_hint.rb +0 -1
  127. data/lib/chef/resource/openbsd_package.rb +0 -1
  128. data/lib/chef/resource/openssl_dhparam.rb +0 -2
  129. data/lib/chef/resource/openssl_ec_private_key.rb +0 -2
  130. data/lib/chef/resource/openssl_ec_public_key.rb +0 -2
  131. data/lib/chef/resource/openssl_rsa_private_key.rb +0 -2
  132. data/lib/chef/resource/openssl_rsa_public_key.rb +0 -2
  133. data/lib/chef/resource/openssl_x509_certificate.rb +0 -2
  134. data/lib/chef/resource/openssl_x509_crl.rb +0 -2
  135. data/lib/chef/resource/openssl_x509_request.rb +0 -2
  136. data/lib/chef/resource/osx_profile.rb +0 -1
  137. data/lib/chef/resource/package.rb +0 -1
  138. data/lib/chef/resource/pacman_package.rb +0 -1
  139. data/lib/chef/resource/paludis_package.rb +0 -1
  140. data/lib/chef/resource/perl.rb +0 -1
  141. data/lib/chef/resource/plist.rb +7 -3
  142. data/lib/chef/resource/portage_package.rb +0 -1
  143. data/lib/chef/resource/powershell_package.rb +0 -1
  144. data/lib/chef/resource/powershell_package_source.rb +0 -1
  145. data/lib/chef/resource/powershell_script.rb +0 -1
  146. data/lib/chef/resource/python.rb +0 -1
  147. data/lib/chef/resource/reboot.rb +0 -1
  148. data/lib/chef/resource/registry_key.rb +0 -1
  149. data/lib/chef/resource/remote_directory.rb +0 -1
  150. data/lib/chef/resource/remote_file.rb +0 -1
  151. data/lib/chef/resource/rhsm_errata.rb +0 -1
  152. data/lib/chef/resource/rhsm_errata_level.rb +0 -1
  153. data/lib/chef/resource/rhsm_register.rb +0 -3
  154. data/lib/chef/resource/rhsm_repo.rb +0 -1
  155. data/lib/chef/resource/rhsm_subscription.rb +0 -1
  156. data/lib/chef/resource/route.rb +0 -1
  157. data/lib/chef/resource/rpm_package.rb +0 -1
  158. data/lib/chef/resource/ruby.rb +0 -1
  159. data/lib/chef/resource/ruby_block.rb +0 -1
  160. data/lib/chef/resource/scm/_scm.rb +0 -2
  161. data/lib/chef/resource/scm/git.rb +0 -2
  162. data/lib/chef/resource/scm/subversion.rb +0 -2
  163. data/lib/chef/resource/script.rb +0 -1
  164. data/lib/chef/resource/selinux/common_helpers.rb +47 -0
  165. data/lib/chef/resource/selinux/selinux_debian.erb +18 -0
  166. data/lib/chef/resource/selinux/selinux_default.erb +15 -0
  167. data/lib/chef/resource/selinux_boolean.rb +101 -0
  168. data/lib/chef/resource/selinux_fcontext.rb +160 -0
  169. data/lib/chef/resource/selinux_install.rb +107 -0
  170. data/lib/chef/resource/selinux_module.rb +143 -0
  171. data/lib/chef/resource/selinux_permissive.rb +64 -0
  172. data/lib/chef/resource/selinux_port.rb +118 -0
  173. data/lib/chef/resource/selinux_state.rb +166 -0
  174. data/lib/chef/resource/service.rb +0 -1
  175. data/lib/chef/resource/smartos_package.rb +0 -1
  176. data/lib/chef/resource/snap_package.rb +0 -1
  177. data/lib/chef/resource/solaris_package.rb +0 -1
  178. data/lib/chef/resource/ssh_known_hosts_entry.rb +0 -1
  179. data/lib/chef/resource/sudo.rb +0 -1
  180. data/lib/chef/resource/support/client.erb +5 -6
  181. data/lib/chef/resource/swap_file.rb +0 -1
  182. data/lib/chef/resource/sysctl.rb +1 -2
  183. data/lib/chef/resource/systemd_unit.rb +0 -1
  184. data/lib/chef/resource/template.rb +0 -1
  185. data/lib/chef/resource/timezone.rb +0 -1
  186. data/lib/chef/resource/user/aix_user.rb +0 -1
  187. data/lib/chef/resource/user/linux_user.rb +0 -1
  188. data/lib/chef/resource/user/mac_user.rb +0 -1
  189. data/lib/chef/resource/user/pw_user.rb +0 -1
  190. data/lib/chef/resource/user/solaris_user.rb +0 -1
  191. data/lib/chef/resource/user/windows_user.rb +0 -1
  192. data/lib/chef/resource/user.rb +10 -1
  193. data/lib/chef/resource/user_ulimit.rb +0 -1
  194. data/lib/chef/resource/whyrun_safe_ruby_block.rb +0 -1
  195. data/lib/chef/resource/windows_ad_join.rb +0 -2
  196. data/lib/chef/resource/windows_audit_policy.rb +0 -2
  197. data/lib/chef/resource/windows_auto_run.rb +0 -1
  198. data/lib/chef/resource/windows_defender.rb +0 -1
  199. data/lib/chef/resource/windows_defender_exclusion.rb +0 -1
  200. data/lib/chef/resource/windows_dfs_folder.rb +0 -1
  201. data/lib/chef/resource/windows_dfs_namespace.rb +0 -1
  202. data/lib/chef/resource/windows_dfs_server.rb +0 -1
  203. data/lib/chef/resource/windows_dns_record.rb +0 -1
  204. data/lib/chef/resource/windows_dns_zone.rb +0 -1
  205. data/lib/chef/resource/windows_env.rb +0 -1
  206. data/lib/chef/resource/windows_feature.rb +0 -1
  207. data/lib/chef/resource/windows_feature_dism.rb +0 -1
  208. data/lib/chef/resource/windows_feature_powershell.rb +0 -1
  209. data/lib/chef/resource/windows_firewall_profile.rb +0 -2
  210. data/lib/chef/resource/windows_firewall_rule.rb +0 -1
  211. data/lib/chef/resource/windows_font.rb +2 -3
  212. data/lib/chef/resource/windows_package.rb +0 -1
  213. data/lib/chef/resource/windows_pagefile.rb +0 -2
  214. data/lib/chef/resource/windows_path.rb +0 -1
  215. data/lib/chef/resource/windows_printer.rb +0 -1
  216. data/lib/chef/resource/windows_printer_port.rb +0 -1
  217. data/lib/chef/resource/windows_script.rb +0 -2
  218. data/lib/chef/resource/windows_security_policy.rb +0 -1
  219. data/lib/chef/resource/windows_service.rb +0 -1
  220. data/lib/chef/resource/windows_share.rb +0 -1
  221. data/lib/chef/resource/windows_shortcut.rb +1 -2
  222. data/lib/chef/resource/windows_task.rb +0 -1
  223. data/lib/chef/resource/windows_uac.rb +0 -1
  224. data/lib/chef/resource/windows_update_settings.rb +0 -1
  225. data/lib/chef/resource/windows_user_privilege.rb +0 -1
  226. data/lib/chef/resource/windows_workgroup.rb +0 -1
  227. data/lib/chef/resource/yum_package.rb +0 -1
  228. data/lib/chef/resource/yum_repository.rb +0 -1
  229. data/lib/chef/resource/zypper_package.rb +0 -1
  230. data/lib/chef/resource/zypper_repository.rb +0 -1
  231. data/lib/chef/resource.rb +12 -5
  232. data/lib/chef/resources.rb +7 -0
  233. data/lib/chef/run_context.rb +3 -3
  234. data/lib/chef/secret_fetcher/azure_key_vault.rb +1 -1
  235. data/lib/chef/version.rb +1 -1
  236. data/lib/chef/win32/handle.rb +6 -7
  237. data/lib/chef/win32/registry.rb +7 -3
  238. data/spec/data/rubygems.org/sexp_processor-info +2 -1
  239. data/spec/data/trusted_certs/example.crt +20 -29
  240. data/spec/data/trusted_certs/example_no_cn.crt +34 -30
  241. data/spec/data/trusted_certs/opscode.pem +54 -33
  242. data/spec/functional/resource/chocolatey_package_spec.rb +20 -32
  243. data/spec/functional/resource/dsc_script_spec.rb +1 -1
  244. data/spec/functional/resource/group_spec.rb +26 -42
  245. data/spec/functional/resource/link_spec.rb +8 -8
  246. data/spec/functional/resource/macos_userdefaults_spec.rb +4 -4
  247. data/spec/functional/resource/plist_spec.rb +25 -0
  248. data/spec/functional/resource/user/linux_user_spec.rb +127 -0
  249. data/spec/functional/resource/windows_certificate_spec.rb +1 -26
  250. data/spec/functional/resource/windows_font_spec.rb +12 -9
  251. data/spec/functional/resource/yum_package_spec.rb +1 -17
  252. data/spec/functional/resource/zypper_package_spec.rb +12 -10
  253. data/spec/functional/shell_spec.rb +1 -2
  254. data/spec/functional/version_spec.rb +1 -1
  255. data/spec/functional/win32/registry_spec.rb +0 -3
  256. data/spec/integration/client/client_spec.rb +82 -3
  257. data/spec/integration/client/exit_code_spec.rb +1 -1
  258. data/spec/integration/client/ipv6_spec.rb +1 -1
  259. data/spec/integration/compliance/compliance_spec.rb +1 -1
  260. data/spec/integration/recipes/accumulator_spec.rb +1 -1
  261. data/spec/integration/recipes/lwrp_inline_resources_spec.rb +1 -1
  262. data/spec/integration/recipes/lwrp_spec.rb +1 -1
  263. data/spec/integration/recipes/notifies_spec.rb +1 -1
  264. data/spec/integration/recipes/notifying_block_spec.rb +1 -1
  265. data/spec/integration/recipes/remote_directory.rb +1 -1
  266. data/spec/integration/recipes/unified_mode_spec.rb +1 -1
  267. data/spec/integration/recipes/use_partial_spec.rb +2 -1
  268. data/spec/integration/solo/solo_spec.rb +2 -2
  269. data/spec/spec_helper.rb +1 -5
  270. data/spec/support/platform_helpers.rb +0 -4
  271. data/spec/support/ruby_installer.rb +1 -1
  272. data/spec/support/shared/functional/windows_script.rb +2 -2
  273. data/spec/unit/application/client_spec.rb +0 -10
  274. data/spec/unit/client_spec.rb +70 -2
  275. data/spec/unit/compliance/reporter/chef_server_automate_spec.rb +1 -1
  276. data/spec/unit/cookbook/syntax_check_spec.rb +3 -0
  277. data/spec/unit/http/authenticator_spec.rb +68 -0
  278. data/spec/unit/mixin/checksum_spec.rb +0 -28
  279. data/spec/unit/mixin/homebrew_user_spec.rb +7 -30
  280. data/spec/unit/mixin/openssl_helper_spec.rb +1 -1
  281. data/spec/unit/mixin/powershell_exec_spec.rb +5 -5
  282. data/spec/unit/platform/query_helpers_spec.rb +2 -17
  283. data/spec/unit/provider/cron_spec.rb +0 -34
  284. data/spec/unit/provider/http_request_spec.rb +60 -72
  285. data/spec/unit/provider/mount/linux_spec.rb +10 -0
  286. data/spec/unit/provider/package/chocolatey_spec.rb +3 -20
  287. data/spec/unit/provider/package/rubygems_spec.rb +1 -1
  288. data/spec/unit/provider/package/zypper_spec.rb +32 -0
  289. data/spec/unit/provider/user/linux_spec.rb +51 -11
  290. data/spec/unit/provider/user_spec.rb +24 -6
  291. data/spec/unit/resource/archive_file_spec.rb +1 -1
  292. data/spec/unit/resource/chef_client_cron_spec.rb +5 -0
  293. data/spec/unit/resource/chef_client_launchd_spec.rb +5 -0
  294. data/spec/unit/resource/chef_client_scheduled_task_spec.rb +5 -0
  295. data/spec/unit/resource/chef_client_systemd_timer_spec.rb +2 -2
  296. data/spec/unit/resource/cron_d_spec.rb +37 -1
  297. data/spec/unit/resource/macos_user_defaults_spec.rb +4 -4
  298. data/spec/unit/resource/rest_resource_spec.rb +381 -0
  299. data/spec/unit/resource/selinux_boolean_spec.rb +92 -0
  300. data/spec/unit/resource/selinux_fcontext_spec.rb +65 -0
  301. data/spec/unit/resource/selinux_install_spec.rb +60 -0
  302. data/spec/unit/resource/selinux_module_spec.rb +55 -0
  303. data/spec/unit/resource/selinux_permissive_spec.rb +39 -0
  304. data/spec/unit/resource/selinux_port_spec.rb +42 -0
  305. data/spec/unit/resource/selinux_state_spec.rb +46 -0
  306. data/spec/unit/resource/sysctl_spec.rb +2 -2
  307. data/spec/unit/resource/user/linux_user_spec.rb +42 -0
  308. data/spec/unit/resource_spec.rb +8 -2
  309. data/spec/unit/util/dsc/local_configuration_manager_spec.rb +1 -1
  310. data/tasks/rspec.rb +1 -1
  311. metadata +106 -55
  312. data/spec/functional/assets/yumrepo-empty/repodata/01a3b-filelists.sqlite.bz2 +0 -0
  313. data/spec/functional/assets/yumrepo-empty/repodata/401dc-filelists.xml.gz +0 -0
  314. data/spec/functional/assets/yumrepo-empty/repodata/5dc1e-primary.sqlite.bz2 +0 -0
  315. data/spec/functional/assets/yumrepo-empty/repodata/6bf96-other.xml.gz +0 -0
  316. data/spec/functional/assets/yumrepo-empty/repodata/7c365-other.sqlite.bz2 +0 -0
  317. data/spec/functional/assets/yumrepo-empty/repodata/dabe2-primary.xml.gz +0 -0
  318. data/spec/functional/assets/yumrepo-empty/repodata/repomd.xml +0 -55
  319. data/spec/integration/client/fips_spec.rb +0 -29
  320. data/spec/integration/client/open_ssl_spec.rb +0 -20
  321. /data/spec/functional/assets/chocolatey_feed/{test-A.1.0.0.nupkg → test-A.1.0.nupkg} +0 -0
  322. /data/spec/functional/assets/chocolatey_feed/{test-A.1.5.0.nupkg → test-A.1.5.nupkg} +0 -0
  323. /data/spec/functional/assets/chocolatey_feed/{test-A.2.0.0.nupkg → test-A.2.0.nupkg} +0 -0
  324. /data/spec/functional/assets/chocolatey_feed/{test-B.1.0.0.nupkg → test-B.1.0.nupkg} +0 -0
  325. /data/spec/functional/assets/yumrepo/repodata/{01a3b-filelists.sqlite.bz2 → 4632d67cb92636e7575d911c24f0e04d3505a944e97c483abe0c3e73a7c62d33-filelists.sqlite.bz2} +0 -0
  326. /data/spec/functional/assets/yumrepo/repodata/{6bf96-other.xml.gz → 74599b793e54d877323837d2d81a1c3c594c44e4335f9528234bb490f7b9b439-other.xml.gz} +0 -0
  327. /data/spec/functional/assets/yumrepo/repodata/{5dc1e-primary.sqlite.bz2 → a845d418f919d2115ab95a56b2c76f6825ad0d0bede49181a55c04f58995d057-primary.sqlite.bz2} +0 -0
  328. /data/spec/functional/assets/yumrepo/repodata/{7c365-other.sqlite.bz2 → af9b7cf9ef23bd7b43068d74a460f3b5d06753d638e58e4a0c9edc35bfb9cdc4-other.sqlite.bz2} +0 -0
  329. /data/spec/functional/assets/yumrepo/repodata/{401dc-filelists.xml.gz → bdb4f5f1492a3b9532f22c43110a81500dd744f23da0aec5c33b2a41317c737d-filelists.xml.gz} +0 -0
  330. /data/spec/functional/assets/yumrepo/repodata/{dabe2-primary.xml.gz → c10d1d34ce99e02f12ec96ef68360543ab1bb7c3cb81a4a2bf78df7d8597e9df-primary.xml.gz} +0 -0
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef
3
3
  version: !ruby/object:Gem::Version
4
- version: 17.10.163
4
+ version: 18.0.169
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Jacob
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-15 00:00:00.000000000 Z
11
+ date: 2022-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef-config
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 17.10.163
19
+ version: 18.0.169
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 17.10.163
26
+ version: 18.0.169
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: chef-utils
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 17.10.163
33
+ version: 18.0.169
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 17.10.163
40
+ version: 18.0.169
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: train-core
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -45,9 +45,9 @@ dependencies:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '3.10'
48
- - - "<"
48
+ - - ">="
49
49
  - !ruby/object:Gem::Version
50
- version: 3.12.5
50
+ version: 3.2.28
51
51
  type: :runtime
52
52
  prerelease: false
53
53
  version_requirements: !ruby/object:Gem::Requirement
@@ -55,9 +55,9 @@ dependencies:
55
55
  - - "~>"
56
56
  - !ruby/object:Gem::Version
57
57
  version: '3.10'
58
- - - "<"
58
+ - - ">="
59
59
  - !ruby/object:Gem::Version
60
- version: 3.12.5
60
+ version: 3.2.28
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: train-winrm
63
63
  requirement: !ruby/object:Gem::Requirement
@@ -72,6 +72,20 @@ dependencies:
72
72
  - - ">="
73
73
  - !ruby/object:Gem::Version
74
74
  version: 0.2.5
75
+ - !ruby/object:Gem::Dependency
76
+ name: train-rest
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ version: 0.4.1
82
+ type: :runtime
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: 0.4.1
75
89
  - !ruby/object:Gem::Dependency
76
90
  name: license-acceptance
77
91
  requirement: !ruby/object:Gem::Requirement
@@ -198,62 +212,56 @@ dependencies:
198
212
  requirements:
199
213
  - - "~>"
200
214
  - !ruby/object:Gem::Version
201
- version: '17.9'
215
+ version: '18.0'
202
216
  type: :runtime
203
217
  prerelease: false
204
218
  version_requirements: !ruby/object:Gem::Requirement
205
219
  requirements:
206
220
  - - "~>"
207
221
  - !ruby/object:Gem::Version
208
- version: '17.9'
222
+ version: '18.0'
209
223
  - !ruby/object:Gem::Dependency
210
224
  name: inspec-core
211
225
  requirement: !ruby/object:Gem::Requirement
212
226
  requirements:
213
- - - "~>"
227
+ - - ">="
214
228
  - !ruby/object:Gem::Version
215
- version: 5.22.40
229
+ version: '5'
216
230
  type: :runtime
217
231
  prerelease: false
218
232
  version_requirements: !ruby/object:Gem::Requirement
219
233
  requirements:
220
- - - "~>"
234
+ - - ">="
221
235
  - !ruby/object:Gem::Version
222
- version: 5.22.40
236
+ version: '5'
223
237
  - !ruby/object:Gem::Dependency
224
238
  name: ffi
225
239
  requirement: !ruby/object:Gem::Requirement
226
240
  requirements:
227
- - - "~>"
241
+ - - ">="
228
242
  - !ruby/object:Gem::Version
229
243
  version: 1.15.5
230
244
  type: :runtime
231
245
  prerelease: false
232
246
  version_requirements: !ruby/object:Gem::Requirement
233
247
  requirements:
234
- - - "~>"
248
+ - - ">="
235
249
  - !ruby/object:Gem::Version
236
250
  version: 1.15.5
237
251
  - !ruby/object:Gem::Dependency
238
252
  name: ffi-yajl
239
253
  requirement: !ruby/object:Gem::Requirement
240
254
  requirements:
241
- - - ">="
255
+ - - "~>"
242
256
  - !ruby/object:Gem::Version
243
257
  version: '2.2'
244
- - - "<"
245
- - !ruby/object:Gem::Version
246
- version: '4.0'
247
258
  type: :runtime
248
259
  prerelease: false
249
260
  version_requirements: !ruby/object:Gem::Requirement
250
261
  requirements:
251
- - - ">="
262
+ - - "~>"
252
263
  - !ruby/object:Gem::Version
253
264
  version: '2.2'
254
- - - "<"
255
- - !ruby/object:Gem::Version
256
- version: '4.0'
257
265
  - !ruby/object:Gem::Dependency
258
266
  name: net-sftp
259
267
  requirement: !ruby/object:Gem::Requirement
@@ -263,7 +271,7 @@ dependencies:
263
271
  version: 2.1.2
264
272
  - - "<"
265
273
  - !ruby/object:Gem::Version
266
- version: '5.0'
274
+ version: '4.0'
267
275
  type: :runtime
268
276
  prerelease: false
269
277
  version_requirements: !ruby/object:Gem::Requirement
@@ -273,7 +281,21 @@ dependencies:
273
281
  version: 2.1.2
274
282
  - - "<"
275
283
  - !ruby/object:Gem::Version
276
- version: '5.0'
284
+ version: '4.0'
285
+ - !ruby/object:Gem::Dependency
286
+ name: net-ftp
287
+ requirement: !ruby/object:Gem::Requirement
288
+ requirements:
289
+ - - ">="
290
+ - !ruby/object:Gem::Version
291
+ version: '0'
292
+ type: :runtime
293
+ prerelease: false
294
+ version_requirements: !ruby/object:Gem::Requirement
295
+ requirements:
296
+ - - ">="
297
+ - !ruby/object:Gem::Version
298
+ version: '0'
277
299
  - !ruby/object:Gem::Dependency
278
300
  name: erubis
279
301
  requirement: !ruby/object:Gem::Requirement
@@ -438,6 +460,20 @@ dependencies:
438
460
  - - "<"
439
461
  - !ruby/object:Gem::Version
440
462
  version: '3.0'
463
+ - !ruby/object:Gem::Dependency
464
+ name: unf_ext
465
+ requirement: !ruby/object:Gem::Requirement
466
+ requirements:
467
+ - - ">="
468
+ - !ruby/object:Gem::Version
469
+ version: 0.0.8.2
470
+ type: :runtime
471
+ prerelease: false
472
+ version_requirements: !ruby/object:Gem::Requirement
473
+ requirements:
474
+ - - ">="
475
+ - !ruby/object:Gem::Version
476
+ version: 0.0.8.2
441
477
  - !ruby/object:Gem::Dependency
442
478
  name: corefoundation
443
479
  requirement: !ruby/object:Gem::Requirement
@@ -453,19 +489,19 @@ dependencies:
453
489
  - !ruby/object:Gem::Version
454
490
  version: 0.3.4
455
491
  - !ruby/object:Gem::Dependency
456
- name: proxifier2
492
+ name: proxifier
457
493
  requirement: !ruby/object:Gem::Requirement
458
494
  requirements:
459
495
  - - "~>"
460
496
  - !ruby/object:Gem::Version
461
- version: '1.1'
497
+ version: '1.0'
462
498
  type: :runtime
463
499
  prerelease: false
464
500
  version_requirements: !ruby/object:Gem::Requirement
465
501
  requirements:
466
502
  - - "~>"
467
503
  - !ruby/object:Gem::Version
468
- version: '1.1'
504
+ version: '1.0'
469
505
  - !ruby/object:Gem::Dependency
470
506
  name: aws-sdk-s3
471
507
  requirement: !ruby/object:Gem::Requirement
@@ -500,14 +536,14 @@ dependencies:
500
536
  requirements:
501
537
  - - "~>"
502
538
  - !ruby/object:Gem::Version
503
- version: 0.18.2
539
+ version: '0.16'
504
540
  type: :runtime
505
541
  prerelease: false
506
542
  version_requirements: !ruby/object:Gem::Requirement
507
543
  requirements:
508
544
  - - "~>"
509
545
  - !ruby/object:Gem::Version
510
- version: 0.18.2
546
+ version: '0.16'
511
547
  description: A systems integration framework, built to bring the benefits of configuration
512
548
  management to your entire infrastructure.
513
549
  email: adam@chef.io
@@ -521,7 +557,7 @@ files:
521
557
  - LICENSE
522
558
  - README.md
523
559
  - Rakefile
524
- - chef-universal-mingw32.gemspec
560
+ - chef-universal-mingw-ucrt.gemspec
525
561
  - chef.gemspec
526
562
  - lib/chef.rb
527
563
  - lib/chef/action_collection.rb
@@ -706,6 +742,7 @@ files:
706
742
  - lib/chef/dsl/registry_helper.rb
707
743
  - lib/chef/dsl/render_helpers.rb
708
744
  - lib/chef/dsl/resources.rb
745
+ - lib/chef/dsl/rest_resource.rb
709
746
  - lib/chef/dsl/secret.rb
710
747
  - lib/chef/dsl/toml.rb
711
748
  - lib/chef/dsl/universal.rb
@@ -938,6 +975,7 @@ files:
938
975
  - lib/chef/provider/package/yum/yum_cache.rb
939
976
  - lib/chef/provider/package/yum/yum_helper.py
940
977
  - lib/chef/provider/package/zypper.rb
978
+ - lib/chef/provider/package/zypper/version.rb
941
979
  - lib/chef/provider/powershell_script.rb
942
980
  - lib/chef/provider/registry_key.rb
943
981
  - lib/chef/provider/remote_directory.rb
@@ -998,6 +1036,7 @@ files:
998
1036
  - lib/chef/request_id.rb
999
1037
  - lib/chef/reserved_names.rb
1000
1038
  - lib/chef/resource.rb
1039
+ - lib/chef/resource/_rest_resource.rb
1001
1040
  - lib/chef/resource/action_class.rb
1002
1041
  - lib/chef/resource/alternatives.rb
1003
1042
  - lib/chef/resource/apt_package.rb
@@ -1123,6 +1162,16 @@ files:
1123
1162
  - lib/chef/resource/scm/git.rb
1124
1163
  - lib/chef/resource/scm/subversion.rb
1125
1164
  - lib/chef/resource/script.rb
1165
+ - lib/chef/resource/selinux/common_helpers.rb
1166
+ - lib/chef/resource/selinux/selinux_debian.erb
1167
+ - lib/chef/resource/selinux/selinux_default.erb
1168
+ - lib/chef/resource/selinux_boolean.rb
1169
+ - lib/chef/resource/selinux_fcontext.rb
1170
+ - lib/chef/resource/selinux_install.rb
1171
+ - lib/chef/resource/selinux_module.rb
1172
+ - lib/chef/resource/selinux_permissive.rb
1173
+ - lib/chef/resource/selinux_port.rb
1174
+ - lib/chef/resource/selinux_state.rb
1126
1175
  - lib/chef/resource/service.rb
1127
1176
  - lib/chef/resource/smartos_package.rb
1128
1177
  - lib/chef/resource/snap_package.rb
@@ -1669,23 +1718,16 @@ files:
1669
1718
  - spec/functional/assets/PkgA.1.0.0.0.bff
1670
1719
  - spec/functional/assets/PkgA.2.0.0.0.bff
1671
1720
  - spec/functional/assets/chefinittest
1672
- - spec/functional/assets/chocolatey_feed/test-A.1.0.0.nupkg
1673
- - spec/functional/assets/chocolatey_feed/test-A.1.5.0.nupkg
1674
- - spec/functional/assets/chocolatey_feed/test-A.2.0.0.nupkg
1675
- - spec/functional/assets/chocolatey_feed/test-B.1.0.0.nupkg
1721
+ - spec/functional/assets/chocolatey_feed/test-A.1.0.nupkg
1722
+ - spec/functional/assets/chocolatey_feed/test-A.1.5.nupkg
1723
+ - spec/functional/assets/chocolatey_feed/test-A.2.0.nupkg
1724
+ - spec/functional/assets/chocolatey_feed/test-B.1.0.nupkg
1676
1725
  - spec/functional/assets/dummy-1-0.aix6.1.noarch.rpm
1677
1726
  - spec/functional/assets/dummy-2-0.aix6.1.noarch.rpm
1678
1727
  - spec/functional/assets/inittest
1679
1728
  - spec/functional/assets/mytest-1.0-1.noarch.rpm
1680
1729
  - spec/functional/assets/mytest-2.0-1.noarch.rpm
1681
1730
  - spec/functional/assets/testchefsubsys
1682
- - spec/functional/assets/yumrepo-empty/repodata/01a3b-filelists.sqlite.bz2
1683
- - spec/functional/assets/yumrepo-empty/repodata/401dc-filelists.xml.gz
1684
- - spec/functional/assets/yumrepo-empty/repodata/5dc1e-primary.sqlite.bz2
1685
- - spec/functional/assets/yumrepo-empty/repodata/6bf96-other.xml.gz
1686
- - spec/functional/assets/yumrepo-empty/repodata/7c365-other.sqlite.bz2
1687
- - spec/functional/assets/yumrepo-empty/repodata/dabe2-primary.xml.gz
1688
- - spec/functional/assets/yumrepo-empty/repodata/repomd.xml
1689
1731
  - spec/functional/assets/yumrepo/chef_rpm-1.10-1.aarch64.rpm
1690
1732
  - spec/functional/assets/yumrepo/chef_rpm-1.10-1.i686.rpm
1691
1733
  - spec/functional/assets/yumrepo/chef_rpm-1.10-1.ppc64.rpm
@@ -1700,12 +1742,12 @@ files:
1700
1742
  - spec/functional/assets/yumrepo/chef_rpm-1.2-1.s390x.rpm
1701
1743
  - spec/functional/assets/yumrepo/chef_rpm-1.2-1.src.rpm
1702
1744
  - spec/functional/assets/yumrepo/chef_rpm-1.2-1.x86_64.rpm
1703
- - spec/functional/assets/yumrepo/repodata/01a3b-filelists.sqlite.bz2
1704
- - spec/functional/assets/yumrepo/repodata/401dc-filelists.xml.gz
1705
- - spec/functional/assets/yumrepo/repodata/5dc1e-primary.sqlite.bz2
1706
- - spec/functional/assets/yumrepo/repodata/6bf96-other.xml.gz
1707
- - spec/functional/assets/yumrepo/repodata/7c365-other.sqlite.bz2
1708
- - spec/functional/assets/yumrepo/repodata/dabe2-primary.xml.gz
1745
+ - spec/functional/assets/yumrepo/repodata/4632d67cb92636e7575d911c24f0e04d3505a944e97c483abe0c3e73a7c62d33-filelists.sqlite.bz2
1746
+ - spec/functional/assets/yumrepo/repodata/74599b793e54d877323837d2d81a1c3c594c44e4335f9528234bb490f7b9b439-other.xml.gz
1747
+ - spec/functional/assets/yumrepo/repodata/a845d418f919d2115ab95a56b2c76f6825ad0d0bede49181a55c04f58995d057-primary.sqlite.bz2
1748
+ - spec/functional/assets/yumrepo/repodata/af9b7cf9ef23bd7b43068d74a460f3b5d06753d638e58e4a0c9edc35bfb9cdc4-other.sqlite.bz2
1749
+ - spec/functional/assets/yumrepo/repodata/bdb4f5f1492a3b9532f22c43110a81500dd744f23da0aec5c33b2a41317c737d-filelists.xml.gz
1750
+ - spec/functional/assets/yumrepo/repodata/c10d1d34ce99e02f12ec96ef68360543ab1bb7c3cb81a4a2bf78df7d8597e9df-primary.xml.gz
1709
1751
  - spec/functional/assets/yumrepo/repodata/filelists.xml.gz
1710
1752
  - spec/functional/assets/yumrepo/repodata/other.xml.gz
1711
1753
  - spec/functional/assets/yumrepo/repodata/primary.xml.gz
@@ -1765,6 +1807,7 @@ files:
1765
1807
  - spec/functional/resource/mount_spec.rb
1766
1808
  - spec/functional/resource/msu_package_spec.rb
1767
1809
  - spec/functional/resource/ohai_spec.rb
1810
+ - spec/functional/resource/plist_spec.rb
1768
1811
  - spec/functional/resource/powershell_package_source_spec.rb
1769
1812
  - spec/functional/resource/powershell_script_spec.rb
1770
1813
  - spec/functional/resource/reboot_spec.rb
@@ -1774,6 +1817,7 @@ files:
1774
1817
  - spec/functional/resource/rpm_spec.rb
1775
1818
  - spec/functional/resource/template_spec.rb
1776
1819
  - spec/functional/resource/timezone_spec.rb
1820
+ - spec/functional/resource/user/linux_user_spec.rb
1777
1821
  - spec/functional/resource/user/mac_user_spec.rb
1778
1822
  - spec/functional/resource/user/windows_spec.rb
1779
1823
  - spec/functional/resource/windows_certificate_spec.rb
@@ -1804,9 +1848,7 @@ files:
1804
1848
  - spec/functional/win32/versions_spec.rb
1805
1849
  - spec/integration/client/client_spec.rb
1806
1850
  - spec/integration/client/exit_code_spec.rb
1807
- - spec/integration/client/fips_spec.rb
1808
1851
  - spec/integration/client/ipv6_spec.rb
1809
- - spec/integration/client/open_ssl_spec.rb
1810
1852
  - spec/integration/compliance/compliance_spec.rb
1811
1853
  - spec/integration/ohai/ohai_spec.rb
1812
1854
  - spec/integration/recipes/accumulator_spec.rb
@@ -2263,6 +2305,7 @@ files:
2263
2305
  - spec/unit/resource/remote_directory_spec.rb
2264
2306
  - spec/unit/resource/remote_file_spec.rb
2265
2307
  - spec/unit/resource/resource_notification_spec.rb
2308
+ - spec/unit/resource/rest_resource_spec.rb
2266
2309
  - spec/unit/resource/rhsm_errata_level_spec.rb
2267
2310
  - spec/unit/resource/rhsm_errata_spec.rb
2268
2311
  - spec/unit/resource/rhsm_register_spec.rb
@@ -2276,6 +2319,13 @@ files:
2276
2319
  - spec/unit/resource/scm/scm.rb
2277
2320
  - spec/unit/resource/scm/subversion_spec.rb
2278
2321
  - spec/unit/resource/script_spec.rb
2322
+ - spec/unit/resource/selinux_boolean_spec.rb
2323
+ - spec/unit/resource/selinux_fcontext_spec.rb
2324
+ - spec/unit/resource/selinux_install_spec.rb
2325
+ - spec/unit/resource/selinux_module_spec.rb
2326
+ - spec/unit/resource/selinux_permissive_spec.rb
2327
+ - spec/unit/resource/selinux_port_spec.rb
2328
+ - spec/unit/resource/selinux_state_spec.rb
2279
2329
  - spec/unit/resource/service_spec.rb
2280
2330
  - spec/unit/resource/smartos_package_spec.rb
2281
2331
  - spec/unit/resource/snap_package_spec.rb
@@ -2287,6 +2337,7 @@ files:
2287
2337
  - spec/unit/resource/systemd_unit_spec.rb
2288
2338
  - spec/unit/resource/template_spec.rb
2289
2339
  - spec/unit/resource/timezone_spec.rb
2340
+ - spec/unit/resource/user/linux_user_spec.rb
2290
2341
  - spec/unit/resource/user/windows_user_spec.rb
2291
2342
  - spec/unit/resource/user_spec.rb
2292
2343
  - spec/unit/resource/user_ulimit_spec.rb
@@ -2389,7 +2440,7 @@ licenses:
2389
2440
  - Apache-2.0
2390
2441
  metadata:
2391
2442
  bug_tracker_uri: https://github.com/chef/chef/issues
2392
- changelog_uri: https://github.com/chef/chef/blob/master/CHANGELOG.md
2443
+ changelog_uri: https://github.com/chef/chef/blob/main/CHANGELOG.md
2393
2444
  documentation_uri: https://docs.chef.io/
2394
2445
  homepage_uri: https://www.chef.io
2395
2446
  mailing_list_uri: https://discourse.chef.io/
@@ -2402,7 +2453,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
2402
2453
  requirements:
2403
2454
  - - ">="
2404
2455
  - !ruby/object:Gem::Version
2405
- version: 3.0.0
2456
+ version: 3.0.3
2406
2457
  required_rubygems_version: !ruby/object:Gem::Requirement
2407
2458
  requirements:
2408
2459
  - - ">="
@@ -1,55 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <repomd xmlns="http://linux.duke.edu/metadata/repo" xmlns:rpm="http://linux.duke.edu/metadata/rpm">
3
- <revision>1667508211</revision>
4
- <data type="filelists">
5
- <checksum type="sha256">401dc19bda88c82c403423fb835844d64345f7e95f5b9835888189c03834cc93</checksum>
6
- <open-checksum type="sha256">bf9808b81cb2dbc54b4b8e35adc584ddcaa73bd81f7088d73bf7dbbada961310</open-checksum>
7
- <location href="repodata/401dc-filelists.xml.gz"/>
8
- <timestamp>1667508211</timestamp>
9
- <size>123</size>
10
- <open-size>125</open-size>
11
- </data>
12
- <data type="primary">
13
- <checksum type="sha256">dabe2ce5481d23de1f4f52bdcfee0f9af98316c9e0de2ce8123adeefa0dd08b9</checksum>
14
- <open-checksum type="sha256">e1e2ffd2fb1ee76f87b70750d00ca5677a252b397ab6c2389137a0c33e7b359f</open-checksum>
15
- <location href="repodata/dabe2-primary.xml.gz"/>
16
- <timestamp>1667508211</timestamp>
17
- <size>134</size>
18
- <open-size>167</open-size>
19
- </data>
20
- <data type="primary_db">
21
- <checksum type="sha256">5dc1e6e73c84803f059bb3065e684e56adfc289a7e398946574d79dac6643945</checksum>
22
- <open-checksum type="sha256">f0d550414e8f2e960e82e704549364299ca9e3e8664ad4faffd208262c3b6d12</open-checksum>
23
- <location href="repodata/5dc1e-primary.sqlite.bz2"/>
24
- <timestamp>1667508211</timestamp>
25
- <database_version>10</database_version>
26
- <size>1131</size>
27
- <open-size>21504</open-size>
28
- </data>
29
- <data type="other_db">
30
- <checksum type="sha256">7c36572015e075add2b38b900837bcdbb8a504130ddff49b2351a7fc0affa3d4</checksum>
31
- <open-checksum type="sha256">4de0fe7c5dd2674849a7c63c326e42f33af0a0f46219bc6dd59f51dfa2ac8c68</open-checksum>
32
- <location href="repodata/7c365-other.sqlite.bz2"/>
33
- <timestamp>1667508211</timestamp>
34
- <database_version>10</database_version>
35
- <size>575</size>
36
- <open-size>6144</open-size>
37
- </data>
38
- <data type="other">
39
- <checksum type="sha256">6bf9672d0862e8ef8b8ff05a2fd0208a922b1f5978e6589d87944c88259cb670</checksum>
40
- <open-checksum type="sha256">e0ed5e0054194df036cf09c1a911e15bf2a4e7f26f2a788b6f47d53e80717ccc</open-checksum>
41
- <location href="repodata/6bf96-other.xml.gz"/>
42
- <timestamp>1667508211</timestamp>
43
- <size>123</size>
44
- <open-size>121</open-size>
45
- </data>
46
- <data type="filelists_db">
47
- <checksum type="sha256">01a3b489a465bcac22a43492163df43451dc6ce47d27f66de289756b91635523</checksum>
48
- <open-checksum type="sha256">c4211f57bdcbb142c9f93a6d32401539f775eb6a670ab7a423e13f435ce94689</open-checksum>
49
- <location href="repodata/01a3b-filelists.sqlite.bz2"/>
50
- <timestamp>1667508211</timestamp>
51
- <database_version>10</database_version>
52
- <size>586</size>
53
- <open-size>7168</open-size>
54
- </data>
55
- </repomd>
@@ -1,29 +0,0 @@
1
- require "spec_helper"
2
-
3
- describe "chef-client fips" do
4
- def enable_fips
5
- OpenSSL.fips_mode = true
6
- end
7
-
8
- # All tests assume fips mode is off at present
9
- after { OpenSSL.fips_mode = false }
10
-
11
- # For non-FIPS OSes/builds of Ruby, enabling FIPS should error
12
- example "Error enabling fips_mode if FIPS not linked", fips_mode: false do
13
- expect { enable_fips }.to raise_error(OpenSSL::OpenSSLError)
14
- end
15
-
16
- example "Do not error on MD5 if not fips_mode", fips_mode: false do
17
- expect { OpenSSL::Digest.new("MD5", "test string for digesting") }.not_to raise_error
18
- end
19
-
20
- # For FIPS OSes/builds of Ruby, enabling FIPS should not error
21
- example "Do not error enabling fips_mode if FIPS linked", fips_mode: true do
22
- expect { enable_fips }.not_to raise_error
23
- end
24
-
25
- example "Error on MD5 if fips_mode", fips_mode: true do
26
- enable_fips
27
- expect { OpenSSL::Digest.new("MD5", "test string for digesting") }.to raise_error(OpenSSL::Digest::DigestError)
28
- end
29
- end
@@ -1,20 +0,0 @@
1
- require "spec_helper"
2
-
3
- describe "openssl checks" do
4
- let(:openssl_version_default) do
5
- if windows? || aix?
6
- "1.0.2zi"
7
- elsif macos?
8
- "1.1.1m"
9
- else
10
- "3.0.9"
11
- end
12
- end
13
-
14
- %w{version library_version}.each do |method|
15
- # macOS just picks up its own for some reason, maybe it circumvents a build step
16
- example "check #{method}", openssl_version_check: true, not_supported_on_macos: true do
17
- expect(OpenSSL.const_get("OPENSSL_#{method.upcase}")).to match(openssl_version_default), "OpenSSL doesn't match omnibus_overrides.rb"
18
- end
19
- end
20
- end