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
@@ -34,7 +34,7 @@ describe "redirection", :workstation do
34
34
  real_chef_server_url = Chef::Config.chef_server_url
35
35
  Chef::Config.chef_server_url = "http://localhost:9018"
36
36
  app = lambda do |env|
37
- [302, { "Content-Type" => "text", "Location" => "#{real_chef_server_url}#{env['PATH_INFO']}" }, ["302 found"] ]
37
+ [302, { "Content-Type" => "text", "Location" => "#{real_chef_server_url}#{env["PATH_INFO"]}" }, ["302 found"] ]
38
38
  end
39
39
  @redirector_server_thread = start_app_server(app, 9018)
40
40
  end
@@ -39,12 +39,12 @@ describe "knife role bulk delete", :workstation do
39
39
 
40
40
  Are you sure you want to delete these roles? (Y/N) Deleted role car
41
41
  Deleted role cat
42
- EOM
42
+ EOM
43
43
 
44
44
  knife("role list").should_succeed <<~EOM
45
45
  cdr
46
46
  cons
47
- EOM
47
+ EOM
48
48
  end
49
49
 
50
50
  end
@@ -34,13 +34,13 @@ describe "knife role delete", :workstation do
34
34
  it "deletes a role" do
35
35
  knife("role delete car", input: "Y").should_succeed <<~EOM
36
36
  Do you really want to delete car? (Y/N) Deleted role[car]
37
- EOM
37
+ EOM
38
38
 
39
39
  knife("role list").should_succeed <<~EOM
40
40
  cat
41
41
  cdr
42
42
  cons
43
- EOM
43
+ EOM
44
44
  end
45
45
 
46
46
  end
@@ -42,7 +42,7 @@ describe "knife role from file", :workstation do
42
42
 
43
43
  }
44
44
  }
45
- EOM
45
+ EOM
46
46
 
47
47
  file "roles/car.json", <<~EOM
48
48
  {
@@ -57,7 +57,7 @@ EOM
57
57
 
58
58
  }
59
59
  }
60
- EOM
60
+ EOM
61
61
 
62
62
  file "roles/cdr.json", <<~EOM
63
63
  {
@@ -72,14 +72,14 @@ EOM
72
72
 
73
73
  }
74
74
  }
75
- EOM
75
+ EOM
76
76
 
77
77
  end
78
78
 
79
79
  it "uploads a single file" do
80
80
  knife("role from file #{role_dir}/cons.json").should_succeed stderr: <<~EOM
81
81
  Updated Role cons
82
- EOM
82
+ EOM
83
83
  end
84
84
 
85
85
  it "uploads many files" do
@@ -87,7 +87,7 @@ EOM
87
87
  Updated Role cons
88
88
  Updated Role car
89
89
  Updated Role cdr
90
- EOM
90
+ EOM
91
91
  end
92
92
 
93
93
  end
@@ -37,7 +37,7 @@ describe "knife role list", :workstation do
37
37
  cat
38
38
  cdr
39
39
  cons
40
- EOM
40
+ EOM
41
41
  end
42
42
 
43
43
  end
@@ -42,7 +42,7 @@ describe "knife role show", :workstation do
42
42
  name: cons
43
43
  override_attributes:
44
44
  run_list:
45
- EOM
45
+ EOM
46
46
  end
47
47
  # rubocop:enable Layout/TrailingWhitespace
48
48
 
@@ -52,13 +52,13 @@ describe "knife show", :workstation do
52
52
  knife("show /cookbooks/x/metadata.rb").should_succeed <<~EOM
53
53
  /cookbooks/x/metadata.rb:
54
54
  name "x"; version "1.0.0"
55
- EOM
55
+ EOM
56
56
  end
57
57
  it "knife show --local /cookbooks/x/metadata.rb shows the local version" do
58
58
  knife("show --local /cookbooks/x/metadata.rb").should_succeed <<~EOM
59
59
  /cookbooks/x/metadata.rb:
60
60
  name "x"; version "1.0.0"
61
- EOM
61
+ EOM
62
62
  end
63
63
  it "knife show /data_bags/x/y.json shows the remote version" do
64
64
  knife("show /data_bags/x/y.json").should_succeed <<~EOM
@@ -66,7 +66,7 @@ EOM
66
66
  {
67
67
  "id": "y"
68
68
  }
69
- EOM
69
+ EOM
70
70
  end
71
71
  it "knife show --local /data_bags/x/y.json shows the local version" do
72
72
  knife("show --local /data_bags/x/y.json").should_succeed <<~EOM
@@ -74,7 +74,7 @@ EOM
74
74
  {
75
75
  "foo": "bar"
76
76
  }
77
- EOM
77
+ EOM
78
78
  end
79
79
  it "knife show /environments/x.json shows the remote version", skip: (RUBY_VERSION < "1.9") do
80
80
  knife("show /environments/x.json").should_succeed <<~EOM
@@ -82,7 +82,7 @@ EOM
82
82
  {
83
83
  "name": "x"
84
84
  }
85
- EOM
85
+ EOM
86
86
  end
87
87
  it "knife show --local /environments/x.json shows the local version" do
88
88
  knife("show --local /environments/x.json").should_succeed <<~EOM
@@ -90,7 +90,7 @@ EOM
90
90
  {
91
91
  "foo": "bar"
92
92
  }
93
- EOM
93
+ EOM
94
94
  end
95
95
  it "knife show /roles/x.json shows the remote version", skip: (RUBY_VERSION < "1.9") do
96
96
  knife("show /roles/x.json").should_succeed <<~EOM
@@ -98,7 +98,7 @@ EOM
98
98
  {
99
99
  "name": "x"
100
100
  }
101
- EOM
101
+ EOM
102
102
  end
103
103
  it "knife show --local /roles/x.json shows the local version" do
104
104
  knife("show --local /roles/x.json").should_succeed <<~EOM
@@ -106,7 +106,7 @@ EOM
106
106
  {
107
107
  "foo": "bar"
108
108
  }
109
- EOM
109
+ EOM
110
110
  end
111
111
  # show directory
112
112
  it "knife show /data_bags/x fails" do
@@ -151,7 +151,7 @@ EOM
151
151
  "x": "y"
152
152
  }
153
153
  }
154
- EOM
154
+ EOM
155
155
  end
156
156
  end
157
157
 
@@ -161,7 +161,7 @@ EOM
161
161
  knife("show --local /environments/x.json").should_succeed <<~EOM
162
162
  /environments/x.json:
163
163
  {
164
- EOM
164
+ EOM
165
165
  end
166
166
  end
167
167
  end
@@ -64,7 +64,7 @@ describe "knife upload", :workstation do
64
64
  D\t/roles/x.json
65
65
  D\t/users/admin.json
66
66
  D\t/users/x.json
67
- EOM
67
+ EOM
68
68
  end
69
69
 
70
70
  it "knife upload --purge deletes everything" do
@@ -79,10 +79,10 @@ EOM
79
79
  Deleted extra entry /roles/x.json (purge is on)
80
80
  Deleted extra entry /users/admin.json (purge is on)
81
81
  Deleted extra entry /users/x.json (purge is on)
82
- EOM
82
+ EOM
83
83
  knife("diff --name-status /").should_succeed <<~EOM
84
84
  D\t/environments/_default.json
85
- EOM
85
+ EOM
86
86
  end
87
87
  end
88
88
 
@@ -145,7 +145,7 @@ EOM
145
145
 
146
146
  ]
147
147
  }
148
- EOM
148
+ EOM
149
149
  end
150
150
 
151
151
  it "knife upload / does not change anything" do
@@ -159,7 +159,7 @@ EOM
159
159
  file "roles/x.rb", <<~EOM
160
160
  name "x"
161
161
  description "blargle"
162
- EOM
162
+ EOM
163
163
  end
164
164
 
165
165
  it "knife upload changes the role" do
@@ -208,7 +208,7 @@ EOM
208
208
  Created /nodes/y.json
209
209
  Created /roles/y.json
210
210
  Created /users/y.json
211
- EOM
211
+ EOM
212
212
  knife("diff /").should_succeed ""
213
213
  end
214
214
 
@@ -224,7 +224,7 @@ EOM
224
224
  Created /nodes/y.json
225
225
  Created /roles/y.json
226
226
  Created /users/y.json
227
- EOM
227
+ EOM
228
228
  knife("diff --name-status /").should_succeed ""
229
229
  end
230
230
  end
@@ -241,7 +241,7 @@ EOM
241
241
  D\t/nodes
242
242
  D\t/roles
243
243
  D\t/users
244
- EOM
244
+ EOM
245
245
  end
246
246
 
247
247
  it "knife upload --purge deletes nothing" do
@@ -253,7 +253,7 @@ EOM
253
253
  ERROR: /nodes cannot be deleted.
254
254
  ERROR: /roles cannot be deleted.
255
255
  ERROR: /users cannot be deleted.
256
- EOM
256
+ EOM
257
257
  knife("diff --name-status /").should_succeed <<~EOM
258
258
  D\t/clients
259
259
  D\t/cookbooks
@@ -262,7 +262,7 @@ EOM
262
262
  D\t/nodes
263
263
  D\t/roles
264
264
  D\t/users
265
- EOM
265
+ EOM
266
266
  end
267
267
 
268
268
  context "when current directory is top level" do
@@ -288,7 +288,7 @@ EOM
288
288
  knife("upload /data_bags/x/y.json").should_succeed <<~EOM
289
289
  Created /data_bags/x
290
290
  Created /data_bags/x/y.json
291
- EOM
291
+ EOM
292
292
  knife("diff --name-status /data_bags").should_succeed <<EOM
293
293
  EOM
294
294
  expect(Chef::JSONCompat.parse(knife("raw /data/x/y").stdout, create_additions: false).keys.sort).to eq(%w{foo id})
@@ -298,7 +298,7 @@ EOM
298
298
  knife("upload /data_bags/x /data_bags/x/y.json").should_succeed <<~EOM
299
299
  Created /data_bags/x
300
300
  Created /data_bags/x/y.json
301
- EOM
301
+ EOM
302
302
  end
303
303
  end
304
304
 
@@ -312,7 +312,7 @@ EOM
312
312
  knife("upload /data_bags/x/y.json").should_succeed <<~EOM
313
313
  Created /data_bags/x
314
314
  Created /data_bags/x/y.json
315
- EOM
315
+ EOM
316
316
  knife("diff --name-status /data_bags").should_succeed ""
317
317
  result = Chef::JSONCompat.parse(knife("raw /data/x/y").stdout, create_additions: false)
318
318
  expect(result.keys.sort).to eq(%w{chef_type data_bag id})
@@ -331,10 +331,10 @@ EOM
331
331
  knife("upload /data_bags/x/y.json").should_succeed <<~EOM
332
332
  Created /data_bags/x
333
333
  Created /data_bags/x/y.json
334
- EOM
334
+ EOM
335
335
  knife("diff --name-status /data_bags").should_succeed <<~EOM
336
336
  A\t/data_bags/x/z.json
337
- EOM
337
+ EOM
338
338
  end
339
339
  end
340
340
  end
@@ -355,11 +355,11 @@ EOM
355
355
  it "knife upload of the modified file succeeds" do
356
356
  knife("upload /data_bags/x/modified.json").should_succeed <<~EOM
357
357
  Updated /data_bags/x/modified.json
358
- EOM
358
+ EOM
359
359
  knife("diff --name-status /data_bags").should_succeed <<~EOM
360
360
  D\t/data_bags/x/deleted.json
361
361
  A\t/data_bags/x/added.json
362
- EOM
362
+ EOM
363
363
  end
364
364
  it "knife upload of the unmodified file does nothing" do
365
365
  knife("upload /data_bags/x/unmodified.json").should_succeed ""
@@ -367,16 +367,16 @@ EOM
367
367
  D\t/data_bags/x/deleted.json
368
368
  M\t/data_bags/x/modified.json
369
369
  A\t/data_bags/x/added.json
370
- EOM
370
+ EOM
371
371
  end
372
372
  it "knife upload of the added file succeeds" do
373
373
  knife("upload /data_bags/x/added.json").should_succeed <<~EOM
374
374
  Created /data_bags/x/added.json
375
- EOM
375
+ EOM
376
376
  knife("diff --name-status /data_bags").should_succeed <<~EOM
377
377
  D\t/data_bags/x/deleted.json
378
378
  M\t/data_bags/x/modified.json
379
- EOM
379
+ EOM
380
380
  end
381
381
  it "knife upload of the deleted file does nothing" do
382
382
  knife("upload /data_bags/x/deleted.json").should_succeed ""
@@ -384,32 +384,32 @@ EOM
384
384
  D\t/data_bags/x/deleted.json
385
385
  M\t/data_bags/x/modified.json
386
386
  A\t/data_bags/x/added.json
387
- EOM
387
+ EOM
388
388
  end
389
389
  it "knife upload --purge of the deleted file deletes it" do
390
390
  knife("upload --purge /data_bags/x/deleted.json").should_succeed <<~EOM
391
391
  Deleted extra entry /data_bags/x/deleted.json (purge is on)
392
- EOM
392
+ EOM
393
393
  knife("diff --name-status /data_bags").should_succeed <<~EOM
394
394
  M\t/data_bags/x/modified.json
395
395
  A\t/data_bags/x/added.json
396
- EOM
396
+ EOM
397
397
  end
398
398
  it "knife upload of the entire data bag uploads everything" do
399
399
  knife("upload /data_bags/x").should_succeed <<~EOM
400
400
  Created /data_bags/x/added.json
401
401
  Updated /data_bags/x/modified.json
402
- EOM
402
+ EOM
403
403
  knife("diff --name-status /data_bags").should_succeed <<~EOM
404
404
  D\t/data_bags/x/deleted.json
405
- EOM
405
+ EOM
406
406
  end
407
407
  it "knife upload --purge of the entire data bag uploads everything" do
408
408
  knife("upload --purge /data_bags/x").should_succeed <<~EOM
409
409
  Created /data_bags/x/added.json
410
410
  Updated /data_bags/x/modified.json
411
411
  Deleted extra entry /data_bags/x/deleted.json (purge is on)
412
- EOM
412
+ EOM
413
413
  knife("diff --name-status /data_bags").should_succeed ""
414
414
  end
415
415
  context "when cwd is the /data_bags directory" do
@@ -427,7 +427,7 @@ EOM
427
427
  Created x/added.json
428
428
  Updated x/modified.json
429
429
  Deleted extra entry x/deleted.json (purge is on)
430
- EOM
430
+ EOM
431
431
  knife("diff --name-status /data_bags").should_succeed ""
432
432
  end
433
433
  it "knife upload --purge * uploads everything" do
@@ -435,7 +435,7 @@ EOM
435
435
  Created x/added.json
436
436
  Updated x/modified.json
437
437
  Deleted extra entry x/deleted.json (purge is on)
438
- EOM
438
+ EOM
439
439
  knife("diff --name-status /data_bags").should_succeed ""
440
440
  end
441
441
  end
@@ -468,13 +468,13 @@ EOM
468
468
  it "knife upload of the cookbook itself succeeds" do
469
469
  knife("upload /cookbooks/x").should_succeed <<~EOM
470
470
  Updated /cookbooks/x
471
- EOM
471
+ EOM
472
472
  knife("diff --name-status /cookbooks").should_succeed ""
473
473
  end
474
474
  it "knife upload --purge of the cookbook itself succeeds" do
475
475
  knife("upload /cookbooks/x").should_succeed <<~EOM
476
476
  Updated /cookbooks/x
477
- EOM
477
+ EOM
478
478
  knife("diff --name-status /cookbooks").should_succeed ""
479
479
  end
480
480
  end
@@ -487,7 +487,7 @@ EOM
487
487
  it "knife upload of the cookbook succeeds" do
488
488
  knife("upload /cookbooks/x").should_succeed <<~EOM
489
489
  Updated /cookbooks/x
490
- EOM
490
+ EOM
491
491
  knife("diff --name-status /cookbooks").should_succeed ""
492
492
  end
493
493
  end
@@ -502,7 +502,7 @@ EOM
502
502
  it "knife upload of the cookbook succeeds" do
503
503
  knife("upload /cookbooks/x").should_succeed <<~EOM
504
504
  Updated /cookbooks/x
505
- EOM
505
+ EOM
506
506
  knife("diff --name-status /cookbooks").should_succeed ""
507
507
  end
508
508
  end
@@ -515,7 +515,7 @@ EOM
515
515
  it "knife upload --freeze freezes the cookbook" do
516
516
  knife("upload --freeze /cookbooks/x").should_succeed <<~EOM
517
517
  Updated /cookbooks/x
518
- EOM
518
+ EOM
519
519
  # Modify a file and attempt to upload
520
520
  file "cookbooks/x/metadata.rb", 'name "x"; version "1.0.0"#different'
521
521
  knife("upload /cookbooks/x").should_fail "ERROR: /cookbooks failed to write: Cookbook x is frozen\n"
@@ -540,7 +540,7 @@ EOM
540
540
  it "knife upload --force uploads the frozen cookbook" do
541
541
  knife("upload --force /cookbooks/frozencook").should_succeed <<~EOM
542
542
  Updated /cookbooks/frozencook
543
- EOM
543
+ EOM
544
544
  end
545
545
  end
546
546
  end
@@ -562,15 +562,15 @@ EOM
562
562
  M\t/cookbooks/x/metadata.rb
563
563
  D\t/cookbooks/x/onlyin1.0.1.rb
564
564
  A\t/cookbooks/x/onlyin1.0.0.rb
565
- EOM
565
+ EOM
566
566
  knife("upload --purge /cookbooks/x").should_succeed <<~EOM
567
567
  Updated /cookbooks/x
568
- EOM
568
+ EOM
569
569
  knife("diff --name-status /cookbooks").should_succeed <<~EOM
570
570
  M\t/cookbooks/x/metadata.rb
571
571
  D\t/cookbooks/x/onlyin1.0.1.rb
572
572
  A\t/cookbooks/x/onlyin1.0.0.rb
573
- EOM
573
+ EOM
574
574
  end
575
575
  end
576
576
 
@@ -583,7 +583,7 @@ EOM
583
583
  it "knife upload /cookbooks/x uploads the local version" do
584
584
  knife("upload --purge /cookbooks/x").should_succeed <<~EOM
585
585
  Updated /cookbooks/x
586
- EOM
586
+ EOM
587
587
  knife("diff --name-status /cookbooks").should_succeed ""
588
588
  end
589
589
  end
@@ -598,27 +598,27 @@ EOM
598
598
  M\t/cookbooks/x/metadata.rb
599
599
  D\t/cookbooks/x/onlyin1.0.1.rb
600
600
  A\t/cookbooks/x/onlyin1.0.0.rb
601
- EOM
601
+ EOM
602
602
  knife("upload --purge /cookbooks/x").should_succeed <<~EOM
603
603
  Updated /cookbooks/x
604
- EOM
604
+ EOM
605
605
  knife("diff --name-status /cookbooks").should_succeed <<~EOM
606
606
  M\t/cookbooks/x/metadata.rb
607
607
  D\t/cookbooks/x/onlyin1.0.1.rb
608
608
  A\t/cookbooks/x/onlyin1.0.0.rb
609
- EOM
609
+ EOM
610
610
  end
611
611
  end
612
612
 
613
613
  when_the_chef_server "has an earlier version for the cookbook, and no current version" do
614
614
  before do
615
- cookbook "x", "0.9.9", { "onlyin0.9.9.rb" => "hi" }
615
+ cookbook "x", "0.9.9", { "onlyin0.9.9.rb" => "hi" }
616
616
  end
617
617
 
618
618
  it "knife upload /cookbooks/x uploads the new version" do
619
619
  knife("upload --purge /cookbooks/x").should_succeed <<~EOM
620
620
  Updated /cookbooks/x
621
- EOM
621
+ EOM
622
622
  knife("diff --name-status /cookbooks").should_succeed ""
623
623
  end
624
624
  end
@@ -636,7 +636,7 @@ EOM
636
636
 
637
637
  it "knife upload tries and fails" do
638
638
  error1 = <<~EOH
639
- WARN: Parse error reading #{path_to('environments/x.json')} as JSON: parse error: premature EOF
639
+ WARN: Parse error reading #{path_to("environments/x.json")} as JSON: parse error: premature EOF
640
640
  {
641
641
  (right here) ------^
642
642
 
@@ -646,7 +646,7 @@ EOM
646
646
  EOH
647
647
 
648
648
  warn = <<~EOH
649
- WARN: Parse error reading #{path_to('environments/x.json')} as JSON: parse error: premature EOF
649
+ WARN: Parse error reading #{path_to("environments/x.json")} as JSON: parse error: premature EOF
650
650
  {
651
651
  (right here) ------^
652
652
 
@@ -718,7 +718,7 @@ EOM
718
718
  it "knife upload succeeds" do
719
719
  knife("upload /cookbooks/x").should_succeed <<~EOM
720
720
  Created /cookbooks/x
721
- EOM
721
+ EOM
722
722
  knife("diff --name-status /cookbooks").should_succeed ""
723
723
  end
724
724
  end
@@ -763,7 +763,7 @@ EOM
763
763
  D\t/roles/x.json
764
764
  D\t/users/admin.json
765
765
  D\t/users/x.json
766
- EOM
766
+ EOM
767
767
  end
768
768
 
769
769
  it "knife upload --purge deletes everything" do
@@ -778,10 +778,10 @@ EOM
778
778
  Deleted extra entry /roles/x.json (purge is on)
779
779
  Deleted extra entry /users/admin.json (purge is on)
780
780
  Deleted extra entry /users/x.json (purge is on)
781
- EOM
781
+ EOM
782
782
  knife("diff --name-status /").should_succeed <<~EOM
783
783
  D\t/environments/_default.json
784
- EOM
784
+ EOM
785
785
  end
786
786
  end
787
787
 
@@ -840,7 +840,7 @@ EOM
840
840
 
841
841
  ]
842
842
  }
843
- EOM
843
+ EOM
844
844
  end
845
845
 
846
846
  it "knife upload / does not change anything" do
@@ -876,7 +876,7 @@ EOM
876
876
  Created /nodes/y.json
877
877
  Created /roles/y.json
878
878
  Created /users/y.json
879
- EOM
879
+ EOM
880
880
  knife("diff --name-status /").should_succeed ""
881
881
  end
882
882
  end
@@ -893,7 +893,7 @@ EOM
893
893
  D\t/nodes
894
894
  D\t/roles
895
895
  D\t/users
896
- EOM
896
+ EOM
897
897
  end
898
898
 
899
899
  it "knife upload --purge deletes nothing" do
@@ -905,7 +905,7 @@ EOM
905
905
  ERROR: /nodes cannot be deleted.
906
906
  ERROR: /roles cannot be deleted.
907
907
  ERROR: /users cannot be deleted.
908
- EOM
908
+ EOM
909
909
  knife("diff --name-status /").should_succeed <<~EOM
910
910
  D\t/clients
911
911
  D\t/cookbooks
@@ -914,7 +914,7 @@ EOM
914
914
  D\t/nodes
915
915
  D\t/roles
916
916
  D\t/users
917
- EOM
917
+ EOM
918
918
  end
919
919
 
920
920
  context "when current directory is top level" do
@@ -940,10 +940,10 @@ EOM
940
940
  knife("upload /data_bags/x/y.json").should_succeed <<~EOM
941
941
  Created /data_bags/x
942
942
  Created /data_bags/x/y.json
943
- EOM
943
+ EOM
944
944
  knife("diff --name-status /data_bags").should_succeed <<~EOM
945
945
  A\t/data_bags/x/z.json
946
- EOM
946
+ EOM
947
947
  end
948
948
  end
949
949
  end
@@ -962,11 +962,11 @@ EOM
962
962
  it "knife upload of the modified file succeeds" do
963
963
  knife("upload /data_bags/x/modified.json").should_succeed <<~EOM
964
964
  Updated /data_bags/x/modified.json
965
- EOM
965
+ EOM
966
966
  knife("diff --name-status /data_bags").should_succeed <<~EOM
967
967
  D\t/data_bags/x/deleted.json
968
968
  A\t/data_bags/x/added.json
969
- EOM
969
+ EOM
970
970
  end
971
971
  it "knife upload of the unmodified file does nothing" do
972
972
  knife("upload /data_bags/x/unmodified.json").should_succeed ""
@@ -974,16 +974,16 @@ EOM
974
974
  D\t/data_bags/x/deleted.json
975
975
  M\t/data_bags/x/modified.json
976
976
  A\t/data_bags/x/added.json
977
- EOM
977
+ EOM
978
978
  end
979
979
  it "knife upload of the added file succeeds" do
980
980
  knife("upload /data_bags/x/added.json").should_succeed <<~EOM
981
981
  Created /data_bags/x/added.json
982
- EOM
982
+ EOM
983
983
  knife("diff --name-status /data_bags").should_succeed <<~EOM
984
984
  D\t/data_bags/x/deleted.json
985
985
  M\t/data_bags/x/modified.json
986
- EOM
986
+ EOM
987
987
  end
988
988
  it "knife upload of the deleted file does nothing" do
989
989
  knife("upload /data_bags/x/deleted.json").should_succeed ""
@@ -991,32 +991,32 @@ EOM
991
991
  D\t/data_bags/x/deleted.json
992
992
  M\t/data_bags/x/modified.json
993
993
  A\t/data_bags/x/added.json
994
- EOM
994
+ EOM
995
995
  end
996
996
  it "knife upload --purge of the deleted file deletes it" do
997
997
  knife("upload --purge /data_bags/x/deleted.json").should_succeed <<~EOM
998
998
  Deleted extra entry /data_bags/x/deleted.json (purge is on)
999
- EOM
999
+ EOM
1000
1000
  knife("diff --name-status /data_bags").should_succeed <<~EOM
1001
1001
  M\t/data_bags/x/modified.json
1002
1002
  A\t/data_bags/x/added.json
1003
- EOM
1003
+ EOM
1004
1004
  end
1005
1005
  it "knife upload of the entire data bag uploads everything" do
1006
1006
  knife("upload /data_bags/x").should_succeed <<~EOM
1007
1007
  Created /data_bags/x/added.json
1008
1008
  Updated /data_bags/x/modified.json
1009
- EOM
1009
+ EOM
1010
1010
  knife("diff --name-status /data_bags").should_succeed <<~EOM
1011
1011
  D\t/data_bags/x/deleted.json
1012
- EOM
1012
+ EOM
1013
1013
  end
1014
1014
  it "knife upload --purge of the entire data bag uploads everything" do
1015
1015
  knife("upload --purge /data_bags/x").should_succeed <<~EOM
1016
1016
  Created /data_bags/x/added.json
1017
1017
  Updated /data_bags/x/modified.json
1018
1018
  Deleted extra entry /data_bags/x/deleted.json (purge is on)
1019
- EOM
1019
+ EOM
1020
1020
  knife("diff --name-status /data_bags").should_succeed ""
1021
1021
  end
1022
1022
  context "when cwd is the /data_bags directory" do
@@ -1031,7 +1031,7 @@ EOM
1031
1031
  Created x/added.json
1032
1032
  Updated x/modified.json
1033
1033
  Deleted extra entry x/deleted.json (purge is on)
1034
- EOM
1034
+ EOM
1035
1035
  knife("diff --name-status /data_bags").should_succeed ""
1036
1036
  end
1037
1037
  it "knife upload --purge * uploads everything" do
@@ -1039,7 +1039,7 @@ EOM
1039
1039
  Created x/added.json
1040
1040
  Updated x/modified.json
1041
1041
  Deleted extra entry x/deleted.json (purge is on)
1042
- EOM
1042
+ EOM
1043
1043
  knife("diff --name-status /data_bags").should_succeed ""
1044
1044
  end
1045
1045
  end
@@ -1072,14 +1072,14 @@ EOM
1072
1072
  it "knife upload of the cookbook itself succeeds" do
1073
1073
  knife("upload /cookbooks/x-1.0.0").should_succeed <<~EOM
1074
1074
  Updated /cookbooks/x-1.0.0
1075
- EOM
1075
+ EOM
1076
1076
  knife("diff --name-status /cookbooks").should_succeed ""
1077
1077
  end
1078
1078
 
1079
1079
  it "knife upload --purge of the cookbook itself succeeds" do
1080
1080
  knife("upload /cookbooks/x-1.0.0").should_succeed <<~EOM
1081
1081
  Updated /cookbooks/x-1.0.0
1082
- EOM
1082
+ EOM
1083
1083
  knife("diff --name-status /cookbooks").should_succeed ""
1084
1084
  end
1085
1085
  end
@@ -1092,7 +1092,7 @@ EOM
1092
1092
  it "knife upload of the cookbook succeeds" do
1093
1093
  knife("upload /cookbooks/x-1.0.0").should_succeed <<~EOM
1094
1094
  Updated /cookbooks/x-1.0.0
1095
- EOM
1095
+ EOM
1096
1096
  knife("diff --name-status /cookbooks").should_succeed ""
1097
1097
  end
1098
1098
  end
@@ -1107,7 +1107,7 @@ EOM
1107
1107
  it "knife upload of the cookbook succeeds" do
1108
1108
  knife("upload /cookbooks/x-1.0.0").should_succeed <<~EOM
1109
1109
  Updated /cookbooks/x-1.0.0
1110
- EOM
1110
+ EOM
1111
1111
  knife("diff --name-status /cookbooks").should_succeed ""
1112
1112
  end
1113
1113
  end
@@ -1129,11 +1129,11 @@ EOM
1129
1129
  knife("diff --name-status /cookbooks").should_succeed <<~EOM
1130
1130
  M\t/cookbooks/x-1.0.0/onlyin1.0.0.rb
1131
1131
  D\t/cookbooks/x-1.0.1
1132
- EOM
1132
+ EOM
1133
1133
  knife("upload --purge /cookbooks").should_succeed <<~EOM
1134
1134
  Updated /cookbooks/x-1.0.0
1135
1135
  Deleted extra entry /cookbooks/x-1.0.1 (purge is on)
1136
- EOM
1136
+ EOM
1137
1137
  knife("diff --name-status /cookbooks").should_succeed ""
1138
1138
  end
1139
1139
  end
@@ -1147,7 +1147,7 @@ EOM
1147
1147
  knife("upload --purge /cookbooks").should_succeed <<~EOM
1148
1148
  Updated /cookbooks/x-1.0.0
1149
1149
  Deleted extra entry /cookbooks/x-0.9.9 (purge is on)
1150
- EOM
1150
+ EOM
1151
1151
  knife("diff --name-status /cookbooks").should_succeed ""
1152
1152
  end
1153
1153
  end
@@ -1161,11 +1161,11 @@ EOM
1161
1161
  knife("diff --name-status /cookbooks").should_succeed <<~EOM
1162
1162
  D\t/cookbooks/x-1.0.1
1163
1163
  A\t/cookbooks/x-1.0.0
1164
- EOM
1164
+ EOM
1165
1165
  knife("upload --purge /cookbooks").should_succeed <<~EOM
1166
1166
  Created /cookbooks/x-1.0.0
1167
1167
  Deleted extra entry /cookbooks/x-1.0.1 (purge is on)
1168
- EOM
1168
+ EOM
1169
1169
  knife("diff --name-status /cookbooks").should_succeed ""
1170
1170
  end
1171
1171
  end
@@ -1179,7 +1179,7 @@ EOM
1179
1179
  knife("upload --purge /cookbooks").should_succeed <<~EOM
1180
1180
  Created /cookbooks/x-1.0.0
1181
1181
  Deleted extra entry /cookbooks/x-0.9.9 (purge is on)
1182
- EOM
1182
+ EOM
1183
1183
  knife("diff --name-status /cookbooks").should_succeed ""
1184
1184
  end
1185
1185
  end
@@ -1252,7 +1252,7 @@ EOM
1252
1252
  it "knife upload succeeds" do
1253
1253
  knife("upload /cookbooks/x-1.0.0").should_succeed <<~EOM
1254
1254
  Created /cookbooks/x-1.0.0
1255
- EOM
1255
+ EOM
1256
1256
  knife("diff --name-status /cookbooks").should_succeed ""
1257
1257
  end
1258
1258
  end
@@ -1331,7 +1331,7 @@ EOM
1331
1331
  Created /policies/x-1.0.0.json
1332
1332
  Created /policy_groups/x.json
1333
1333
  Created /roles/x.json
1334
- EOM
1334
+ EOM
1335
1335
  expect(api.get("association_requests").map { |a| a["username"] }).to eq([ "foo" ])
1336
1336
  expect(api.get("users").map { |a| a["user"]["username"] }).to eq([ "bar" ])
1337
1337
  knife("diff --name-status --diff-filter=AMT /").should_succeed ""
@@ -1368,7 +1368,7 @@ EOM
1368
1368
  it "knife upload makes no changes" do
1369
1369
  knife("upload /").should_succeed <<~EOM
1370
1370
  Updated /acls/groups/blah.json
1371
- EOM
1371
+ EOM
1372
1372
  end
1373
1373
  end
1374
1374
 
@@ -1380,7 +1380,7 @@ EOM
1380
1380
  it "should fail because policies are not updateable" do
1381
1381
  knife("upload /policies/x-1.0.0.json").should_fail <<~EOM
1382
1382
  ERROR: /policies/x-1.0.0.json cannot be updated: policy revisions are immutable once uploaded. If you want to change the policy, create a new revision with your changes.
1383
- EOM
1383
+ EOM
1384
1384
  end
1385
1385
  end
1386
1386
 
@@ -1392,7 +1392,7 @@ EOM
1392
1392
  it "should fail because cookbook_artifacts cannot be updated" do
1393
1393
  knife("upload /cookbook_artifacts/x-1x1").should_fail <<~EOM
1394
1394
  ERROR: /cookbook_artifacts/x-1x1 cannot be updated: cookbook artifacts are immutable once uploaded.
1395
- EOM
1395
+ EOM
1396
1396
  end
1397
1397
  end
1398
1398
 
@@ -1434,7 +1434,7 @@ EOM
1434
1434
  Created /policies/blah-1.0.0.json
1435
1435
  Updated /policy_groups/x.json
1436
1436
  Updated /roles/x.json
1437
- EOM
1437
+ EOM
1438
1438
  knife("diff --name-status --diff-filter=AMT /").should_succeed ""
1439
1439
  end
1440
1440
  end