chef 14.14.29-universal-mingw32 → 14.15.6-universal-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (366) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +18 -7
  4. data/Rakefile +7 -4
  5. data/chef.gemspec +1 -1
  6. data/lib/chef/knife/ssh.rb +6 -0
  7. data/lib/chef/provider/ifconfig.rb +14 -5
  8. data/lib/chef/provider/windows_task.rb +9 -5
  9. data/lib/chef/resource/kernel_module.rb +61 -0
  10. data/lib/chef/resource/windows_task.rb +4 -0
  11. data/lib/chef/version.rb +1 -1
  12. data/spec/data/cookbooks/openldap/metadata.rb +2 -2
  13. data/spec/data/metadata/quick_start/metadata.rb +2 -7
  14. data/spec/functional/audit/runner_spec.rb +1 -1
  15. data/spec/functional/dsl/reboot_pending_spec.rb +7 -25
  16. data/spec/functional/event_loggers/windows_eventlog_spec.rb +6 -4
  17. data/spec/functional/file_content_management/deploy_strategies_spec.rb +21 -21
  18. data/spec/functional/knife/exec_spec.rb +1 -1
  19. data/spec/functional/knife/ssh_spec.rb +3 -3
  20. data/spec/functional/mixin/user_context_spec.rb +3 -1
  21. data/spec/functional/rebooter_spec.rb +1 -1
  22. data/spec/functional/resource/aix_service_spec.rb +1 -1
  23. data/spec/functional/resource/aixinit_service_spec.rb +1 -1
  24. data/spec/functional/resource/apt_package_spec.rb +1 -1
  25. data/spec/functional/resource/chocolatey_package_spec.rb +2 -2
  26. data/spec/functional/resource/cookbook_file_spec.rb +1 -3
  27. data/spec/functional/resource/cron_spec.rb +4 -3
  28. data/spec/functional/resource/dpkg_package_spec.rb +4 -4
  29. data/spec/functional/resource/dsc_resource_spec.rb +2 -1
  30. data/spec/functional/resource/dsc_script_spec.rb +16 -20
  31. data/spec/functional/resource/execute_spec.rb +2 -2
  32. data/spec/functional/resource/git_spec.rb +6 -6
  33. data/spec/functional/resource/group_spec.rb +8 -6
  34. data/spec/functional/resource/ifconfig_spec.rb +3 -5
  35. data/spec/functional/resource/link_spec.rb +2 -2
  36. data/spec/functional/resource/mount_spec.rb +3 -7
  37. data/spec/functional/resource/powershell_script_spec.rb +9 -8
  38. data/spec/functional/resource/reboot_spec.rb +1 -1
  39. data/spec/functional/resource/remote_file_spec.rb +2 -2
  40. data/spec/functional/resource/template_spec.rb +1 -1
  41. data/spec/functional/resource/user/windows_spec.rb +2 -2
  42. data/spec/functional/resource/windows_certificate_spec.rb +3 -3
  43. data/spec/functional/resource/windows_service_spec.rb +3 -3
  44. data/spec/functional/resource/windows_task_spec.rb +51 -0
  45. data/spec/functional/run_lock_spec.rb +10 -3
  46. data/spec/functional/shell_spec.rb +1 -1
  47. data/spec/functional/util/powershell/cmdlet_spec.rb +1 -1
  48. data/spec/functional/version_spec.rb +1 -1
  49. data/spec/functional/win32/security_spec.rb +12 -7
  50. data/spec/functional/win32/service_manager_spec.rb +1 -1
  51. data/spec/functional/win32/version_info_spec.rb +4 -4
  52. data/spec/integration/client/client_spec.rb +114 -132
  53. data/spec/integration/client/exit_code_spec.rb +8 -8
  54. data/spec/integration/client/ipv6_spec.rb +5 -5
  55. data/spec/integration/knife/chef_fs_data_store_spec.rb +38 -38
  56. data/spec/integration/knife/chef_repo_path_spec.rb +42 -42
  57. data/spec/integration/knife/chef_repository_file_system_spec.rb +9 -9
  58. data/spec/integration/knife/chefignore_spec.rb +13 -13
  59. data/spec/integration/knife/client_bulk_delete_spec.rb +8 -8
  60. data/spec/integration/knife/client_create_spec.rb +1 -1
  61. data/spec/integration/knife/client_delete_spec.rb +4 -4
  62. data/spec/integration/knife/client_key_delete_spec.rb +1 -1
  63. data/spec/integration/knife/client_key_list_spec.rb +1 -1
  64. data/spec/integration/knife/client_list_spec.rb +1 -1
  65. data/spec/integration/knife/common_options_spec.rb +1 -1
  66. data/spec/integration/knife/config_get_spec.rb +1 -1
  67. data/spec/integration/knife/config_list_profiles_spec.rb +2 -1
  68. data/spec/integration/knife/cookbook_api_ipv6_spec.rb +3 -3
  69. data/spec/integration/knife/cookbook_bulk_delete_spec.rb +3 -3
  70. data/spec/integration/knife/cookbook_download_spec.rb +4 -4
  71. data/spec/integration/knife/cookbook_list_spec.rb +2 -2
  72. data/spec/integration/knife/cookbook_show_spec.rb +3 -3
  73. data/spec/integration/knife/cookbook_upload_spec.rb +6 -6
  74. data/spec/integration/knife/data_bag_delete_spec.rb +4 -4
  75. data/spec/integration/knife/data_bag_from_file_spec.rb +7 -7
  76. data/spec/integration/knife/data_bag_list_spec.rb +1 -1
  77. data/spec/integration/knife/delete_spec.rb +37 -37
  78. data/spec/integration/knife/deps_spec.rb +23 -23
  79. data/spec/integration/knife/diff_spec.rb +23 -23
  80. data/spec/integration/knife/download_spec.rb +79 -79
  81. data/spec/integration/knife/environment_compare_spec.rb +3 -3
  82. data/spec/integration/knife/environment_from_file_spec.rb +6 -6
  83. data/spec/integration/knife/environment_list_spec.rb +1 -1
  84. data/spec/integration/knife/environment_show_spec.rb +4 -4
  85. data/spec/integration/knife/list_spec.rb +25 -25
  86. data/spec/integration/knife/node_bulk_delete_spec.rb +2 -2
  87. data/spec/integration/knife/node_delete_spec.rb +2 -2
  88. data/spec/integration/knife/node_environment_set_spec.rb +1 -1
  89. data/spec/integration/knife/node_from_file_spec.rb +2 -2
  90. data/spec/integration/knife/node_list_spec.rb +1 -1
  91. data/spec/integration/knife/raw_spec.rb +12 -12
  92. data/spec/integration/knife/redirection_spec.rb +1 -1
  93. data/spec/integration/knife/role_bulk_delete_spec.rb +2 -2
  94. data/spec/integration/knife/role_delete_spec.rb +2 -2
  95. data/spec/integration/knife/role_from_file_spec.rb +5 -5
  96. data/spec/integration/knife/role_list_spec.rb +1 -1
  97. data/spec/integration/knife/role_show_spec.rb +1 -1
  98. data/spec/integration/knife/show_spec.rb +10 -10
  99. data/spec/integration/knife/upload_spec.rb +85 -85
  100. data/spec/integration/recipes/accumulator_spec.rb +4 -4
  101. data/spec/integration/recipes/lwrp_inline_resources_spec.rb +6 -6
  102. data/spec/integration/recipes/lwrp_spec.rb +6 -6
  103. data/spec/integration/recipes/notifies_spec.rb +45 -45
  104. data/spec/integration/recipes/notifying_block_spec.rb +4 -4
  105. data/spec/integration/recipes/provider_choice.rb +1 -2
  106. data/spec/integration/recipes/recipe_dsl_spec.rb +9 -9
  107. data/spec/integration/recipes/remote_directory.rb +2 -2
  108. data/spec/integration/recipes/resource_action_spec.rb +1 -1
  109. data/spec/integration/recipes/resource_converge_if_changed_spec.rb +19 -19
  110. data/spec/integration/solo/solo_spec.rb +29 -29
  111. data/spec/scripts/ssl-serve.rb +1 -1
  112. data/spec/spec_helper.rb +11 -14
  113. data/spec/stress/win32/security_spec.rb +1 -1
  114. data/spec/support/lib/chef/resource/zen_follower.rb +1 -1
  115. data/spec/support/lib/chef/resource/zen_master.rb +1 -1
  116. data/spec/support/mock/platform.rb +2 -2
  117. data/spec/support/platform_helpers.rb +12 -3
  118. data/spec/support/platforms/win32/spec_service.rb +6 -10
  119. data/spec/support/shared/context/client.rb +2 -1
  120. data/spec/support/shared/functional/execute_resource.rb +4 -4
  121. data/spec/support/shared/functional/file_resource.rb +1 -3
  122. data/spec/support/shared/functional/http.rb +20 -44
  123. data/spec/support/shared/functional/securable_resource.rb +4 -8
  124. data/spec/support/shared/functional/win32_service.rb +1 -1
  125. data/spec/support/shared/functional/windows_script.rb +2 -1
  126. data/spec/support/shared/integration/app_server_support.rb +3 -4
  127. data/spec/support/shared/integration/integration_helper.rb +1 -0
  128. data/spec/support/shared/integration/knife_support.rb +5 -5
  129. data/spec/support/shared/unit/application_dot_d.rb +10 -4
  130. data/spec/support/shared/unit/file_system_support.rb +3 -2
  131. data/spec/support/shared/unit/platform_introspector.rb +12 -12
  132. data/spec/support/shared/unit/provider/file.rb +1 -1
  133. data/spec/support/shared/unit/script_resource.rb +1 -1
  134. data/spec/support/shared/unit/windows_script_resource.rb +1 -1
  135. data/spec/tiny_server.rb +1 -1
  136. data/spec/unit/api_client/registration_spec.rb +1 -1
  137. data/spec/unit/api_client_spec.rb +5 -5
  138. data/spec/unit/api_client_v1_spec.rb +6 -6
  139. data/spec/unit/application/client_spec.rb +8 -8
  140. data/spec/unit/application/exit_code_spec.rb +3 -2
  141. data/spec/unit/application/knife_spec.rb +1 -2
  142. data/spec/unit/audit/audit_event_proxy_spec.rb +14 -7
  143. data/spec/unit/audit/audit_reporter_spec.rb +20 -11
  144. data/spec/unit/audit/control_group_data_spec.rb +17 -12
  145. data/spec/unit/chef_fs/config_spec.rb +3 -3
  146. data/spec/unit/chef_fs/file_system/repository/directory_spec.rb +1 -1
  147. data/spec/unit/chef_fs/parallelizer.rb +1 -1
  148. data/spec/unit/client_spec.rb +3 -3
  149. data/spec/unit/config_fetcher_spec.rb +1 -1
  150. data/spec/unit/cookbook/metadata_spec.rb +13 -13
  151. data/spec/unit/cookbook/synchronizer_spec.rb +6 -6
  152. data/spec/unit/cookbook_loader_spec.rb +17 -17
  153. data/spec/unit/cookbook_manifest_spec.rb +9 -9
  154. data/spec/unit/cookbook_site_streaming_uploader_spec.rb +1 -2
  155. data/spec/unit/cookbook_uploader_spec.rb +2 -2
  156. data/spec/unit/cookbook_version_file_specificity_spec.rb +9 -9
  157. data/spec/unit/cookbook_version_spec.rb +2 -2
  158. data/spec/unit/data_bag_item_spec.rb +7 -7
  159. data/spec/unit/data_bag_spec.rb +1 -1
  160. data/spec/unit/data_collector_spec.rb +23 -23
  161. data/spec/unit/decorator_spec.rb +2 -2
  162. data/spec/unit/deprecated_spec.rb +2 -2
  163. data/spec/unit/dsl/data_query_spec.rb +3 -2
  164. data/spec/unit/dsl/declare_resource_spec.rb +1 -1
  165. data/spec/unit/dsl/platform_introspection_spec.rb +2 -2
  166. data/spec/unit/encrypted_data_bag_item/check_encrypted_spec.rb +2 -1
  167. data/spec/unit/encrypted_data_bag_item_spec.rb +2 -1
  168. data/spec/unit/environment_spec.rb +13 -13
  169. data/spec/unit/event_dispatch/dsl_spec.rb +1 -1
  170. data/spec/unit/file_content_management/deploy/mv_unix_spec.rb +3 -3
  171. data/spec/unit/file_content_management/deploy/mv_windows_spec.rb +2 -2
  172. data/spec/unit/formatters/error_inspectors/resource_failure_inspector_spec.rb +3 -3
  173. data/spec/unit/guard_interpreter/resource_guard_interpreter_spec.rb +1 -1
  174. data/spec/unit/http/authenticator_spec.rb +4 -3
  175. data/spec/unit/http/json_input_spec.rb +1 -1
  176. data/spec/unit/http/socketless_chef_zero_client_spec.rb +15 -15
  177. data/spec/unit/key_spec.rb +8 -8
  178. data/spec/unit/knife/bootstrap_spec.rb +14 -10
  179. data/spec/unit/knife/client_bulk_delete_spec.rb +4 -4
  180. data/spec/unit/knife/configure_client_spec.rb +1 -1
  181. data/spec/unit/knife/configure_spec.rb +1 -1
  182. data/spec/unit/knife/cookbook_bulk_delete_spec.rb +1 -1
  183. data/spec/unit/knife/cookbook_delete_spec.rb +2 -2
  184. data/spec/unit/knife/cookbook_download_spec.rb +2 -2
  185. data/spec/unit/knife/cookbook_metadata_spec.rb +4 -4
  186. data/spec/unit/knife/cookbook_upload_spec.rb +7 -5
  187. data/spec/unit/knife/core/bootstrap_context_spec.rb +1 -1
  188. data/spec/unit/knife/core/cookbook_scm_repo_spec.rb +2 -2
  189. data/spec/unit/knife/core/gem_glob_loader_spec.rb +4 -4
  190. data/spec/unit/knife/core/hashed_command_loader_spec.rb +4 -2
  191. data/spec/unit/knife/core/node_editor_spec.rb +12 -12
  192. data/spec/unit/knife/core/ui_spec.rb +11 -11
  193. data/spec/unit/knife/data_bag_from_file_spec.rb +2 -1
  194. data/spec/unit/knife/data_bag_show_spec.rb +2 -1
  195. data/spec/unit/knife/key_create_spec.rb +1 -1
  196. data/spec/unit/knife/key_delete_spec.rb +3 -3
  197. data/spec/unit/knife/key_edit_spec.rb +4 -4
  198. data/spec/unit/knife/key_list_spec.rb +1 -1
  199. data/spec/unit/knife/key_show_spec.rb +3 -3
  200. data/spec/unit/knife/node_bulk_delete_spec.rb +3 -3
  201. data/spec/unit/knife/node_delete_spec.rb +2 -2
  202. data/spec/unit/knife/node_edit_spec.rb +1 -1
  203. data/spec/unit/knife/node_environment_set_spec.rb +1 -1
  204. data/spec/unit/knife/node_from_file_spec.rb +1 -1
  205. data/spec/unit/knife/node_policy_set_spec.rb +1 -1
  206. data/spec/unit/knife/node_run_list_add_spec.rb +1 -1
  207. data/spec/unit/knife/node_run_list_remove_spec.rb +1 -1
  208. data/spec/unit/knife/node_run_list_set_spec.rb +1 -1
  209. data/spec/unit/knife/node_show_spec.rb +1 -1
  210. data/spec/unit/knife/raw_spec.rb +2 -2
  211. data/spec/unit/knife/role_bulk_delete_spec.rb +2 -2
  212. data/spec/unit/knife/role_create_spec.rb +1 -1
  213. data/spec/unit/knife/role_delete_spec.rb +1 -1
  214. data/spec/unit/knife/role_edit_spec.rb +1 -1
  215. data/spec/unit/knife/role_env_run_list_add_spec.rb +1 -1
  216. data/spec/unit/knife/role_env_run_list_clear_spec.rb +1 -1
  217. data/spec/unit/knife/role_env_run_list_remove_spec.rb +1 -1
  218. data/spec/unit/knife/role_env_run_list_replace_spec.rb +1 -1
  219. data/spec/unit/knife/role_env_run_list_set_spec.rb +1 -1
  220. data/spec/unit/knife/role_from_file_spec.rb +1 -1
  221. data/spec/unit/knife/role_run_list_add_spec.rb +1 -1
  222. data/spec/unit/knife/role_run_list_clear_spec.rb +1 -1
  223. data/spec/unit/knife/role_run_list_remove_spec.rb +1 -1
  224. data/spec/unit/knife/role_run_list_replace_spec.rb +1 -1
  225. data/spec/unit/knife/role_run_list_set_spec.rb +1 -1
  226. data/spec/unit/knife/ssh_spec.rb +27 -17
  227. data/spec/unit/knife/ssl_check_spec.rb +4 -4
  228. data/spec/unit/knife/ssl_fetch_spec.rb +5 -5
  229. data/spec/unit/knife/status_spec.rb +3 -2
  230. data/spec/unit/knife/supermarket_download_spec.rb +4 -4
  231. data/spec/unit/knife/supermarket_install_spec.rb +5 -4
  232. data/spec/unit/knife/supermarket_share_spec.rb +1 -1
  233. data/spec/unit/knife_spec.rb +34 -33
  234. data/spec/unit/lwrp_spec.rb +19 -19
  235. data/spec/unit/mixin/homebrew_user_spec.rb +1 -1
  236. data/spec/unit/mixin/params_validate_spec.rb +10 -10
  237. data/spec/unit/mixin/properties_spec.rb +4 -4
  238. data/spec/unit/mixin/shell_out_spec.rb +27 -27
  239. data/spec/unit/mixin/template_spec.rb +4 -8
  240. data/spec/unit/mixin/unformatter_spec.rb +1 -2
  241. data/spec/unit/mixin/user_context_spec.rb +1 -2
  242. data/spec/unit/mixin/which.rb +2 -0
  243. data/spec/unit/mixin/windows_architecture_helper_spec.rb +3 -3
  244. data/spec/unit/node/attribute_spec.rb +79 -79
  245. data/spec/unit/node/immutable_collections_spec.rb +50 -50
  246. data/spec/unit/node_spec.rb +16 -16
  247. data/spec/unit/org_spec.rb +3 -3
  248. data/spec/unit/policy_builder/policyfile_spec.rb +2 -2
  249. data/spec/unit/property/state_spec.rb +26 -25
  250. data/spec/unit/property/validation_spec.rb +14 -13
  251. data/spec/unit/property_spec.rb +10 -9
  252. data/spec/unit/provider/apt_update_spec.rb +6 -6
  253. data/spec/unit/provider/cron_spec.rb +15 -15
  254. data/spec/unit/provider/dsc_resource_spec.rb +6 -3
  255. data/spec/unit/provider/dsc_script_spec.rb +1 -1
  256. data/spec/unit/provider/execute_spec.rb +5 -5
  257. data/spec/unit/provider/git_spec.rb +39 -39
  258. data/spec/unit/provider/group/dscl_spec.rb +3 -3
  259. data/spec/unit/provider/group/groupadd_spec.rb +1 -1
  260. data/spec/unit/provider/group_spec.rb +2 -3
  261. data/spec/unit/provider/ifconfig/aix_spec.rb +1 -1
  262. data/spec/unit/provider/ifconfig/debian_spec.rb +2 -2
  263. data/spec/unit/provider/ifconfig_spec.rb +45 -16
  264. data/spec/unit/provider/launchd_spec.rb +23 -15
  265. data/spec/unit/provider/link_spec.rb +22 -11
  266. data/spec/unit/provider/mount/aix_spec.rb +6 -6
  267. data/spec/unit/provider/mount/mount_spec.rb +31 -31
  268. data/spec/unit/provider/mount/solaris_spec.rb +11 -11
  269. data/spec/unit/provider/ohai_spec.rb +1 -1
  270. data/spec/unit/provider/osx_profile_spec.rb +5 -7
  271. data/spec/unit/provider/package/apt_spec.rb +5 -5
  272. data/spec/unit/provider/package/bff_spec.rb +1 -1
  273. data/spec/unit/provider/package/cab_spec.rb +1 -1
  274. data/spec/unit/provider/package/chocolatey_spec.rb +8 -8
  275. data/spec/unit/provider/package/freebsd/pkg_spec.rb +1 -1
  276. data/spec/unit/provider/package/ips_spec.rb +6 -6
  277. data/spec/unit/provider/package/macports_spec.rb +1 -1
  278. data/spec/unit/provider/package/msu_spec.rb +1 -1
  279. data/spec/unit/provider/package/openbsd_spec.rb +15 -11
  280. data/spec/unit/provider/package/pacman_spec.rb +3 -3
  281. data/spec/unit/provider/package/paludis_spec.rb +4 -4
  282. data/spec/unit/provider/package/portage_spec.rb +1 -1
  283. data/spec/unit/provider/package/powershell_spec.rb +1 -1
  284. data/spec/unit/provider/package/smartos_spec.rb +3 -3
  285. data/spec/unit/provider/package/solaris_spec.rb +1 -1
  286. data/spec/unit/provider/package/windows/exe_spec.rb +9 -9
  287. data/spec/unit/provider/package/windows/msi_spec.rb +7 -7
  288. data/spec/unit/provider/package/windows_spec.rb +2 -1
  289. data/spec/unit/provider/package/yum/yum_cache_spec.rb +1 -1
  290. data/spec/unit/provider/package/zypper_spec.rb +4 -4
  291. data/spec/unit/provider/package_spec.rb +1 -1
  292. data/spec/unit/provider/powershell_script_spec.rb +7 -7
  293. data/spec/unit/provider/registry_key_spec.rb +1 -1
  294. data/spec/unit/provider/remote_directory_spec.rb +6 -6
  295. data/spec/unit/provider/route_spec.rb +11 -11
  296. data/spec/unit/provider/service/arch_service_spec.rb +13 -13
  297. data/spec/unit/provider/service/debian_service_spec.rb +2 -1
  298. data/spec/unit/provider/service/freebsd_service_spec.rb +28 -24
  299. data/spec/unit/provider/service/gentoo_service_spec.rb +2 -2
  300. data/spec/unit/provider/service/init_service_spec.rb +11 -11
  301. data/spec/unit/provider/service/invokercd_service_spec.rb +11 -11
  302. data/spec/unit/provider/service/macosx_spec.rb +5 -5
  303. data/spec/unit/provider/service/openbsd_service_spec.rb +15 -11
  304. data/spec/unit/provider/service/simple_service_spec.rb +7 -7
  305. data/spec/unit/provider/service/upstart_service_spec.rb +14 -14
  306. data/spec/unit/provider/service/windows_spec.rb +53 -35
  307. data/spec/unit/provider/subversion_spec.rb +8 -4
  308. data/spec/unit/provider/systemd_unit_spec.rb +142 -142
  309. data/spec/unit/provider/template/content_spec.rb +29 -29
  310. data/spec/unit/provider/windows_task_spec.rb +1 -1
  311. data/spec/unit/provider_resolver_spec.rb +75 -75
  312. data/spec/unit/provider_spec.rb +2 -4
  313. data/spec/unit/recipe_spec.rb +4 -4
  314. data/spec/unit/resource/batch_spec.rb +1 -1
  315. data/spec/unit/resource/chef_gem_spec.rb +1 -1
  316. data/spec/unit/resource/chocolatey_config_spec.rb +1 -1
  317. data/spec/unit/resource/chocolatey_source_spec.rb +1 -1
  318. data/spec/unit/resource/directory_spec.rb +1 -1
  319. data/spec/unit/resource/dnf_package_spec.rb +1 -1
  320. data/spec/unit/resource/dsc_resource_spec.rb +1 -1
  321. data/spec/unit/resource/file/verification_spec.rb +1 -2
  322. data/spec/unit/resource/file_spec.rb +1 -1
  323. data/spec/unit/resource/group_spec.rb +1 -1
  324. data/spec/unit/resource/link_spec.rb +1 -1
  325. data/spec/unit/resource/osx_profile_spec.rb +2 -1
  326. data/spec/unit/resource/powershell_script_spec.rb +12 -7
  327. data/spec/unit/resource/registry_key_spec.rb +3 -3
  328. data/spec/unit/resource/rhsm_subscription_spec.rb +1 -1
  329. data/spec/unit/resource/service_spec.rb +1 -1
  330. data/spec/unit/resource/template_spec.rb +2 -2
  331. data/spec/unit/resource/windows_env_spec.rb +1 -1
  332. data/spec/unit/resource/windows_service_spec.rb +5 -5
  333. data/spec/unit/resource/windows_task_spec.rb +6 -2
  334. data/spec/unit/resource/yum_package_spec.rb +1 -1
  335. data/spec/unit/resource_collection/resource_list_spec.rb +1 -1
  336. data/spec/unit/resource_collection/resource_set_spec.rb +7 -7
  337. data/spec/unit/resource_collection/stepable_iterator_spec.rb +2 -2
  338. data/spec/unit/resource_collection_spec.rb +4 -4
  339. data/spec/unit/resource_definition_spec.rb +2 -2
  340. data/spec/unit/resource_inspector_spec.rb +1 -1
  341. data/spec/unit/resource_reporter_spec.rb +4 -4
  342. data/spec/unit/resource_spec.rb +22 -22
  343. data/spec/unit/role_spec.rb +3 -3
  344. data/spec/unit/run_context/cookbook_compiler_spec.rb +23 -23
  345. data/spec/unit/run_list/run_list_expansion_spec.rb +9 -6
  346. data/spec/unit/run_list_spec.rb +1 -1
  347. data/spec/unit/runner_spec.rb +3 -3
  348. data/spec/unit/search/query_spec.rb +3 -2
  349. data/spec/unit/shell/model_wrapper_spec.rb +1 -1
  350. data/spec/unit/shell/shell_session_spec.rb +8 -11
  351. data/spec/unit/shell_spec.rb +1 -2
  352. data/spec/unit/user_spec.rb +4 -4
  353. data/spec/unit/user_v1_spec.rb +3 -3
  354. data/spec/unit/util/backup_spec.rb +1 -1
  355. data/spec/unit/util/dsc/lcm_output_parser_spec.rb +13 -13
  356. data/spec/unit/util/dsc/local_configuration_manager_spec.rb +3 -3
  357. data/spec/unit/util/editor_spec.rb +1 -1
  358. data/spec/unit/util/powershell/ps_credential_spec.rb +3 -2
  359. data/spec/unit/util/threaded_job_queue_spec.rb +2 -2
  360. data/spec/unit/version_class_spec.rb +4 -4
  361. data/spec/unit/win32/registry_spec.rb +5 -5
  362. data/spec/unit/win32/security_spec.rb +2 -1
  363. data/tasks/announce.rb +4 -11
  364. metadata +10 -6
  365. data/tasks/maintainers.rb +0 -211
  366. data/tasks/templates/prerelease.md.erb +0 -35
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bd40eeb7dfb7ae7084b93a40561e37f0c6e5bef18012dc55f35c00c2ea331639
4
- data.tar.gz: fccae76a20ea0ee2d61b783c910d400d4eea9f547f6b57704c6d75a3ade58dc4
3
+ metadata.gz: b589c5e45307c74c225c57d1a057411024f1cd2ed24db99c6d7ed48864d80ddd
4
+ data.tar.gz: 28423ae1ce1f10ed65ec3dc1e473aff7eacb97197c7e13c31e003d369040c04b
5
5
  SHA512:
6
- metadata.gz: 4f5c2dd2f7b8fbe1847fdedc866a5080c3c0844cdc50f1bbf22020c13b6dd1ea67086dce5bc4132eeed38278e63d78e9a04e12c5e9310e1cf8c51bc016e5ae14
7
- data.tar.gz: 97bfcca00a020126d16e2d1b3ce27b9f3122b17126bfc1643526502ff7fc78fca94cfa2467ed1cba5b70bcb33b0650f6cf9602c81415f839abfc579663222d69
6
+ metadata.gz: 65bf8b59d224e4e76947d6c47a126c58b2e6e6cbe326a606b7f2af0f29e865155536cf1c2c6236f3af7c0402b56c10ac4db9e7d8dd90882b3c72f8b77280961b
7
+ data.tar.gz: b0124dbc15dfa69c20337999527e49b47e4625bea0627d807e830938a25226662f5a6c6fec4b91f982386fabafe4397a68c9500079d210e3aa70398aa6fa8d11
data/Gemfile CHANGED
@@ -11,7 +11,7 @@ gem "chef-config", path: File.expand_path("../chef-config", __FILE__) if File.ex
11
11
  gem "cheffish", "~> 14"
12
12
 
13
13
  group(:omnibus_package) do
14
- gem "appbundler"
14
+ gem "appbundler", "< 1.0"
15
15
  gem "rb-readline"
16
16
  gem "inspec-core", "~> 3"
17
17
  gem "chef-vault"
data/README.md CHANGED
@@ -1,15 +1,26 @@
1
- # Chef
1
+ # Chef Infra
2
2
  [![Code Climate](https://codeclimate.com/github/chef/chef.svg)](https://codeclimate.com/github/chef/chef)
3
- [![Build Status Master](https://travis-ci.org/chef/chef.svg?branch=master)](https://travis-ci.org/chef/chef)
4
- [![Build Status Master](https://ci.appveyor.com/api/projects/status/github/chef/chef?branch=master&svg=true&passingText=master%20-%20Ok&pendingText=master%20-%20Pending&failingText=master%20-%20Failing)](https://ci.appveyor.com/project/Chef/chef/branch/master)
3
+ [![Build Status](https://badge.buildkite.com/f798a31e86518429573be35b496b313f4aee72dbb17e946eda.svg?branch=chef-14)](https://buildkite.com/chef-oss/chef-chef-chef-14-verify)
5
4
  [![Gem Version](https://badge.fury.io/rb/chef.svg)](https://badge.fury.io/rb/chef)
6
- [![](https://img.shields.io/badge/Release%20Policy-Cadence%20Release-brightgreen.svg)](https://github.com/chef/chef-rfc/blob/master/rfc086-chef-oss-project-policies.md#cadence-release)
5
+ [![](https://img.shields.io/badge/Release%20Policy-Cadence%20Release-brightgreen.svg)](https://github.com/chef/chef/blob/master/docs/dev/design_documents/client_release_cadence.md)
6
+
7
+ **Umbrella Project**: [Chef Infra](https://github.com/chef/chef-oss-practices/blob/master/projects/chef-infra.md)
8
+
9
+ **Project State**: [Active](https://github.com/chef/chef-oss-practices/blob/master/repo-management/repo-states.md#active)
10
+
11
+ **Issues [Response Time Maximum](https://github.com/chef/chef-oss-practices/blob/master/repo-management/repo-states.md)**: 14 days
12
+
13
+ **Pull Request [Response Time Maximum](https://github.com/chef/chef-oss-practices/blob/master/repo-management/repo-states.md)**: 14 days
7
14
 
8
15
  ## Getting Started
9
16
 
10
- Want to try Chef?
11
- For Chef user, please refer to [Quick Start](https://docs.chef.io/quick_start.html)
12
- For more details, please refer to [learnchef](https://learn.chef.io)
17
+ Chef Infra is a configuration management tool designed to bring automation to your entire infrastructure.
18
+
19
+ ### Want to try Chef Infra?
20
+
21
+ For Chef Infra usage, please refer to our [Learn Chef Rally](https://learn.chef.io/) website, which includes module-based training for Chef Infra, as well as Automate, Habitat, and InSpec.
22
+
23
+ Other useful resources for Chef Infra users:
13
24
 
14
25
  - Documentation: <https://docs.chef.io>
15
26
  - Source: <https://github.com/chef/chef/tree/master>
data/Rakefile CHANGED
@@ -17,10 +17,13 @@
17
17
  # limitations under the License.
18
18
  #
19
19
 
20
- require_relative "tasks/rspec"
21
- require_relative "tasks/maintainers"
22
- require_relative "tasks/dependencies"
23
- require_relative "tasks/announce"
20
+ begin
21
+ require_relative "tasks/rspec"
22
+ require_relative "tasks/dependencies"
23
+ require_relative "tasks/announce"
24
+ rescue LoadError => e
25
+ puts "Skipping missing rake dep: #{e}"
26
+ end
24
27
 
25
28
  # hack the chef-config install to run before the traditional install task
26
29
  task :super_install do
data/chef.gemspec CHANGED
@@ -33,7 +33,7 @@ Gem::Specification.new do |s|
33
33
  s.add_dependency "erubis", "~> 2.7"
34
34
  s.add_dependency "diff-lcs", "~> 1.2", ">= 1.2.4"
35
35
 
36
- s.add_dependency "chef-zero", ">= 13.0"
36
+ s.add_dependency "chef-zero", ">= 13.0", "< 15.0"
37
37
 
38
38
  s.add_dependency "plist", "~> 3.2"
39
39
  s.add_dependency "iniparse", "~> 1.4"
@@ -590,6 +590,12 @@ class Chef
590
590
  def run
591
591
  @longest = 0
592
592
 
593
+ if @name_args.length < 1
594
+ show_usage
595
+ ui.fatal("You must specify the SEARCH QUERY.")
596
+ exit(1)
597
+ end
598
+
593
599
  configure_user
594
600
  configure_password
595
601
  @password = config[:ssh_password] if config[:ssh_password]
@@ -39,6 +39,10 @@ class Chef
39
39
  attr_accessor :config_template
40
40
  attr_accessor :config_path
41
41
 
42
+ # @api private
43
+ # @return [String] the major.minor of the net-tools version as a string
44
+ attr_accessor :ifconfig_version
45
+
42
46
  def initialize(new_resource, run_context)
43
47
  super(new_resource, run_context)
44
48
  @config_template = nil
@@ -54,15 +58,20 @@ class Chef
54
58
  @ifconfig_version = nil
55
59
 
56
60
  @net_tools_version = shell_out("ifconfig", "--version")
61
+ @net_tools_version.stdout.each_line do |line|
62
+ if line =~ /^net-tools (\d+\.\d+)/
63
+ @ifconfig_version = line.match(/^net-tools (\d+\.\d+)/)[1]
64
+ end
65
+ end
57
66
  @net_tools_version.stderr.each_line do |line|
58
- if line =~ /^net-tools (\d+.\d+)/
59
- @ifconfig_version = line.match(/^net-tools (\d+.\d+)/)[1]
67
+ if line =~ /^net-tools (\d+\.\d+)/
68
+ @ifconfig_version = line.match(/^net-tools (\d+\.\d+)/)[1]
60
69
  end
61
70
  end
62
71
 
63
72
  if @ifconfig_version.nil?
64
73
  raise "net-tools not found - this is required for ifconfig"
65
- elsif @ifconfig_version.to_f < 2.0
74
+ elsif @ifconfig_version.to_i < 2
66
75
  # Example output for 1.60 is as follows: (sanitized but format intact)
67
76
  # eth0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
68
77
  # inet addr:192.168.1.1 Bcast:192.168.0.1 Mask:255.255.248.0
@@ -98,7 +107,7 @@ class Chef
98
107
  current_resource.mtu(@interface["mtu"])
99
108
  current_resource.metric(@interface["metric"])
100
109
  end
101
- elsif @ifconfig_version.to_f >= 2.0
110
+ elsif @ifconfig_version.to_i >= 2
102
111
  # Example output for 2.10-alpha is as follows: (sanitized but format intact)
103
112
  # eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
104
113
  # inet 192.168.1.1 netmask 255.255.240.0 broadcast 192.168.0.1
@@ -112,7 +121,7 @@ class Chef
112
121
  # Permalink for addr_regex : https://rubular.com/r/JrykUpfjRnYeQD
113
122
  @status = shell_out("ifconfig")
114
123
  @status.stdout.each_line do |line|
115
- addr_regex = /^(\w+)(-?):?(\d*):?\ .+$/
124
+ addr_regex = /^((\w|-)+):?(\d*):?\ .+$/
116
125
  if line =~ addr_regex
117
126
  if line.match(addr_regex).nil?
118
127
  @int_name = "nil"
@@ -328,13 +328,14 @@ class Chef
328
328
  def task_needs_update?(task)
329
329
  flag = false
330
330
  if new_resource.frequency == :none
331
- flag = (task.account_information != new_resource.user ||
331
+ flag = (task.author != new_resource.user ||
332
332
  task.application_name != new_resource.command ||
333
333
  description_needs_update?(task) ||
334
334
  task.parameters != new_resource.command_arguments.to_s ||
335
335
  task.principals[:run_level] != run_level ||
336
336
  task.settings[:disallow_start_if_on_batteries] != new_resource.disallow_start_if_on_batteries ||
337
- task.settings[:stop_if_going_on_batteries] != new_resource.stop_if_going_on_batteries)
337
+ task.settings[:stop_if_going_on_batteries] != new_resource.stop_if_going_on_batteries ||
338
+ task.settings[:start_when_available] != new_resource.start_when_available)
338
339
  else
339
340
  current_task_trigger = task.trigger(0)
340
341
  new_task_trigger = trigger
@@ -351,7 +352,7 @@ class Chef
351
352
  current_task_trigger[:type] != new_task_trigger[:type] ||
352
353
  current_task_trigger[:random_minutes_interval].to_i != new_task_trigger[:random_minutes_interval].to_i ||
353
354
  current_task_trigger[:minutes_interval].to_i != new_task_trigger[:minutes_interval].to_i ||
354
- task.account_information.to_s.casecmp(new_resource.user.to_s) != 0 ||
355
+ task.author.to_s.casecmp(new_resource.user.to_s) != 0 ||
355
356
  task.application_name != new_resource.command ||
356
357
  description_needs_update?(task) ||
357
358
  task.parameters != new_resource.command_arguments.to_s ||
@@ -360,7 +361,9 @@ class Chef
360
361
  task.principals[:run_level] != run_level ||
361
362
  PRIORITY[task.priority] != new_resource.priority ||
362
363
  task.settings[:disallow_start_if_on_batteries] != new_resource.disallow_start_if_on_batteries ||
363
- task.settings[:stop_if_going_on_batteries] != new_resource.stop_if_going_on_batteries
364
+ task.settings[:stop_if_going_on_batteries] != new_resource.stop_if_going_on_batteries ||
365
+ task.settings[:start_when_available] != new_resource.start_when_available
366
+
364
367
  if trigger_type == TaskScheduler::MONTHLYDATE
365
368
  flag = true if current_task_trigger[:run_on_last_day_of_month] != new_task_trigger[:run_on_last_day_of_month]
366
369
  end
@@ -560,12 +563,13 @@ class Chef
560
563
  settings[:priority] = new_resource.priority
561
564
  settings[:disallow_start_if_on_batteries] = new_resource.disallow_start_if_on_batteries
562
565
  settings[:stop_if_going_on_batteries] = new_resource.stop_if_going_on_batteries
566
+ settings[:start_when_available] = new_resource.start_when_available
563
567
  settings
564
568
  end
565
569
 
566
570
  def principal_settings
567
571
  settings = {}
568
- settings [:run_level] = run_level
572
+ settings[:run_level] = run_level
569
573
  settings[:logon_type] = logon_type
570
574
  settings
571
575
  end
@@ -16,11 +16,61 @@ class Chef
16
16
 
17
17
  description "Use the kernel_module resource to manage kernel modules on Linux systems. This resource can load, unload, blacklist, install, and uninstall modules."
18
18
  introduced "14.3"
19
+ examples <<~DOC
20
+ Install and load a kernel module, and ensure it loads on reboot.
21
+ ```ruby
22
+ kernel_module 'loop'
23
+ ```
24
+ Install and load a kernel with a specific set of options, and ensure it loads on reboot. Consult kernel module
25
+ documentation for specific options that are supported.
26
+ ```ruby
27
+ kernel_module 'loop' do
28
+ options [
29
+ 'max_loop=4',
30
+ 'max_part=8'
31
+ ]
32
+ end
33
+ ```
34
+ Load a kernel module.
35
+ ```ruby
36
+ kernel_module 'loop' do
37
+ action :load
38
+ end
39
+ ```
40
+ Unload a kernel module and remove module config, so it doesn’t load on reboot.
41
+ ```ruby
42
+ kernel_module 'loop' do
43
+ action :uninstall
44
+ end
45
+ ```
46
+ Unload kernel module.
47
+ ```ruby
48
+ kernel_module 'loop' do
49
+ action :unload
50
+ end
51
+ ```
52
+ Blacklist a module from loading.
53
+ ```ruby
54
+ kernel_module 'loop' do
55
+ action :blacklist
56
+ end
57
+ ```
58
+ Disable a kernel module.
59
+ ```ruby
60
+ kernel_module 'loop' do
61
+ action :disable
62
+ end
63
+ ```
64
+ DOC
19
65
 
20
66
  property :modname, String,
21
67
  description: "An optional property to set the kernel module name if it differs from the resource block's name.",
22
68
  name_property: true, identity: true
23
69
 
70
+ property :options, Array,
71
+ description: "An optional property to set options for the kernel module.",
72
+ introduced: "14.15"
73
+
24
74
  property :load_dir, String,
25
75
  description: "The directory to load modules from.",
26
76
  default: "/etc/modules-load.d"
@@ -32,6 +82,13 @@ class Chef
32
82
  action :install do
33
83
  description "Load kernel module, and ensure it loads on reboot."
34
84
 
85
+ # create options file before loading the module
86
+ unless new_resource.options.nil?
87
+ file "#{new_resource.unload_dir}/options_#{new_resource.modname}.conf" do
88
+ content "options #{new_resource.modname} #{new_resource.options.join(" ")}\n"
89
+ end.run_action(:create)
90
+ end
91
+
35
92
  # load the module first before installing
36
93
  new_resource.run_action(:load)
37
94
 
@@ -65,6 +122,10 @@ class Chef
65
122
  notifies :run, "execute[update initramfs]", :delayed
66
123
  end
67
124
 
125
+ file "#{new_resource.unload_dir}/options_#{new_resource.modname}.conf" do
126
+ action :delete
127
+ end
128
+
68
129
  with_run_context :root do
69
130
  find_resource(:execute, "update initramfs") do
70
131
  command initramfs_command
@@ -120,6 +120,10 @@ class Chef
120
120
  introduced: "14.7",
121
121
  description: "The task description."
122
122
 
123
+ property :start_when_available, [TrueClass, FalseClass],
124
+ introduced: "14.15", default: false,
125
+ description: "To start the task at any time after its scheduled time has passed."
126
+
123
127
  attr_accessor :exists, :task, :command_arguments
124
128
 
125
129
  VALID_WEEK_DAYS = %w{ mon tue wed thu fri sat sun * }.freeze
data/lib/chef/version.rb CHANGED
@@ -23,7 +23,7 @@ require "chef/version_string"
23
23
 
24
24
  class Chef
25
25
  CHEF_ROOT = File.expand_path("../..", __FILE__)
26
- VERSION = Chef::VersionString.new("14.14.29")
26
+ VERSION = Chef::VersionString.new("14.15.6")
27
27
  end
28
28
 
29
29
  #
@@ -1,6 +1,6 @@
1
1
  name "openldap"
2
- maintainer "Opscode, Inc."
3
- maintainer_email "cookbooks@opscode.com"
2
+ maintainer "Chef Software, Inc."
3
+ maintainer_email "cookbooks@chef.io"
4
4
  license "Apache 2.0"
5
5
  description "Installs and configures all aspects of openldap using Debian style symlinks with helper definitions"
6
6
  long_description "The long description for the openldap cookbook from metadata.rb"
@@ -1,5 +1,5 @@
1
- maintainer "Opscode, Inc."
2
- maintainer_email "cookbooks@opscode.com"
1
+ maintainer "Chef Software, Inc."
2
+ maintainer_email "cookbooks@chef.io"
3
3
  license "Apache 2.0"
4
4
  description "Example cookbook for quick_start wiki document"
5
5
  version "0.7"
@@ -12,8 +12,3 @@ version "0.7"
12
12
  }.each do |os|
13
13
  supports os
14
14
  end
15
-
16
- attribute "quick_start/deep_thought",
17
- :display_name => "Quick Start Deep Thought",
18
- :description => "A deep thought",
19
- :default => "If a tree falls in the forest..."
@@ -108,7 +108,7 @@ describe Chef::Audit::Runner do
108
108
  in_sub_process do
109
109
  runner.run
110
110
 
111
- expect(stdout.string).to match(/Failure\/Error: expect\(2 - 1\)\.to eq\(0\)/)
111
+ expect(stdout.string).to match(%r{Failure/Error: expect\(2 - 1\)\.to eq\(0\)})
112
112
  expect(stdout.string).to match(/1 example, 1 failure/)
113
113
  expect(stdout.string).to match(/# control_group_name should fail/)
114
114
  end
@@ -17,10 +17,13 @@
17
17
  #
18
18
 
19
19
  require "chef/dsl/reboot_pending"
20
+ require "chef/dsl/registry_helper"
20
21
  require "chef/win32/registry"
21
22
  require "spec_helper"
22
23
 
23
24
  describe Chef::DSL::RebootPending, :windows_only do
25
+ include Chef::DSL::RegistryHelper
26
+
24
27
  def run_ohai
25
28
  node.consume_external_attrs(OHAI_SYSTEM.data, {})
26
29
  end
@@ -36,10 +39,6 @@ describe Chef::DSL::RebootPending, :windows_only do
36
39
  let(:reg_key) { nil }
37
40
  let(:original_set) { false }
38
41
 
39
- before(:all) { @any_flag = Hash.new }
40
-
41
- after { @any_flag[reg_key] = original_set }
42
-
43
42
  describe 'HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\PendingFileRenameOperations' do
44
43
  let(:reg_key) { 'HKLM\SYSTEM\CurrentControlSet\Control\Session Manager' }
45
44
  let(:original_set) { registry.value_exists?(reg_key, { name: "PendingFileRenameOperations" }) }
@@ -47,7 +46,7 @@ describe Chef::DSL::RebootPending, :windows_only do
47
46
  it "returns true if the registry value exists" do
48
47
  skip "found existing registry key" if original_set
49
48
  registry.set_value(reg_key,
50
- { name: "PendingFileRenameOperations", type: :multi_string, data: ['\??\C:\foo.txt|\??\C:\bar.txt'] })
49
+ { name: "PendingFileRenameOperations", type: :multi_string, data: ['\??\C:\foo.txt|\??\C:\bar.txt'] })
51
50
 
52
51
  expect(recipe.reboot_pending?).to be_truthy
53
52
  end
@@ -59,25 +58,6 @@ describe Chef::DSL::RebootPending, :windows_only do
59
58
  end
60
59
  end
61
60
 
62
- describe 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\RebootRequired' do
63
- let(:reg_key) { 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\RebootRequired' }
64
- let(:original_set) { registry.key_exists?(reg_key) }
65
-
66
- it "returns true if the registry key exists" do
67
- skip "found existing registry key" if original_set
68
- pending "Permissions are limited to 'TrustedInstaller' by default"
69
- registry.create_key(reg_key, false)
70
-
71
- expect(recipe.reboot_pending?).to be_truthy
72
- end
73
-
74
- after do
75
- unless original_set
76
- registry.delete_key(reg_key, false)
77
- end
78
- end
79
- end
80
-
81
61
  describe 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired' do
82
62
  let(:reg_key) { 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired' }
83
63
  let(:original_set) { registry.key_exists?(reg_key) }
@@ -98,7 +78,9 @@ describe Chef::DSL::RebootPending, :windows_only do
98
78
 
99
79
  describe "when there is nothing to indicate a reboot is pending" do
100
80
  it "should return false" do
101
- skip "reboot pending" if @any_flag.any? { |_, v| v == true }
81
+ skip "reboot pending" if registry_value_exists?('HKLM\SYSTEM\CurrentControlSet\Control\Session Manager', { name: "PendingFileRenameOperations" }) ||
82
+ registry_key_exists?('HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired') ||
83
+ registry_key_exists?('HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\RebootPending')
102
84
  expect(recipe.reboot_pending?).to be_falsey
103
85
  end
104
86
  end
@@ -49,16 +49,18 @@ describe Chef::EventLoggers::WindowsEventLogger, :windows_only do
49
49
  logger.run_start(version)
50
50
 
51
51
  expect(event_log.read(flags, offset).any? do |e|
52
- e.source == "Chef" && e.event_id == 10000 &&
53
- e.string_inserts[0].include?(version) end).to be_truthy
52
+ e.source == "Chef" && e.event_id == 10000 &&
53
+ e.string_inserts[0].include?(version)
54
+ end ).to be_truthy
54
55
  end
55
56
 
56
57
  it "writes run_started event with event_id 10001 and contains the run_id" do
57
58
  logger.run_started(run_status)
58
59
 
59
60
  expect(event_log.read(flags, offset).any? do |e|
60
- e.source == "Chef" && e.event_id == 10001 &&
61
- e.string_inserts[0].include?(run_id) end).to be_truthy
61
+ e.source == "Chef" && e.event_id == 10001 &&
62
+ e.string_inserts[0].include?(run_id)
63
+ end ).to be_truthy
62
64
  end
63
65
 
64
66
  it "writes run_completed event with event_id 10002 and contains the run_id and elapsed time" do
@@ -175,20 +175,20 @@ end
175
175
  describe Chef::FileContentManagement::Deploy::Cp do
176
176
 
177
177
  let(:unix_invariants) do
178
- [
179
- :uid,
180
- :gid,
181
- :mode,
182
- :ino,
183
- ]
178
+ %i{
179
+ uid
180
+ gid
181
+ mode
182
+ ino
183
+ }
184
184
  end
185
185
 
186
186
  let(:security_descriptor_invariants) do
187
- [
188
- :owner,
189
- :group,
190
- :dacl,
191
- ]
187
+ %i{
188
+ owner
189
+ group
190
+ dacl
191
+ }
192
192
  end
193
193
 
194
194
  it_should_behave_like "a content deploy strategy"
@@ -198,11 +198,11 @@ end
198
198
  describe Chef::FileContentManagement::Deploy::MvUnix, :unix_only do
199
199
 
200
200
  let(:unix_invariants) do
201
- [
202
- :uid,
203
- :gid,
204
- :mode,
205
- ]
201
+ %i{
202
+ uid
203
+ gid
204
+ mode
205
+ }
206
206
  end
207
207
 
208
208
  it_should_behave_like "a content deploy strategy"
@@ -216,11 +216,11 @@ describe Chef::FileContentManagement::Deploy::MvWindows, :windows_only do
216
216
  context "when a file has no sacl" do
217
217
 
218
218
  let(:security_descriptor_invariants) do
219
- [
220
- :owner,
221
- :group,
222
- :dacl,
223
- ]
219
+ %i{
220
+ owner
221
+ group
222
+ dacl
223
+ }
224
224
  end
225
225
 
226
226
  it_should_behave_like "a content deploy strategy"