chefspec 7.0.0 → 9.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (830) hide show
  1. checksums.yaml +5 -5
  2. data/Gemfile +28 -10
  3. data/Rakefile +74 -18
  4. data/chefspec.gemspec +26 -28
  5. data/lib/chefspec/api/core.rb +217 -0
  6. data/lib/chefspec/api/described.rb +53 -0
  7. data/lib/chefspec/api/do_nothing.rb +23 -21
  8. data/lib/chefspec/api/include_any_recipe.rb +24 -0
  9. data/lib/chefspec/api/include_recipe.rb +25 -23
  10. data/lib/chefspec/api/link.rb +24 -98
  11. data/lib/chefspec/api/notifications.rb +37 -35
  12. data/lib/chefspec/api/reboot.rb +9 -13
  13. data/lib/chefspec/api/render_file.rb +34 -32
  14. data/lib/chefspec/api/state_attrs.rb +27 -25
  15. data/lib/chefspec/api/stubs.rb +183 -0
  16. data/lib/chefspec/api/stubs_for.rb +139 -0
  17. data/lib/chefspec/api/subscriptions.rb +34 -32
  18. data/lib/chefspec/api/user.rb +221 -219
  19. data/lib/chefspec/api.rb +32 -89
  20. data/lib/chefspec/berkshelf.rb +5 -5
  21. data/lib/chefspec/cacher.rb +2 -2
  22. data/lib/chefspec/coverage/filters.rb +18 -15
  23. data/lib/chefspec/coverage.rb +36 -40
  24. data/lib/chefspec/deprecations.rb +5 -14
  25. data/lib/chefspec/errors.rb +8 -7
  26. data/lib/chefspec/expect_exception.rb +2 -1
  27. data/lib/chefspec/extensions/chef/client.rb +6 -7
  28. data/lib/chefspec/extensions/chef/conditional.rb +5 -3
  29. data/lib/chefspec/extensions/chef/cookbook/gem_installer.rb +33 -0
  30. data/lib/chefspec/extensions/chef/cookbook_loader.rb +14 -0
  31. data/lib/chefspec/extensions/chef/cookbook_uploader.rb +4 -3
  32. data/lib/chefspec/extensions/chef/data_query.rb +8 -11
  33. data/lib/chefspec/extensions/chef/lwrp_base.rb +18 -21
  34. data/lib/chefspec/extensions/chef/provider.rb +39 -0
  35. data/lib/chefspec/extensions/chef/resource/freebsd_package.rb +15 -17
  36. data/lib/chefspec/extensions/chef/resource.rb +148 -9
  37. data/lib/chefspec/extensions/chef/run_context/cookbook_compiler.rb +84 -0
  38. data/lib/chefspec/extensions/chef/securable.rb +1 -1
  39. data/lib/chefspec/extensions/ohai/system.rb +11 -0
  40. data/lib/chefspec/extensions.rb +21 -0
  41. data/lib/chefspec/file_cache_path_proxy.rb +3 -3
  42. data/lib/chefspec/formatter.rb +15 -3
  43. data/lib/chefspec/librarian.rb +7 -6
  44. data/lib/chefspec/matchers/do_nothing_matcher.rb +15 -15
  45. data/lib/chefspec/matchers/include_any_recipe_matcher.rb +51 -0
  46. data/lib/chefspec/matchers/include_recipe_matcher.rb +1 -1
  47. data/lib/chefspec/matchers/link_to_matcher.rb +2 -2
  48. data/lib/chefspec/matchers/notifications_matcher.rb +5 -4
  49. data/lib/chefspec/matchers/render_file_matcher.rb +39 -29
  50. data/lib/chefspec/matchers/resource_matcher.rb +19 -17
  51. data/lib/chefspec/matchers.rb +9 -8
  52. data/lib/chefspec/mixins/normalize.rb +1 -1
  53. data/lib/chefspec/policyfile.rb +16 -9
  54. data/lib/chefspec/renderer.rb +4 -4
  55. data/lib/chefspec/rspec.rb +4 -8
  56. data/lib/chefspec/runner.rb +8 -0
  57. data/lib/chefspec/server.rb +1 -1
  58. data/lib/chefspec/server_methods.rb +9 -9
  59. data/lib/chefspec/server_runner.rb +21 -17
  60. data/lib/chefspec/solo_runner.rb +148 -42
  61. data/lib/chefspec/stubs/command_registry.rb +1 -1
  62. data/lib/chefspec/stubs/command_stub.rb +1 -1
  63. data/lib/chefspec/stubs/data_bag_item_registry.rb +1 -1
  64. data/lib/chefspec/stubs/data_bag_item_stub.rb +1 -1
  65. data/lib/chefspec/stubs/data_bag_registry.rb +1 -1
  66. data/lib/chefspec/stubs/data_bag_stub.rb +1 -1
  67. data/lib/chefspec/stubs/registry.rb +1 -1
  68. data/lib/chefspec/stubs/search_registry.rb +2 -2
  69. data/lib/chefspec/stubs/search_stub.rb +2 -2
  70. data/lib/chefspec/util.rb +7 -7
  71. data/lib/chefspec/version.rb +1 -1
  72. data/lib/chefspec/zero_server.rb +23 -21
  73. data/lib/chefspec.rb +29 -36
  74. data/spec/spec_helper.rb +3 -4
  75. data/spec/support/hash.rb +4 -4
  76. data/spec/unit/cacher_spec.rb +17 -17
  77. data/spec/unit/coverage/filters_spec.rb +16 -16
  78. data/spec/unit/deprecations_spec.rb +9 -35
  79. data/spec/unit/errors_spec.rb +15 -15
  80. data/spec/unit/expect_exception_spec.rb +9 -9
  81. data/spec/unit/macros_spec.rb +57 -57
  82. data/spec/unit/matchers/do_nothing_matcher.rb +1 -1
  83. data/spec/unit/matchers/include_any_recipe_matcher_spec.rb +52 -0
  84. data/spec/unit/matchers/include_recipe_matcher_spec.rb +15 -15
  85. data/spec/unit/matchers/link_to_matcher_spec.rb +18 -18
  86. data/spec/unit/matchers/notifications_matcher_spec.rb +15 -16
  87. data/spec/unit/matchers/render_file_matcher_spec.rb +31 -24
  88. data/spec/unit/matchers/resource_matcher_spec.rb +1 -1
  89. data/spec/unit/matchers/state_attrs_matcher_spec.rb +24 -24
  90. data/spec/unit/matchers/subscribes_matcher_spec.rb +27 -29
  91. data/spec/unit/renderer_spec.rb +36 -36
  92. data/spec/unit/server_runner_spec.rb +6 -6
  93. data/spec/unit/solo_runner_spec.rb +70 -70
  94. data/spec/unit/stubs/command_registry_spec.rb +11 -11
  95. data/spec/unit/stubs/command_stub_spec.rb +26 -26
  96. data/spec/unit/stubs/data_bag_item_registry_spec.rb +17 -17
  97. data/spec/unit/stubs/data_bag_item_stub_spec.rb +14 -14
  98. data/spec/unit/stubs/data_bag_registry_spec.rb +16 -16
  99. data/spec/unit/stubs/data_bag_stub_spec.rb +13 -13
  100. data/spec/unit/stubs/registry_spec.rb +9 -9
  101. data/spec/unit/stubs/search_registry_spec.rb +17 -17
  102. data/spec/unit/stubs/search_stub_spec.rb +14 -14
  103. data/spec/unit/stubs/stub_spec.rb +22 -22
  104. data/templates/errors/may_need_to_specify_platform.erb +3 -3
  105. data/templates/errors/shell_out_not_stubbed.erb +10 -0
  106. metadata +47 -902
  107. data/.gitignore +0 -16
  108. data/.travis.yml +0 -32
  109. data/CHANGELOG.md +0 -777
  110. data/CONTRIBUTING.md +0 -52
  111. data/ISSUES.md +0 -41
  112. data/README.md +0 -1230
  113. data/examples/apt_package/recipes/install.rb +0 -13
  114. data/examples/apt_package/recipes/purge.rb +0 -13
  115. data/examples/apt_package/recipes/reconfig.rb +0 -13
  116. data/examples/apt_package/recipes/remove.rb +0 -13
  117. data/examples/apt_package/recipes/upgrade.rb +0 -13
  118. data/examples/apt_package/spec/install_spec.rb +0 -26
  119. data/examples/apt_package/spec/purge_spec.rb +0 -22
  120. data/examples/apt_package/spec/reconfig_spec.rb +0 -22
  121. data/examples/apt_package/spec/remove_spec.rb +0 -22
  122. data/examples/apt_package/spec/upgrade_spec.rb +0 -22
  123. data/examples/apt_repository/recipes/add.rb +0 -8
  124. data/examples/apt_repository/recipes/remove.rb +0 -4
  125. data/examples/apt_repository/spec/add_spec.rb +0 -17
  126. data/examples/apt_repository/spec/remove_spec.rb +0 -12
  127. data/examples/apt_update/recipes/periodic.rb +0 -5
  128. data/examples/apt_update/recipes/update.rb +0 -3
  129. data/examples/apt_update/spec/periodic_spec.rb +0 -17
  130. data/examples/apt_update/spec/update_spec.rb +0 -12
  131. data/examples/attributes/attributes/default.rb +0 -1
  132. data/examples/attributes/recipes/default.rb +0 -4
  133. data/examples/attributes/spec/default_spec.rb +0 -20
  134. data/examples/batch/recipes/run.rb +0 -9
  135. data/examples/batch/spec/run_spec.rb +0 -22
  136. data/examples/bff_package/recipes/install.rb +0 -13
  137. data/examples/bff_package/recipes/purge.rb +0 -13
  138. data/examples/bff_package/recipes/remove.rb +0 -13
  139. data/examples/bff_package/recipes/upgrade.rb +0 -13
  140. data/examples/bff_package/spec/install_spec.rb +0 -23
  141. data/examples/bff_package/spec/purge_spec.rb +0 -19
  142. data/examples/bff_package/spec/remove_spec.rb +0 -19
  143. data/examples/bff_package/spec/upgrade_spec.rb +0 -19
  144. data/examples/cab_package/recipes/install.rb +0 -13
  145. data/examples/cab_package/recipes/remove.rb +0 -13
  146. data/examples/cab_package/spec/install_spec.rb +0 -26
  147. data/examples/cab_package/spec/remove_spec.rb +0 -22
  148. data/examples/cached/recipes/default.rb +0 -1
  149. data/examples/cached/spec/default_spec.rb +0 -13
  150. data/examples/chef_gem/recipes/install.rb +0 -18
  151. data/examples/chef_gem/recipes/purge.rb +0 -16
  152. data/examples/chef_gem/recipes/reconfig.rb +0 -16
  153. data/examples/chef_gem/recipes/remove.rb +0 -16
  154. data/examples/chef_gem/recipes/upgrade.rb +0 -16
  155. data/examples/chef_gem/spec/install_spec.rb +0 -23
  156. data/examples/chef_gem/spec/purge_spec.rb +0 -19
  157. data/examples/chef_gem/spec/reconfig_spec.rb +0 -19
  158. data/examples/chef_gem/spec/remove_spec.rb +0 -19
  159. data/examples/chef_gem/spec/upgrade_spec.rb +0 -19
  160. data/examples/chocolatey_package/recipes/install.rb +0 -6
  161. data/examples/chocolatey_package/recipes/remove.rb +0 -8
  162. data/examples/chocolatey_package/recipes/upgrade.rb +0 -8
  163. data/examples/chocolatey_package/spec/install_spec.rb +0 -19
  164. data/examples/chocolatey_package/spec/remove_spec.rb +0 -18
  165. data/examples/chocolatey_package/spec/upgrade_spec.rb +0 -18
  166. data/examples/compile_time/recipes/default.rb +0 -3
  167. data/examples/compile_time/spec/default_spec.rb +0 -27
  168. data/examples/cookbook_file/recipes/create.rb +0 -15
  169. data/examples/cookbook_file/recipes/create_if_missing.rb +0 -15
  170. data/examples/cookbook_file/recipes/delete.rb +0 -15
  171. data/examples/cookbook_file/recipes/touch.rb +0 -15
  172. data/examples/cookbook_file/spec/create_if_missing_spec.rb +0 -28
  173. data/examples/cookbook_file/spec/create_spec.rb +0 -32
  174. data/examples/cookbook_file/spec/delete_spec.rb +0 -19
  175. data/examples/cookbook_file/spec/touch_spec.rb +0 -19
  176. data/examples/cron/recipes/create.rb +0 -10
  177. data/examples/cron/recipes/delete.rb +0 -9
  178. data/examples/cron/spec/create_spec.rb +0 -19
  179. data/examples/cron/spec/delete_spec.rb +0 -15
  180. data/examples/custom_matcher/libraries/matcher.rb +0 -23
  181. data/examples/custom_matcher/providers/thing.rb +0 -2
  182. data/examples/custom_matcher/recipes/install.rb +0 -13
  183. data/examples/custom_matcher/recipes/remove.rb +0 -13
  184. data/examples/custom_matcher/resources/thing.rb +0 -5
  185. data/examples/custom_matcher/spec/install_spec.rb +0 -27
  186. data/examples/custom_matcher/spec/remove_spec.rb +0 -23
  187. data/examples/custom_resource/libraries/matchers.rb +0 -5
  188. data/examples/custom_resource/recipes/default.rb +0 -1
  189. data/examples/custom_resource/resources/custom_resource.rb +0 -9
  190. data/examples/custom_resource/spec/default_spec.rb +0 -18
  191. data/examples/deploy/recipes/deploy.rb +0 -10
  192. data/examples/deploy/recipes/force_deploy.rb +0 -9
  193. data/examples/deploy/recipes/rollback.rb +0 -9
  194. data/examples/deploy/spec/deploy_spec.rb +0 -15
  195. data/examples/deploy/spec/force_deploy_spec.rb +0 -15
  196. data/examples/deploy/spec/rollback_spec.rb +0 -15
  197. data/examples/directory/recipes/create.rb +0 -18
  198. data/examples/directory/recipes/delete.rb +0 -14
  199. data/examples/directory/spec/create_spec.rb +0 -34
  200. data/examples/directory/spec/delete_spec.rb +0 -26
  201. data/examples/dnf_package/recipes/install.rb +0 -13
  202. data/examples/dnf_package/recipes/purge.rb +0 -13
  203. data/examples/dnf_package/recipes/remove.rb +0 -13
  204. data/examples/dnf_package/recipes/upgrade.rb +0 -13
  205. data/examples/dnf_package/spec/install_spec.rb +0 -26
  206. data/examples/dnf_package/spec/purge_spec.rb +0 -22
  207. data/examples/dnf_package/spec/remove_spec.rb +0 -22
  208. data/examples/dnf_package/spec/upgrade_spec.rb +0 -22
  209. data/examples/do_nothing/recipes/default.rb +0 -3
  210. data/examples/do_nothing/spec/default_spec.rb +0 -15
  211. data/examples/dpkg_package/recipes/install.rb +0 -13
  212. data/examples/dpkg_package/recipes/purge.rb +0 -13
  213. data/examples/dpkg_package/recipes/remove.rb +0 -13
  214. data/examples/dpkg_package/spec/install_spec.rb +0 -26
  215. data/examples/dpkg_package/spec/purge_spec.rb +0 -22
  216. data/examples/dpkg_package/spec/remove_spec.rb +0 -22
  217. data/examples/dsc_resource/recipes/run.rb +0 -20
  218. data/examples/dsc_resource/spec/run_spec.rb +0 -38
  219. data/examples/dsc_script/recipes/run.rb +0 -12
  220. data/examples/dsc_script/spec/run_spec.rb +0 -16
  221. data/examples/env/recipes/create.rb +0 -13
  222. data/examples/env/recipes/delete.rb +0 -13
  223. data/examples/env/recipes/modify.rb +0 -13
  224. data/examples/env/spec/create_spec.rb +0 -26
  225. data/examples/env/spec/delete_spec.rb +0 -22
  226. data/examples/env/spec/modify_spec.rb +0 -22
  227. data/examples/erl_call/recipes/run.rb +0 -13
  228. data/examples/erl_call/spec/run_spec.rb +0 -23
  229. data/examples/execute/recipes/run.rb +0 -13
  230. data/examples/execute/spec/run_spec.rb +0 -23
  231. data/examples/expect_exception/recipes/compile_error.rb +0 -1
  232. data/examples/expect_exception/recipes/converge_error.rb +0 -5
  233. data/examples/expect_exception/recipes/no_error.rb +0 -1
  234. data/examples/expect_exception/spec/compile_error_spec.rb +0 -10
  235. data/examples/expect_exception/spec/converge_error_spec.rb +0 -10
  236. data/examples/expect_exception/spec/no_error_spec.rb +0 -10
  237. data/examples/file/recipes/create.rb +0 -15
  238. data/examples/file/recipes/create_if_missing.rb +0 -15
  239. data/examples/file/recipes/delete.rb +0 -15
  240. data/examples/file/recipes/touch.rb +0 -15
  241. data/examples/file/spec/create_if_missing_spec.rb +0 -28
  242. data/examples/file/spec/create_spec.rb +0 -32
  243. data/examples/file/spec/delete_spec.rb +0 -19
  244. data/examples/file/spec/touch_spec.rb +0 -19
  245. data/examples/freebsd_package/recipes/install.rb +0 -13
  246. data/examples/freebsd_package/recipes/remove.rb +0 -13
  247. data/examples/freebsd_package/spec/install_spec.rb +0 -26
  248. data/examples/freebsd_package/spec/remove_spec.rb +0 -22
  249. data/examples/gem_package/recipes/install.rb +0 -13
  250. data/examples/gem_package/recipes/purge.rb +0 -13
  251. data/examples/gem_package/recipes/reconfig.rb +0 -13
  252. data/examples/gem_package/recipes/remove.rb +0 -13
  253. data/examples/gem_package/recipes/upgrade.rb +0 -13
  254. data/examples/gem_package/spec/install_spec.rb +0 -23
  255. data/examples/gem_package/spec/purge_spec.rb +0 -19
  256. data/examples/gem_package/spec/reconfig_spec.rb +0 -19
  257. data/examples/gem_package/spec/remove_spec.rb +0 -19
  258. data/examples/gem_package/spec/upgrade_spec.rb +0 -19
  259. data/examples/git/recipes/checkout.rb +0 -13
  260. data/examples/git/recipes/export.rb +0 -13
  261. data/examples/git/recipes/sync.rb +0 -13
  262. data/examples/git/spec/checkout_spec.rb +0 -19
  263. data/examples/git/spec/export_spec.rb +0 -19
  264. data/examples/git/spec/sync_spec.rb +0 -23
  265. data/examples/group/recipes/create.rb +0 -13
  266. data/examples/group/recipes/manage.rb +0 -13
  267. data/examples/group/recipes/modify.rb +0 -13
  268. data/examples/group/recipes/remove.rb +0 -13
  269. data/examples/group/spec/create_spec.rb +0 -23
  270. data/examples/group/spec/manage_spec.rb +0 -19
  271. data/examples/group/spec/modify_spec.rb +0 -19
  272. data/examples/group/spec/remove_spec.rb +0 -18
  273. data/examples/guards/recipes/default.rb +0 -13
  274. data/examples/guards/spec/default_spec.rb +0 -17
  275. data/examples/heavy_provider_light_resource/libraries/resource_service.rb +0 -15
  276. data/examples/heavy_provider_light_resource/providers/service.rb +0 -9
  277. data/examples/heavy_provider_light_resource/recipes/default.rb +0 -3
  278. data/examples/heavy_provider_light_resource/spec/provider_service_spec.rb +0 -7
  279. data/examples/homebrew_package/recipes/install.rb +0 -13
  280. data/examples/homebrew_package/recipes/purge.rb +0 -13
  281. data/examples/homebrew_package/recipes/remove.rb +0 -13
  282. data/examples/homebrew_package/recipes/upgrade.rb +0 -13
  283. data/examples/homebrew_package/spec/install_spec.rb +0 -23
  284. data/examples/homebrew_package/spec/purge_spec.rb +0 -19
  285. data/examples/homebrew_package/spec/remove_spec.rb +0 -19
  286. data/examples/homebrew_package/spec/upgrade_spec.rb +0 -19
  287. data/examples/http_request/recipes/delete.rb +0 -13
  288. data/examples/http_request/recipes/get.rb +0 -13
  289. data/examples/http_request/recipes/head.rb +0 -13
  290. data/examples/http_request/recipes/options.rb +0 -13
  291. data/examples/http_request/recipes/post.rb +0 -13
  292. data/examples/http_request/recipes/put.rb +0 -13
  293. data/examples/http_request/spec/delete_spec.rb +0 -19
  294. data/examples/http_request/spec/get_spec.rb +0 -23
  295. data/examples/http_request/spec/head_spec.rb +0 -19
  296. data/examples/http_request/spec/options_spec.rb +0 -19
  297. data/examples/http_request/spec/post_spec.rb +0 -19
  298. data/examples/http_request/spec/put_spec.rb +0 -19
  299. data/examples/ifconfig/recipes/add.rb +0 -9
  300. data/examples/ifconfig/recipes/delete.rb +0 -8
  301. data/examples/ifconfig/recipes/disable.rb +0 -8
  302. data/examples/ifconfig/recipes/enable.rb +0 -8
  303. data/examples/ifconfig/spec/add_spec.rb +0 -19
  304. data/examples/ifconfig/spec/delete_spec.rb +0 -15
  305. data/examples/ifconfig/spec/disable_spec.rb +0 -15
  306. data/examples/ifconfig/spec/enable_spec.rb +0 -15
  307. data/examples/include_recipe/recipes/default.rb +0 -1
  308. data/examples/include_recipe/recipes/not.rb +0 -0
  309. data/examples/include_recipe/recipes/other.rb +0 -0
  310. data/examples/include_recipe/spec/default_spec.rb +0 -13
  311. data/examples/ips_package/recipes/install.rb +0 -13
  312. data/examples/ips_package/recipes/remove.rb +0 -13
  313. data/examples/ips_package/recipes/upgrade.rb +0 -13
  314. data/examples/ips_package/spec/install_spec.rb +0 -26
  315. data/examples/ips_package/spec/remove_spec.rb +0 -22
  316. data/examples/ips_package/spec/upgrade_spec.rb +0 -22
  317. data/examples/launchd/recipes/create.rb +0 -5
  318. data/examples/launchd/recipes/create_if_missing.rb +0 -3
  319. data/examples/launchd/recipes/delete.rb +0 -3
  320. data/examples/launchd/recipes/disable.rb +0 -3
  321. data/examples/launchd/recipes/enable.rb +0 -3
  322. data/examples/launchd/spec/create_if_missing_spec.rb +0 -10
  323. data/examples/launchd/spec/create_spec.rb +0 -14
  324. data/examples/launchd/spec/delete_spec.rb +0 -10
  325. data/examples/launchd/spec/disable_spec.rb +0 -10
  326. data/examples/launchd/spec/enable_spec.rb +0 -10
  327. data/examples/link/recipes/create.rb +0 -13
  328. data/examples/link/recipes/delete.rb +0 -13
  329. data/examples/link/recipes/link_to.rb +0 -3
  330. data/examples/link/spec/create_spec.rb +0 -23
  331. data/examples/link/spec/delete_spec.rb +0 -19
  332. data/examples/link/spec/link_to_spec.rb +0 -11
  333. data/examples/log/recipes/write.rb +0 -14
  334. data/examples/log/spec/write_spec.rb +0 -24
  335. data/examples/macports_package/recipes/install.rb +0 -13
  336. data/examples/macports_package/recipes/purge.rb +0 -13
  337. data/examples/macports_package/recipes/remove.rb +0 -13
  338. data/examples/macports_package/recipes/upgrade.rb +0 -13
  339. data/examples/macports_package/spec/install_spec.rb +0 -23
  340. data/examples/macports_package/spec/purge_spec.rb +0 -19
  341. data/examples/macports_package/spec/remove_spec.rb +0 -19
  342. data/examples/macports_package/spec/upgrade_spec.rb +0 -19
  343. data/examples/mdadm/recipes/assemble.rb +0 -13
  344. data/examples/mdadm/recipes/create.rb +0 -13
  345. data/examples/mdadm/recipes/stop.rb +0 -13
  346. data/examples/mdadm/spec/assemble_spec.rb +0 -19
  347. data/examples/mdadm/spec/create_spec.rb +0 -23
  348. data/examples/mdadm/spec/stop_spec.rb +0 -19
  349. data/examples/mount/recipes/disable.rb +0 -8
  350. data/examples/mount/recipes/enable.rb +0 -8
  351. data/examples/mount/recipes/mount.rb +0 -9
  352. data/examples/mount/recipes/remount.rb +0 -8
  353. data/examples/mount/recipes/umount.rb +0 -8
  354. data/examples/mount/spec/disable_spec.rb +0 -15
  355. data/examples/mount/spec/enable_spec.rb +0 -15
  356. data/examples/mount/spec/mount_spec.rb +0 -19
  357. data/examples/mount/spec/remount_spec.rb +0 -15
  358. data/examples/mount/spec/umount_spec.rb +0 -15
  359. data/examples/msu_package/recipes/install.rb +0 -13
  360. data/examples/msu_package/recipes/remove.rb +0 -13
  361. data/examples/msu_package/spec/install_spec.rb +0 -26
  362. data/examples/msu_package/spec/remove_spec.rb +0 -22
  363. data/examples/multiple_actions/recipes/default.rb +0 -3
  364. data/examples/multiple_actions/recipes/reversed.rb +0 -9
  365. data/examples/multiple_actions/recipes/sequential.rb +0 -9
  366. data/examples/multiple_actions/spec/default_spec.rb +0 -14
  367. data/examples/multiple_actions/spec/reversed_spec.rb +0 -17
  368. data/examples/multiple_actions/spec/sequential_spec.rb +0 -17
  369. data/examples/multiple_run_action/recipes/default.rb +0 -5
  370. data/examples/multiple_run_action/spec/default_spec.rb +0 -18
  371. data/examples/notifications/recipes/before.rb +0 -7
  372. data/examples/notifications/recipes/chained.rb +0 -12
  373. data/examples/notifications/recipes/default.rb +0 -7
  374. data/examples/notifications/recipes/delayed.rb +0 -7
  375. data/examples/notifications/recipes/immediately.rb +0 -7
  376. data/examples/notifications/spec/before_spec.rb +0 -16
  377. data/examples/notifications/spec/chained_spec.rb +0 -21
  378. data/examples/notifications/spec/default_spec.rb +0 -16
  379. data/examples/notifications/spec/delayed_spec.rb +0 -16
  380. data/examples/notifications/spec/immediately_spec.rb +0 -16
  381. data/examples/ohai/recipes/reload.rb +0 -13
  382. data/examples/ohai/spec/reload_spec.rb +0 -23
  383. data/examples/openbsd_package/recipes/install.rb +0 -13
  384. data/examples/openbsd_package/recipes/purge.rb +0 -13
  385. data/examples/openbsd_package/recipes/remove.rb +0 -13
  386. data/examples/openbsd_package/recipes/upgrade.rb +0 -13
  387. data/examples/openbsd_package/spec/install_spec.rb +0 -23
  388. data/examples/openbsd_package/spec/purge_spec.rb +0 -19
  389. data/examples/openbsd_package/spec/remove_spec.rb +0 -19
  390. data/examples/openbsd_package/spec/upgrade_spec.rb +0 -19
  391. data/examples/osx_profile/recipes/install.rb +0 -8
  392. data/examples/osx_profile/recipes/remove.rb +0 -8
  393. data/examples/osx_profile/spec/install_spec.rb +0 -15
  394. data/examples/osx_profile/spec/remove_spec.rb +0 -13
  395. data/examples/package/recipes/install.rb +0 -17
  396. data/examples/package/recipes/purge.rb +0 -17
  397. data/examples/package/recipes/reconfig.rb +0 -17
  398. data/examples/package/recipes/remove.rb +0 -17
  399. data/examples/package/recipes/upgrade.rb +0 -17
  400. data/examples/package/spec/install_spec.rb +0 -27
  401. data/examples/package/spec/purge_spec.rb +0 -23
  402. data/examples/package/spec/reconfig_spec.rb +0 -23
  403. data/examples/package/spec/remove_spec.rb +0 -23
  404. data/examples/package/spec/upgrade_spec.rb +0 -23
  405. data/examples/pacman_package/recipes/install.rb +0 -13
  406. data/examples/pacman_package/recipes/purge.rb +0 -13
  407. data/examples/pacman_package/recipes/remove.rb +0 -13
  408. data/examples/pacman_package/recipes/upgrade.rb +0 -13
  409. data/examples/pacman_package/spec/install_spec.rb +0 -26
  410. data/examples/pacman_package/spec/purge_spec.rb +0 -22
  411. data/examples/pacman_package/spec/remove_spec.rb +0 -22
  412. data/examples/pacman_package/spec/upgrade_spec.rb +0 -22
  413. data/examples/paludis_package/recipes/install.rb +0 -13
  414. data/examples/paludis_package/recipes/purge.rb +0 -13
  415. data/examples/paludis_package/recipes/remove.rb +0 -13
  416. data/examples/paludis_package/recipes/upgrade.rb +0 -13
  417. data/examples/paludis_package/spec/install_spec.rb +0 -23
  418. data/examples/paludis_package/spec/purge_spec.rb +0 -19
  419. data/examples/paludis_package/spec/remove_spec.rb +0 -19
  420. data/examples/paludis_package/spec/upgrade_spec.rb +0 -19
  421. data/examples/portage_package/recipes/install.rb +0 -13
  422. data/examples/portage_package/recipes/purge.rb +0 -13
  423. data/examples/portage_package/recipes/remove.rb +0 -13
  424. data/examples/portage_package/recipes/upgrade.rb +0 -13
  425. data/examples/portage_package/spec/install_spec.rb +0 -26
  426. data/examples/portage_package/spec/purge_spec.rb +0 -22
  427. data/examples/portage_package/spec/remove_spec.rb +0 -22
  428. data/examples/portage_package/spec/upgrade_spec.rb +0 -22
  429. data/examples/powershell_script/recipes/run.rb +0 -9
  430. data/examples/powershell_script/spec/run_spec.rb +0 -22
  431. data/examples/reboot/recipes/cancel.rb +0 -3
  432. data/examples/reboot/recipes/now.rb +0 -3
  433. data/examples/reboot/recipes/request.rb +0 -3
  434. data/examples/reboot/spec/cancel_spec.rb +0 -9
  435. data/examples/reboot/spec/now_spec.rb +0 -9
  436. data/examples/reboot/spec/request_spec.rb +0 -9
  437. data/examples/registry_key/recipes/create.rb +0 -13
  438. data/examples/registry_key/recipes/create_if_missing.rb +0 -13
  439. data/examples/registry_key/recipes/delete.rb +0 -13
  440. data/examples/registry_key/recipes/delete_key.rb +0 -13
  441. data/examples/registry_key/spec/create_if_missing_spec.rb +0 -22
  442. data/examples/registry_key/spec/create_spec.rb +0 -26
  443. data/examples/registry_key/spec/delete_key_spec.rb +0 -22
  444. data/examples/registry_key/spec/delete_spec.rb +0 -22
  445. data/examples/remote_directory/recipes/create.rb +0 -13
  446. data/examples/remote_directory/recipes/create_if_missing.rb +0 -13
  447. data/examples/remote_directory/recipes/delete.rb +0 -13
  448. data/examples/remote_directory/spec/create_if_missing_spec.rb +0 -19
  449. data/examples/remote_directory/spec/create_spec.rb +0 -23
  450. data/examples/remote_directory/spec/delete_spec.rb +0 -19
  451. data/examples/remote_file/recipes/create.rb +0 -18
  452. data/examples/remote_file/recipes/create_if_missing.rb +0 -16
  453. data/examples/remote_file/recipes/delete.rb +0 -16
  454. data/examples/remote_file/recipes/touch.rb +0 -16
  455. data/examples/remote_file/spec/create_if_missing_spec.rb +0 -19
  456. data/examples/remote_file/spec/create_spec.rb +0 -23
  457. data/examples/remote_file/spec/delete_spec.rb +0 -19
  458. data/examples/remote_file/spec/touch_spec.rb +0 -19
  459. data/examples/render_file/files/default/cookbook_file +0 -1
  460. data/examples/render_file/recipes/default.rb +0 -15
  461. data/examples/render_file/recipes/template_helpers.rb +0 -9
  462. data/examples/render_file/spec/default_spec.rb +0 -155
  463. data/examples/render_file/spec/template_helpers_spec.rb +0 -10
  464. data/examples/render_file/templates/default/_partial.erb +0 -1
  465. data/examples/render_file/templates/default/partial.erb +0 -1
  466. data/examples/render_file/templates/default/template.erb +0 -1
  467. data/examples/render_file/templates/default/template_with_helper.erb +0 -1
  468. data/examples/roles/recipes/another.rb +0 -3
  469. data/examples/roles/recipes/default.rb +0 -1
  470. data/examples/roles/roles/role.rb +0 -9
  471. data/examples/roles/spec/default_spec.rb +0 -21
  472. data/examples/route/recipes/add.rb +0 -13
  473. data/examples/route/recipes/delete.rb +0 -13
  474. data/examples/route/spec/add_spec.rb +0 -23
  475. data/examples/route/spec/delete_spec.rb +0 -19
  476. data/examples/rpm_package/recipes/install.rb +0 -13
  477. data/examples/rpm_package/recipes/remove.rb +0 -13
  478. data/examples/rpm_package/recipes/upgrade.rb +0 -13
  479. data/examples/rpm_package/spec/install_spec.rb +0 -26
  480. data/examples/rpm_package/spec/remove_spec.rb +0 -22
  481. data/examples/rpm_package/spec/upgrade_spec.rb +0 -22
  482. data/examples/ruby_block/recipes/create.rb +0 -8
  483. data/examples/ruby_block/recipes/run.rb +0 -9
  484. data/examples/ruby_block/spec/create_spec.rb +0 -13
  485. data/examples/ruby_block/spec/run_spec.rb +0 -18
  486. data/examples/script/recipes/run_bash.rb +0 -9
  487. data/examples/script/recipes/run_csh.rb +0 -9
  488. data/examples/script/recipes/run_ksh.rb +0 -9
  489. data/examples/script/recipes/run_perl.rb +0 -9
  490. data/examples/script/recipes/run_python.rb +0 -9
  491. data/examples/script/recipes/run_ruby.rb +0 -9
  492. data/examples/script/recipes/run_script.rb +0 -9
  493. data/examples/script/spec/run_bash_spec.rb +0 -19
  494. data/examples/script/spec/run_csh_spec.rb +0 -19
  495. data/examples/script/spec/run_ksh_spec.rb +0 -19
  496. data/examples/script/spec/run_perl_spec.rb +0 -19
  497. data/examples/script/spec/run_python_spec.rb +0 -19
  498. data/examples/script/spec/run_ruby_spec.rb +0 -19
  499. data/examples/script/spec/run_script_spec.rb +0 -19
  500. data/examples/server/recipes/client.rb +0 -6
  501. data/examples/server/recipes/data_bag.rb +0 -7
  502. data/examples/server/recipes/environment.rb +0 -6
  503. data/examples/server/recipes/node.rb +0 -6
  504. data/examples/server/recipes/render_with_cached.rb +0 -3
  505. data/examples/server/recipes/role.rb +0 -6
  506. data/examples/server/recipes/search.rb +0 -5
  507. data/examples/server/spec/client_spec.rb +0 -18
  508. data/examples/server/spec/data_bag_spec.rb +0 -25
  509. data/examples/server/spec/environment_spec.rb +0 -18
  510. data/examples/server/spec/exotic_port_spec.rb +0 -17
  511. data/examples/server/spec/node_spec.rb +0 -49
  512. data/examples/server/spec/render_with_cached_spec.rb +0 -15
  513. data/examples/server/spec/role_spec.rb +0 -18
  514. data/examples/server/spec/search_spec.rb +0 -61
  515. data/examples/service/recipes/disable.rb +0 -13
  516. data/examples/service/recipes/enable.rb +0 -13
  517. data/examples/service/recipes/reload.rb +0 -13
  518. data/examples/service/recipes/restart.rb +0 -13
  519. data/examples/service/recipes/start.rb +0 -13
  520. data/examples/service/recipes/stop.rb +0 -13
  521. data/examples/service/spec/disable_spec.rb +0 -19
  522. data/examples/service/spec/enable_spec.rb +0 -19
  523. data/examples/service/spec/reload_spec.rb +0 -19
  524. data/examples/service/spec/restart_spec.rb +0 -19
  525. data/examples/service/spec/start_spec.rb +0 -19
  526. data/examples/service/spec/stop_spec.rb +0 -19
  527. data/examples/smartos_package/recipes/install.rb +0 -13
  528. data/examples/smartos_package/recipes/remove.rb +0 -13
  529. data/examples/smartos_package/recipes/upgrade.rb +0 -13
  530. data/examples/smartos_package/spec/install_spec.rb +0 -26
  531. data/examples/smartos_package/spec/remove_spec.rb +0 -22
  532. data/examples/smartos_package/spec/upgrade_spec.rb +0 -22
  533. data/examples/solaris_package/recipes/install.rb +0 -13
  534. data/examples/solaris_package/recipes/remove.rb +0 -13
  535. data/examples/solaris_package/recipes/upgrade.rb +0 -13
  536. data/examples/solaris_package/spec/install_spec.rb +0 -26
  537. data/examples/solaris_package/spec/remove_spec.rb +0 -22
  538. data/examples/solaris_package/spec/upgrade_spec.rb +0 -22
  539. data/examples/state_attrs/providers/lwrp.rb +0 -2
  540. data/examples/state_attrs/recipes/default.rb +0 -3
  541. data/examples/state_attrs/resources/lwrp.rb +0 -6
  542. data/examples/state_attrs/spec/default_spec.rb +0 -12
  543. data/examples/step_into/providers/lwrp.rb +0 -3
  544. data/examples/step_into/providers/provides.rb +0 -3
  545. data/examples/step_into/recipes/default.rb +0 -3
  546. data/examples/step_into/resources/lwrp.rb +0 -4
  547. data/examples/step_into/resources/provides.rb +0 -6
  548. data/examples/step_into/spec/default_spec.rb +0 -30
  549. data/examples/stub_command/recipes/default.rb +0 -5
  550. data/examples/stub_command/recipes/other_recipe.rb +0 -3
  551. data/examples/stub_command/spec/default_spec.rb +0 -28
  552. data/examples/stub_data_bag/recipes/default.rb +0 -5
  553. data/examples/stub_data_bag/spec/default_spec.rb +0 -27
  554. data/examples/stub_data_bag_item/recipes/default.rb +0 -5
  555. data/examples/stub_data_bag_item/spec/default_spec.rb +0 -27
  556. data/examples/stub_node/recipes/default.rb +0 -0
  557. data/examples/stub_node/spec/default_spec.rb +0 -17
  558. data/examples/stub_search/recipes/block.rb +0 -3
  559. data/examples/stub_search/recipes/default.rb +0 -2
  560. data/examples/stub_search/spec/block_spec.rb +0 -27
  561. data/examples/stub_search/spec/default_spec.rb +0 -27
  562. data/examples/subscribes/recipes/before.rb +0 -5
  563. data/examples/subscribes/recipes/chained.rb +0 -10
  564. data/examples/subscribes/recipes/default.rb +0 -5
  565. data/examples/subscribes/recipes/delayed.rb +0 -5
  566. data/examples/subscribes/recipes/immediately.rb +0 -5
  567. data/examples/subscribes/spec/before_spec.rb +0 -16
  568. data/examples/subscribes/spec/chained_spec.rb +0 -21
  569. data/examples/subscribes/spec/default_spec.rb +0 -16
  570. data/examples/subscribes/spec/delayed_spec.rb +0 -16
  571. data/examples/subscribes/spec/immediately_spec.rb +0 -16
  572. data/examples/subversion/recipes/checkout.rb +0 -13
  573. data/examples/subversion/recipes/export.rb +0 -13
  574. data/examples/subversion/recipes/force_export.rb +0 -13
  575. data/examples/subversion/recipes/sync.rb +0 -13
  576. data/examples/subversion/spec/checkout_spec.rb +0 -19
  577. data/examples/subversion/spec/export_spec.rb +0 -19
  578. data/examples/subversion/spec/force_export_spec.rb +0 -19
  579. data/examples/subversion/spec/sync_spec.rb +0 -23
  580. data/examples/systemd_unit/recipes/create.rb +0 -3
  581. data/examples/systemd_unit/recipes/delete.rb +0 -3
  582. data/examples/systemd_unit/recipes/disable.rb +0 -3
  583. data/examples/systemd_unit/recipes/enable.rb +0 -3
  584. data/examples/systemd_unit/recipes/mask.rb +0 -3
  585. data/examples/systemd_unit/recipes/reload_or_restart.rb +0 -3
  586. data/examples/systemd_unit/recipes/reload_or_try_restart.rb +0 -3
  587. data/examples/systemd_unit/recipes/restart.rb +0 -3
  588. data/examples/systemd_unit/recipes/start.rb +0 -3
  589. data/examples/systemd_unit/recipes/stop.rb +0 -3
  590. data/examples/systemd_unit/recipes/try_restart.rb +0 -3
  591. data/examples/systemd_unit/recipes/unmask.rb +0 -3
  592. data/examples/systemd_unit/spec/create_spec.rb +0 -10
  593. data/examples/systemd_unit/spec/delete_spec.rb +0 -10
  594. data/examples/systemd_unit/spec/disable_spec.rb +0 -10
  595. data/examples/systemd_unit/spec/enable_spec.rb +0 -10
  596. data/examples/systemd_unit/spec/mask_spec.rb +0 -10
  597. data/examples/systemd_unit/spec/reload_or_restart_spec.rb +0 -10
  598. data/examples/systemd_unit/spec/reload_or_try_restart_spec.rb +0 -10
  599. data/examples/systemd_unit/spec/restart_spec.rb +0 -10
  600. data/examples/systemd_unit/spec/start_spec.rb +0 -10
  601. data/examples/systemd_unit/spec/stop_spec.rb +0 -10
  602. data/examples/systemd_unit/spec/try_restart_spec.rb +0 -10
  603. data/examples/systemd_unit/spec/unmask_spec.rb +0 -10
  604. data/examples/template/recipes/create.rb +0 -15
  605. data/examples/template/recipes/create_if_missing.rb +0 -15
  606. data/examples/template/recipes/delete.rb +0 -15
  607. data/examples/template/recipes/touch.rb +0 -15
  608. data/examples/template/spec/create_if_missing_spec.rb +0 -28
  609. data/examples/template/spec/create_spec.rb +0 -32
  610. data/examples/template/spec/delete_spec.rb +0 -19
  611. data/examples/template/spec/touch_spec.rb +0 -19
  612. data/examples/use_inline_resources/libraries/matchers.rb +0 -5
  613. data/examples/use_inline_resources/providers/lwrp.rb +0 -7
  614. data/examples/use_inline_resources/recipes/default.rb +0 -1
  615. data/examples/use_inline_resources/resources/lwrp.rb +0 -4
  616. data/examples/use_inline_resources/spec/default_spec.rb +0 -18
  617. data/examples/user/recipes/create.rb +0 -13
  618. data/examples/user/recipes/lock.rb +0 -13
  619. data/examples/user/recipes/manage.rb +0 -13
  620. data/examples/user/recipes/modify.rb +0 -13
  621. data/examples/user/recipes/remove.rb +0 -13
  622. data/examples/user/recipes/unlock.rb +0 -13
  623. data/examples/user/spec/create_spec.rb +0 -26
  624. data/examples/user/spec/lock_spec.rb +0 -22
  625. data/examples/user/spec/manage_spec.rb +0 -22
  626. data/examples/user/spec/modify_spec.rb +0 -22
  627. data/examples/user/spec/remove_spec.rb +0 -22
  628. data/examples/user/spec/unlock_spec.rb +0 -22
  629. data/examples/windows_package/recipes/install.rb +0 -13
  630. data/examples/windows_package/recipes/remove.rb +0 -13
  631. data/examples/windows_package/spec/install_spec.rb +0 -22
  632. data/examples/windows_package/spec/remove_spec.rb +0 -22
  633. data/examples/windows_service/recipes/configure_startup.rb +0 -13
  634. data/examples/windows_service/recipes/disable.rb +0 -13
  635. data/examples/windows_service/recipes/enable.rb +0 -13
  636. data/examples/windows_service/recipes/reload.rb +0 -13
  637. data/examples/windows_service/recipes/restart.rb +0 -13
  638. data/examples/windows_service/recipes/start.rb +0 -13
  639. data/examples/windows_service/recipes/stop.rb +0 -13
  640. data/examples/windows_service/spec/configure_startup_spec.rb +0 -22
  641. data/examples/windows_service/spec/disable_spec.rb +0 -22
  642. data/examples/windows_service/spec/enable_spec.rb +0 -22
  643. data/examples/windows_service/spec/reload_spec.rb +0 -22
  644. data/examples/windows_service/spec/restart_spec.rb +0 -22
  645. data/examples/windows_service/spec/start_spec.rb +0 -22
  646. data/examples/windows_service/spec/stop_spec.rb +0 -22
  647. data/examples/yum_package/recipes/install.rb +0 -13
  648. data/examples/yum_package/recipes/purge.rb +0 -13
  649. data/examples/yum_package/recipes/remove.rb +0 -13
  650. data/examples/yum_package/recipes/upgrade.rb +0 -13
  651. data/examples/yum_package/spec/install_spec.rb +0 -26
  652. data/examples/yum_package/spec/purge_spec.rb +0 -22
  653. data/examples/yum_package/spec/remove_spec.rb +0 -22
  654. data/examples/yum_package/spec/upgrade_spec.rb +0 -22
  655. data/examples/yum_repository/recipes/add.rb +0 -8
  656. data/examples/yum_repository/recipes/create.rb +0 -8
  657. data/examples/yum_repository/recipes/delete.rb +0 -3
  658. data/examples/yum_repository/recipes/makecache.rb +0 -3
  659. data/examples/yum_repository/recipes/remove.rb +0 -7
  660. data/examples/yum_repository/spec/add_spec.rb +0 -12
  661. data/examples/yum_repository/spec/create_spec.rb +0 -17
  662. data/examples/yum_repository/spec/delete_spec.rb +0 -12
  663. data/examples/yum_repository/spec/makecache_spec.rb +0 -12
  664. data/examples/yum_repository/spec/remove_spec.rb +0 -12
  665. data/examples/zypper_package/recipes/install.rb +0 -13
  666. data/examples/zypper_package/recipes/purge.rb +0 -13
  667. data/examples/zypper_package/recipes/remove.rb +0 -13
  668. data/examples/zypper_package/recipes/upgrade.rb +0 -13
  669. data/examples/zypper_package/spec/install_spec.rb +0 -23
  670. data/examples/zypper_package/spec/purge_spec.rb +0 -19
  671. data/examples/zypper_package/spec/remove_spec.rb +0 -19
  672. data/examples/zypper_package/spec/upgrade_spec.rb +0 -19
  673. data/features/apt_package.feature +0 -14
  674. data/features/apt_repository.feature +0 -15
  675. data/features/apt_update.feature +0 -13
  676. data/features/attributes.feature +0 -7
  677. data/features/batch.feature +0 -10
  678. data/features/bff_package.feature +0 -12
  679. data/features/cab_package.feature +0 -21
  680. data/features/cached.feature +0 -7
  681. data/features/chef_gem.feature +0 -14
  682. data/features/chocolatey_package.feature +0 -14
  683. data/features/compile_time.feature +0 -7
  684. data/features/cookbook_file.feature +0 -13
  685. data/features/cron.feature +0 -11
  686. data/features/custom_matcher.feature +0 -11
  687. data/features/custom_resource.feature +0 -7
  688. data/features/deploy.feature +0 -12
  689. data/features/directory.feature +0 -11
  690. data/features/dnf_package.feature +0 -26
  691. data/features/do_nothing.feature +0 -10
  692. data/features/dpkg_package.feature +0 -12
  693. data/features/dsc_resource.feature +0 -10
  694. data/features/dsc_script.feature +0 -10
  695. data/features/env.feature +0 -12
  696. data/features/erl_call.feature +0 -10
  697. data/features/execute.feature +0 -10
  698. data/features/exotic_zero_port.feature +0 -7
  699. data/features/expect_exception.feature +0 -12
  700. data/features/file.feature +0 -13
  701. data/features/freebsd_package.feature +0 -11
  702. data/features/gem_package.feature +0 -14
  703. data/features/git.feature +0 -12
  704. data/features/group.feature +0 -13
  705. data/features/guards.feature +0 -10
  706. data/features/heavy_provider_light_resource.feature +0 -10
  707. data/features/homebrew_package.feature +0 -12
  708. data/features/http_request.feature +0 -15
  709. data/features/ifconfig.feature +0 -13
  710. data/features/include_recipe.feature +0 -10
  711. data/features/ips_package.feature +0 -12
  712. data/features/launchd.feature +0 -17
  713. data/features/link.feature +0 -12
  714. data/features/log.feature +0 -10
  715. data/features/macports_package.feature +0 -13
  716. data/features/mdadm.feature +0 -12
  717. data/features/mount.feature +0 -14
  718. data/features/msu_package.feature +0 -23
  719. data/features/multiple_actions.feature +0 -12
  720. data/features/multiple_run_action.feature +0 -7
  721. data/features/notifications.feature +0 -14
  722. data/features/ohai.feature +0 -10
  723. data/features/openbsd_package.feature +0 -12
  724. data/features/osx_profile.feature +0 -13
  725. data/features/package.feature +0 -14
  726. data/features/pacman_package.feature +0 -13
  727. data/features/paludis_package.feature +0 -12
  728. data/features/portage_package.feature +0 -13
  729. data/features/powershell_script.feature +0 -10
  730. data/features/reboot.feature +0 -12
  731. data/features/registry_key.feature +0 -13
  732. data/features/remote_directory.feature +0 -12
  733. data/features/remote_file.feature +0 -13
  734. data/features/render_file.feature +0 -11
  735. data/features/roles.feature +0 -7
  736. data/features/route.feature +0 -11
  737. data/features/rpm_package.feature +0 -12
  738. data/features/ruby_block.feature +0 -11
  739. data/features/script.feature +0 -16
  740. data/features/server.feature +0 -16
  741. data/features/server_on_disk.feature +0 -16
  742. data/features/service.feature +0 -15
  743. data/features/smartos_package.feature +0 -12
  744. data/features/solaris_package.feature +0 -12
  745. data/features/state_attrs.feature +0 -7
  746. data/features/step_definitions/background_steps.rb +0 -7
  747. data/features/step_into.feature +0 -7
  748. data/features/stub_command.feature +0 -7
  749. data/features/stub_data_bag.feature +0 -7
  750. data/features/stub_data_bag_item.feature +0 -7
  751. data/features/stub_node.feature +0 -7
  752. data/features/stub_search.feature +0 -7
  753. data/features/subscribes.feature +0 -14
  754. data/features/subversion.feature +0 -13
  755. data/features/support/env.rb +0 -38
  756. data/features/support/executor.rb +0 -20
  757. data/features/support/exotic_zero_port.rb +0 -3
  758. data/features/support/on_disk.rb +0 -7
  759. data/features/systemd_unit.feature +0 -27
  760. data/features/template.feature +0 -13
  761. data/features/use_inline_resources.feature +0 -7
  762. data/features/user.feature +0 -15
  763. data/features/windows_package.feature +0 -11
  764. data/features/windows_service.feature +0 -16
  765. data/features/yum_package.feature +0 -13
  766. data/features/yum_repository.feature +0 -23
  767. data/features/zypper_package.feature +0 -13
  768. data/lib/chefspec/api/apt_package.rb +0 -192
  769. data/lib/chefspec/api/apt_repository.rb +0 -56
  770. data/lib/chefspec/api/apt_update.rb +0 -53
  771. data/lib/chefspec/api/batch.rb +0 -43
  772. data/lib/chefspec/api/bff_package.rb +0 -154
  773. data/lib/chefspec/api/cab_package.rb +0 -80
  774. data/lib/chefspec/api/chef_gem.rb +0 -191
  775. data/lib/chefspec/api/chocolatey_package.rb +0 -107
  776. data/lib/chefspec/api/cookbook_file.rb +0 -166
  777. data/lib/chefspec/api/cron.rb +0 -80
  778. data/lib/chefspec/api/deploy.rb +0 -117
  779. data/lib/chefspec/api/directory.rb +0 -80
  780. data/lib/chefspec/api/dnf_package.rb +0 -154
  781. data/lib/chefspec/api/dpkg_package.rb +0 -117
  782. data/lib/chefspec/api/dsc_resource.rb +0 -49
  783. data/lib/chefspec/api/dsc_script.rb +0 -37
  784. data/lib/chefspec/api/easy_install_package.rb +0 -154
  785. data/lib/chefspec/api/env.rb +0 -117
  786. data/lib/chefspec/api/erl_call.rb +0 -43
  787. data/lib/chefspec/api/execute.rb +0 -43
  788. data/lib/chefspec/api/file.rb +0 -166
  789. data/lib/chefspec/api/freebsd_package.rb +0 -80
  790. data/lib/chefspec/api/gem_package.rb +0 -191
  791. data/lib/chefspec/api/git.rb +0 -117
  792. data/lib/chefspec/api/group.rb +0 -154
  793. data/lib/chefspec/api/homebrew_package.rb +0 -154
  794. data/lib/chefspec/api/http_request.rb +0 -228
  795. data/lib/chefspec/api/ifconfig.rb +0 -154
  796. data/lib/chefspec/api/ips_package.rb +0 -117
  797. data/lib/chefspec/api/launchd.rb +0 -151
  798. data/lib/chefspec/api/log.rb +0 -43
  799. data/lib/chefspec/api/macports_package.rb +0 -154
  800. data/lib/chefspec/api/mdadm.rb +0 -117
  801. data/lib/chefspec/api/mount.rb +0 -192
  802. data/lib/chefspec/api/msu_package.rb +0 -81
  803. data/lib/chefspec/api/ohai.rb +0 -43
  804. data/lib/chefspec/api/openbsd_package.rb +0 -155
  805. data/lib/chefspec/api/osx_profile.rb +0 -63
  806. data/lib/chefspec/api/package.rb +0 -192
  807. data/lib/chefspec/api/pacman_package.rb +0 -155
  808. data/lib/chefspec/api/paludis_package.rb +0 -155
  809. data/lib/chefspec/api/portage_package.rb +0 -155
  810. data/lib/chefspec/api/powershell_script.rb +0 -43
  811. data/lib/chefspec/api/registry_key.rb +0 -166
  812. data/lib/chefspec/api/remote_directory.rb +0 -120
  813. data/lib/chefspec/api/remote_file.rb +0 -166
  814. data/lib/chefspec/api/route.rb +0 -80
  815. data/lib/chefspec/api/rpm_package.rb +0 -117
  816. data/lib/chefspec/api/ruby_block.rb +0 -68
  817. data/lib/chefspec/api/script.rb +0 -278
  818. data/lib/chefspec/api/service.rb +0 -246
  819. data/lib/chefspec/api/smartos_package.rb +0 -117
  820. data/lib/chefspec/api/solaris_package.rb +0 -117
  821. data/lib/chefspec/api/subversion.rb +0 -154
  822. data/lib/chefspec/api/systemd_unit.rb +0 -353
  823. data/lib/chefspec/api/template.rb +0 -166
  824. data/lib/chefspec/api/windows_package.rb +0 -86
  825. data/lib/chefspec/api/windows_service.rb +0 -286
  826. data/lib/chefspec/api/yum_package.rb +0 -154
  827. data/lib/chefspec/api/yum_repository.rb +0 -130
  828. data/lib/chefspec/api/zypper_package.rb +0 -154
  829. data/lib/chefspec/macros.rb +0 -222
  830. data/spec/unit/api_spec.rb +0 -18
data/CHANGELOG.md DELETED
@@ -1,777 +0,0 @@
1
- # CHANGELOG for ChefSpec
2
-
3
- ## 7.0.0 (April, 18, 2017)
4
-
5
- - Increased the chef gem dependency from 12.6+ to 12.14+. Since ChefSpec is consumed within ChefDK this actually has a minor impact on end users who generally consume Chefspec via ChefDK, which will bundle both compatible chef and chefspec releases.
6
- - Fixed incompatibilities with Chef 13.
7
- - Loosened the Fauxhai dependency to allow for the upcoming Fauxhai 5.0 release.
8
- - Removed easy_install_package testing and examples as easy_install_package was removed in Chef 13\. The actual matcher is still present for users with existing specs against Chef 12 cookbooks.
9
- - Added additional testing and an example for LWRPs with use_inline_resources defined.
10
- - Added testing against Chef 13 and Ruby 2.4.
11
- - Removed code that supported Chef < 12.5.
12
-
13
- ## 6.2.0 (March 27, 2017)
14
-
15
- - Correctly handle the block form of search() when using stubs
16
- - Add support for alternative reporting output from Coverage.report!
17
-
18
- ## 6.1.0 (March 9, 2017)
19
-
20
- - Loosen the Fauxhai dependency to allow Fauxhai 4.0 This deprecates a large number of Ohai mocks for end of life platforms. See <https://github.com/customink/fauxhai/blob/master/PLATFORMS.md> for the current list of platforms supported by Fauxhai
21
- - SoloRunner defaults to use_policyfile == false now
22
-
23
- ## 6.0.1 (February 24, 2017)
24
-
25
- - Add the ability to set the Chef Zero port range used by the ServerRunner
26
-
27
- ## 6.0.0 (February 22, 2017)
28
-
29
- BREAKING CHANGES
30
-
31
- ChefSpec now requires Ruby 2.2 or later.
32
-
33
- IMPROVEMENTS
34
-
35
- - Improve ServerRunner speed and reduce process hangs by using a single stand-alone chef-zero server.
36
- - Add configuration value to dictate whether cookbooks are re-uploaded before every test context.
37
- - Added matchers for dnf_package, msu_package, and cab_package
38
-
39
- ## 5.4.0 (February 9, 2017)
40
-
41
- IMPROVEMENTS
42
-
43
- - Support for in-memory or on-disk ChefZero Servers. See README for usage details.
44
-
45
- UPDATES
46
-
47
- - While Chef 12.0 - 12.5 are still supported, they are no longer being tested.
48
-
49
- ## 5.3.0 (October 29, 2016)
50
-
51
- IMPROVEMENTS
52
-
53
- - Added all missing matchers for built-in chef-client resources
54
-
55
- - osx_profile
56
- - zypper_package
57
- - systemd_unit
58
- - openbsd_package
59
- - launchd
60
- - homebrew_package
61
- - bff_package
62
-
63
- BUG FIXES
64
-
65
- - Fixed readme examples to properly specify the platform / platform version and to use a cache dir that will work on Windows
66
-
67
- ## 5.2.0 (September 21, 2016)
68
-
69
- IMPROVEMENTS
70
-
71
- - Added platform and versions to all examples to avoid deprecation warnings from Fauxhai
72
- - Allow modifications to node object before converge
73
-
74
- BUG FIXES
75
-
76
- - Fix makecache matcher for yum_repository
77
-
78
- ## 5.1.1 (September 14, 2016)
79
-
80
- BUG FIXES
81
-
82
- - Add missing matchers for yum_repository
83
-
84
- ## 5.1.0 (September 14, 2016)
85
-
86
- IMPROVEMENTS
87
-
88
- - Add dsc_script matcher
89
- - Add yum_repository matcher
90
- - Resolve cookstyle warnings in example recipes and specs
91
- - Mock out platforms in the example specs so they're easier to adopt
92
- - Switch all example specs to SoloRunner as this is the preferred runner for Chef Server / Chef Zero users
93
-
94
- BUG FIXES
95
-
96
- - Fixes apt_update and apt_repository matchers to work
97
-
98
- ## 5.0.0 (August 24, 2016)
99
-
100
- IMPROVEMENTS
101
-
102
- - Require a minimum of Chef 12.0
103
- - Add custom templating to Coverage Reporting. See readme for details
104
- - Add matcher for apt_repository resource
105
- - Add matcher for apt_update resource
106
- - Add support for the :before notification
107
- - Allow stubbing encrypted databags loaded with data_bag_item
108
- - Add testing against Chef 12.8 - 12.3
109
-
110
- BUG FIXES
111
-
112
- - Update docs/examples to use node.normal instead of node.set, which has been deprecated
113
- - Update user spec examples to specify the platform
114
- - Update docs to clarify the Ruby 2.1 requirement
115
-
116
- ## 4.7.0 (May 13, 2016)
117
-
118
- IMPROVEMENTS
119
-
120
- - Support Chef Solo actually being local mode (per Chef RFC 31)
121
-
122
- ## 4.6.1 (March 29, 2016)
123
-
124
- BUG FIXES
125
-
126
- - Use the same Chef :file_cache_path in every ChefSpec converge to prevent large numbers of LWRP deprecation warnings
127
- - Require Fauxhai ~3.2 to prevent ChefSpec spec failures
128
- - Require Rake < 11.0 to prevent failures
129
-
130
- ## 4.6.0 (March 7, 2016)
131
-
132
- IMPROVEMENTS
133
-
134
- - Add support for adding `berkshelf_options` to the RSpec config
135
- - Add `chocolately_package` matchers
136
- - Support `do..end` style syntax in block expectations
137
- - Output a diff when multi-line resource parameters are unmatched
138
-
139
- BUG FIXES
140
-
141
- - Update tests to include better descriptions and feature names
142
- - Add support for Policyfile workflow
143
-
144
- ## 4.5.0 (December 4, 2015)
145
-
146
- IMPROVEMENTS
147
-
148
- - Update Fauxhai dependency to 3.0 to bring in newly generated mocked Ohai data
149
-
150
- ## 4.4.0 (September 18, 2015)
151
-
152
- BUG FIXES
153
-
154
- - Documentation improvements (using regex in stubbed commands, chef 12+ custom matcher gotchas)
155
- - Spec suite improvements (dsc resource specs, platform specific configurations)
156
- - Chef 12+ platform specific resource loading related error
157
-
158
- IMPROVEMENTS
159
-
160
- - Support for policy files
161
-
162
- ## 4.3.0 (July 16, 2015)
163
-
164
- BUG FIXES:
165
-
166
- - Improved documentation
167
- - Use TemplateContext's `_extend_modules` for passing on template helper modules to nested partial templates
168
- - Only exit if the status is a failure [GH-565]
169
- - Fix load order on Windows when using the `rights` attributes
170
- - Improve testing matrix and remove deprecated Chef versions
171
- - Suppress chef_gem compile_time warnings
172
- - Fix exceptions on converge for Chef 12.1.0 masking
173
- - Update Librarian `Cheffile` site URL to supermarket.chef.io
174
- - Filter Windows and Unix paths for test coverage report with Berkshelf
175
-
176
- IMPROVEMENTS:
177
-
178
- - Added possibility to specify file_cache_path globally
179
- - Added new capabilities for reboot resource
180
- - Use `Chef::Resource#declared_type` first if available (Chef >= 12), otherwise fall back to `Chef::Resource#resource_name` (Chef <= 11)
181
- - Extend render_file to yield the content as a block
182
- - Add windows_service resource
183
-
184
- ## 4.2.0 (December 25, 2014)
185
-
186
- BUG FIXES:
187
-
188
- - Updated README grep examples
189
- - Fix various typographical errors
190
- - Improved error message when using a deprecated resource matcher
191
-
192
- IMPROVEMENTS:
193
-
194
- - Add support for Chef 12
195
- - Added support for environments in Chef Solo
196
- - Fix location definition for caching
197
- - Allow passing `Chef::Config[:file_cache_path]` from outside
198
- - Update support for Chef 12
199
-
200
- ## 4.1.1 (October 13, 2014)
201
-
202
- BUG FIXES:
203
-
204
- - Fix total fail on my part with deprecations and add test coverage
205
- - Do not validate cookbooks on upload (speed)
206
-
207
- ## 4.1.0 (October 12, 2014)
208
-
209
- BUG FIXES:
210
-
211
- - Bump the minimum required version of Chef to 11.14
212
- - Filter resources that have no source line in the coverage report - this is related to a bug in Chef where, when cloning a resource, both the clone and the original resource lose their metadata
213
-
214
- IMPROVEMENTS:
215
-
216
- - Allow multiple instances of a Chef Server instance
217
- - Separate ChefSpec::Runner into `ChefSpec::SoloRunner` and `ChefSpec::ServerRunner`
218
- - Preliminary support for Chef 12 alpha (not 100% complete)
219
- - Add `SoloRunner` and `ServerRunner` `.converge` methods for quickly converging if you do not need to customize the runner object
220
- - Create isolated Chef Server instances on a per-test or per-suite basis
221
- - Deprecate `ChefSpec::Runner.define_runner_method` in favor of `ChefSpec.define_matcher`
222
- - Deprecate `ChefSpec::Runner.new` - you should specify if you want a `SoloRunner` or `ServerRunner`
223
- - Updated documentation
224
-
225
- BREAKING CHANGES:
226
-
227
- - Due to the new `ServerRunner`, the `ChefSpec::Server` singleton object has been deprecated. As much as I would like to provide a backwards-compatible interface, there is no way to do so (as the code now supports multiple Chef Server instances). Sorry :(.
228
- - Remove old deprecations - this is not really a breaking change, but the v2.0.0 deprecations have been removed in favor of new ones
229
-
230
- ## 4.0.2 (August 13, 2014)
231
-
232
- BUG FIXES:
233
-
234
- - Fix a regression caused by a new version of Chef Zero in single_org mode
235
-
236
- IMPROVEMENTS:
237
-
238
- - Test against Chef 11.14.0 in the Travis matrix
239
-
240
- ## 4.0.1 (June 27, 2014)
241
-
242
- BUG FIXES:
243
-
244
- - Fix class comparisons
245
- - Update ChefZero API to work again
246
- - Use proper cookbook in the template_finder
247
- - Fix Ruby deprecations
248
- - Various documentation updates
249
-
250
- ## 4.0.0 (June 2, 2014)
251
-
252
- BREAKING CHANGES:
253
-
254
- - **Upgraded to RSpec 3!** RSpec 3 brings many new API changes and syntaxes
255
- - **Bump minimum required Chef version to 11.12!** Without this change, Chef Zero will blow up
256
-
257
- BUG FIXES:
258
-
259
- - Gracefully fail if a resource does not report it's source line in the reporter
260
- - Pull the correct cookbook folder from the stack on Windows (88bfc6)
261
- - Cover resources in render_file matchers for reporting
262
- - Cover resources in link_to matchers for reporting
263
- - Cover resources in do_nothing matchers for reporting
264
- - Fix memory leak in LWRP Resource classes
265
- - Restore the original `cookbook_path` when using librarian-chef
266
- - Documentation fixes
267
- - Disable lazy loading of cached resources
268
- - Fix a bug that will happen in later Chef versions because FreeBSD is evil (13ff143)
269
- - Do not pass local file paths to `preferred_filename_on_disk_location`
270
-
271
- FEATURES:
272
-
273
- - Add runner methods for all the bash, csh, perl, etc resources
274
- - Upgraded fauxhai dependency and specs
275
- - Upgrade Chef Zero for multi-org support
276
-
277
- IMPROVEMENTS:
278
-
279
- - Improved documentation around the `define_runner_method` method
280
- - Update badges to be all SVG
281
- - Test on Ruby 2.1
282
- - Use a randomly assigned port for Chef Zero
283
- - Remove references to `.stub` from documentation
284
-
285
- ## 3.4.0 (March 16, 2014)
286
-
287
- BUG FIXES:
288
-
289
- - Restore Berkshelf 2 support (missing edge case)
290
- - Add negative failure message for subscribes/notifies matchers
291
-
292
- FEATURES:
293
-
294
- - Added `do_nothing` matcher for asserting a resource performed no actions
295
-
296
- IMPROVEMENTS:
297
-
298
- - Increased spec coverage for matchers
299
- - Support RSpec matchers in `with_content`
300
-
301
- ## 3.3.1 (March 11, 2014)
302
-
303
- BUG FIXES:
304
-
305
- - Various typographical fixes in the README
306
- - Remove unused JSON report
307
- - Restore coverage reporting for Berkshelf 2 users
308
- - Minor formatting changes for errors
309
-
310
- IMPROVEMENTS:
311
-
312
- - Remove dependency on i18n and use native ERB instead
313
- - Vendor Berkshelf/Librarian in a "cookbooks" directory so we can shorten the pathname during coverage reporting
314
-
315
- ## 3.3.0 (March 9, 2014)
316
-
317
- BUG FIXES:
318
-
319
- - Update documentation for setting `automatic` attributes
320
- - Update documentation for stubbing data_bags
321
- - Use a non-internal RSpec variable name for expecting exceptions
322
- - Fix the airity of the `stub_node` method
323
-
324
- IMPROVEMENTS:
325
-
326
- - Better filtering protocols for resource coverage
327
-
328
- ## 3.2.0 (January 31, 2014)
329
-
330
- BUG FIXES:
331
-
332
- - Fix coverage calculation when there are no resources in the collection
333
- - Fix misplaced quote in matcher output
334
- - Include all files in generated gem
335
- - Ensure compatibility with Chef HEAD
336
-
337
- IMPROVEMENTS:
338
-
339
- - Test Ruby 2.1 on Travis
340
- - Miscellaneous README typos
341
- - Add `subscribe_to` matchers
342
- - Add documentation for the `with` matcher
343
- - Add support for passing a `node` object directly to the server `create_node` method
344
-
345
- ## 3.1.4 (January 3, 2014)
346
-
347
- BUG FIXES:
348
-
349
- - Correctly expand the node's run_list in server mode
350
- - Actually package i18n translations with the cookbook
351
-
352
- IMPROVEMENTS:
353
-
354
- - Document setting a node's role
355
- - Add examples and features for `stub_node`
356
-
357
- ## 3.1.3 (January 2, 2014)
358
-
359
- BUG FIXES:
360
-
361
- - Fix broken deprecations module
362
- - Update a broken test ([@bknowles])
363
-
364
- IMPROVEMENTS:
365
-
366
- - Better gem description on GitHub and Rubygems
367
- - Helper support for template rendering (Chef 11.4+) ([@geraud])
368
-
369
- ## 3.1.2 (December 30, 2013)
370
-
371
- BUG FIXES:
372
-
373
- - Require i18n 0.6.9 or higher (but less than 1.0.0) ([#289](https://github.com/sethvargo/chefspec/issues/245))
374
-
375
- ## 3.1.1 (December 29, 2013)
376
-
377
- BUG FIXES:
378
-
379
- - Handle duplicate resources in the coverage reporter
380
-
381
- ## 3.1.0 (December 29, 2013)
382
-
383
- BUG FIXES:
384
-
385
- - Only remove existing LWRP resources and providers when a new one is encountered ([@student])
386
- - Attempt to coerce dashes to underscores in LWRPs
387
- - Various documentation fixes and typos
388
-
389
- IMPROVEMENTS:
390
-
391
- - Don't include `deprecations` module by default
392
- - Add examples for stubbing commands across recipes
393
- - Yield a block after cookbooks are compiled but before they are converged ([@rteabeault])
394
- - Add IRC Channel #chefspec
395
- - Raise a nice error when `cookbook_path` cannot be determined ([@ryotarai])
396
-
397
- FEATURES:
398
-
399
- - Add support for Librarian ([@mlafeldt])
400
- - Add Cacher module for caching runner results ([@sethvargo] & [@DracoAter])
401
- - Add Chef Zero (server) mode ([@sethvargo])
402
- - Add basic resource reporting (Chef recipe code coverage) ([@sethvargo])
403
- - Use i18n (internationalization) ([@sethvargo])
404
-
405
- ## 3.0.2 (November 6, 2013)
406
-
407
- BUG FIXES:
408
-
409
- - Update links to point at new repository location
410
- - Deleted relish docs to remove confusion
411
- - Bump fauxhai dependency to 2.0 (removing the HTTParty transitive dependency)
412
- - Convert resource names with dashes to underscores when stepping into them
413
-
414
- IMPROVEMENTS:
415
-
416
- - Added a "what people are saying" section to the README - if you have something cool to say about ChefSpec, let me know!
417
- - Add a link to [`knife-spec`](https://github.com/sethvargo/knife-spec)
418
- - Test against Chef 11.8
419
- - New matcher: `have_state_attrs` for testing custom LWRP state attributes
420
- - Run tests in a sandboxed parent instead of tmp (makes Travis happier)
421
-
422
- ## 3.0.1 (October 22, 2013)
423
-
424
- BUG FIXES:
425
-
426
- - Fix an issue where LWRPs were not properly stepped into when `use_inline_resources` was specified ([#244](https://github.com/sethvargo/chefspec/issues/244))
427
- - Coerce `render_file` `@expected_content` to a string before asserting if content is included ([#243](https://github.com/sethvargo/chefspec/issues/243))
428
-
429
- IMPROVEMENTS:
430
-
431
- - Miscellaneous documentation fixes and additions ([#245](https://github.com/sethvargo/chefspec/issues/245), [#241](https://github.com/sethvargo/chefspec/issues/241), [#238](https://github.com/sethvargo/chefspec/issues/238))
432
-
433
- ## 3.0.0 (October 20, 2013)
434
-
435
- Breaking:
436
-
437
- - Dropped support for Chef 9 & 10
438
- - Renamed `ChefSpec::ChefRunner` to `ChefSpec::Runner` to better reflect what happens in Chef Core. Using `ChefRunner` will throw deprecation errors for now and will be removed in a future release.
439
- - Removed MiniTest Chef Handler examples/matchers
440
- - No longer load default cookbook paths:
441
-
442
- - vendor/cookbooks
443
- - test/cookbooks
444
- - test/integration (test kitchen)
445
- - spec/cookbooks
446
-
447
- - Resource matchers all follow the pattern "(action)_(resource_name)". ChefSpec will warn you of these deprecations in 3.0\. They will be removed in 4.0\. However, some resources cannot be automatically converted - **these resources will raise a deprecation exception of `ChefSpec::NoConversionError`**. The following matchers have changed:
448
-
449
- - `execute_command` => `run_execute`
450
- - `set_service_to_start_on_boot` => `enable_service`
451
- - `create_file_with_content` => `render_file`
452
- - `execute_(script)` => `run_(script)`
453
- - `execute_ruby_block` => `run_ruby_block`
454
- - `install_package_at_version` => `install_package().with(version: '')`
455
- - `*_python_pip` => (removed - see "Packaging Custom LWRPs in the README")
456
-
457
- - Remove dependency on Erubis
458
-
459
- - Remove dependency on MiniTest Chef Handler
460
-
461
- - Remove development dependency on Cucumber
462
-
463
- - Remove development dependency on i18n
464
-
465
- - Remove development dependency on simplecov
466
-
467
- - Separate package matchers. In prior versions of ChefSpec, the `package` matcher would match on any kind of package and any kind of package action. However, some subclasses of the package resource do not support all actions. Each package provider now has it's own matcher with only the actions it supports. Prior specs that used the generic `package` matcher will no longer match on subclasses - you must use the specific subclass matcher.
468
-
469
- - Separate file/cookbook_file/template matchers. In prior versions of ChefSpec, the `file` matcher would match on `file`, `cookbook_file`, and `template`. This is not ideal because it doesn't verify the correct message was sent. Now, `file`, `cookbook_file`, and `template` matchers will _only_ match resources of that type. For generic file checking, please use the new `render_file` matcher.
470
-
471
- - Guards are now evaluated by default. If a shell guard is executed, it must first be stubbed with the `stub_command` macro.
472
-
473
- - `Runner#resources` converted from an Array to a Hash. This is to ensure that all resource actions are added (when multiple calls to run_action exist (#201)). This also drastically improves resource lookup times.
474
-
475
- - `Resource#actions` is no longer maniuplated. Instead, a new method `Resource#performed_actions` now keeps track of the actions taken on a resource (as well as the phase in which they were taken), preserving the original state of the resource.
476
-
477
- FEATURES:
478
-
479
- - Added a new `render_file` action to replace `create_file_with_content`. This matcher will render the contents of any file to a string and then optionally compare the result if given a `with` chainable.
480
- - All resources now accept a `with` chainable for matching specific resource attributes.
481
- - Windows attributes are now testable on non-Windows systems (like `inherits`)
482
- - Added `batch` resource matchers
483
- - Added `cookbook_file` resource matchers
484
- - Added `deploy` resource matchers
485
- - Added `erl_call` resource matchers
486
- - Added `git` resource matchers
487
- - Added `http_request` resource matchers
488
- - Added `ifconfig` resource matchers
489
- - Normalized `link` resource matchers
490
- - Added `log` resource matchers
491
- - Added `mdadm` resource matchers
492
- - Added `mount` resource matchers
493
- - Added `:immediate` and `:delayed` notification matchers
494
- - Added `ohai` resource matchers
495
- - Added `powershell_script` matchers (Chef 11.6+)
496
- - Added `registry_key` matchers
497
- - Added `remote_directory` matchers
498
- - Added `route` matchers
499
- - Added `subversion` matchers
500
- - Added `stub_command` macro (formerly on `ChefSpec::ChefRunner`) for stubbbing the results of shell commands. Because shell commands are evaluated by default, ChefSpec will raise an exception when encountering a shell command that has not been stubbed.
501
- - Added `stub_search` macro for easily stubbing `search` calls. Like shell commands, ChefSpec will raise an exception when encountering a `search` call that has not been stubbed.
502
- - Added `stub_data_bag` macro for easily stubbing `data_bag` calls. Like shell commands, ChefSpec will raise an exception when encountering a `data_bag` call that has not been stubbed.
503
- - Added `stub_data_bag_item` macro for easily stubbing`data_bag_item` calls. Like shell commands, ChefSpec will raise an exception when encountering a `data_bag_item` call that has not been stubbed.
504
- - Added `stub_node` helper for quickly generating a node object from Fauxhai data
505
- - Added `ChefSpec::Runner#apply` command to mimic the behavior of `chef-apply` (use with caution)
506
- - Share the `ChefSpec::Runner` object with the Node object
507
- - Add `chefspec/berkshelf` for easily integrating specs with Berkshelf (2 & 3)
508
- - Add `.at_compile_time` and `.at_converge_time` matchers for asserting which phase of the Chef run a resource should be run
509
-
510
- IMPROVEMENTS:
511
-
512
- - Move to inline documentation (Yard)
513
- - Implement InProcess Aruba testing for ultra-fast tests
514
- - Create "examples" directory for testing and demonstration
515
- - Unified all failure_messages_for_should
516
- - Use `shared_examples` for easily testing defined custom matchers
517
- - Infer the `cookbook_path` from the calling spec
518
- - Directly set node attributes with Fauxhai (formerly this was an O(n) operation)
519
- - Refactored ExpectExpectation to work without stubbing
520
- - Use Chef's `resource_collection` to identify resources instead of our own custom proxy
521
-
522
- ## 2.0.1 (August 28, 2013)
523
-
524
- BUG FIXES:
525
-
526
- - Add missing second optional parameter to `Hash#respond_to?` monkey patch
527
-
528
- FEATURES
529
-
530
- - Improve error message when using a regular express
531
- - Improve documentation for Python packages
532
-
533
- ## 2.0.0 (August 22, 2013)
534
-
535
- Breaking:
536
-
537
- - Remove support for REE ([@andrewgross] for the CI)
538
-
539
- BUG FIXES:
540
-
541
- - Better failure message for `create_remote_file` ([@tmatilai])
542
- - Add `cookbook_file` as an accepted type to the `create_file` matchers ([@dafyddcrosby])
543
- - Ensure formatter is only registered once ([@student])
544
- - Signifant README updates ([@phoolish])
545
- - Fix `described_recipe` helper (S.R.Garcia)
546
- - Refactor Chef 10/11 template rendering ([@sethvargo])
547
- - Fix CI ([@sethvargo])
548
- - Match File actions as an array ([@sethvargo])
549
-
550
- FEATURES:
551
-
552
- - Extend `ruby_block` matcher to accept regular expressions ([@ssimeonov])
553
- - Add `create_remote_file_if_missing` matcher ([@jimhopp])
554
- - Extend `execute` matcher to accept regular expressions ([@eliaslevy])
555
- - Add ability to expect exceptions during a run ([@student])
556
- - Add regular expression support for resource names ([@mapleoin])
557
- - Add support for `python_pip` LWRP ([@mapleoin])
558
-
559
- ## 1.3.1 (June 10, 2013)
560
-
561
- BUG FIXES:
562
-
563
- - Allow the user to override `cookbook_path` again
564
-
565
- ## 1.3.0 (June 6, 2013)
566
-
567
- FEATURES:
568
-
569
- - Added the ability to evaluate `only_if` and `not_if` conditional guards and support for stubbing shell guards (#142, #144).
570
- - New `described_recipe` and `described_cookbook` helpers to keep your specs DRY (#140). Thanks Andrey Chernih.
571
-
572
- BUG FIXES:
573
-
574
- - Ensure that Ohai plugin reloader works with ChefSpec (#141). Thanks Andrey Chernih.
575
-
576
- ## 1.2.0 (May 16, 2013)
577
-
578
- FEATURES:
579
-
580
- - Add support for partial files (@RanjibDey)
581
- - Automatically check certain directories for cookbooks (@sethvargo)
582
-
583
- ## 1.1.0 (May 10, 2013)
584
-
585
- FEATURES:
586
-
587
- - Upgrade to newest version of fauxhai (@tmatilai)
588
- - Make `find_resource` a public method (@adamhjk)
589
- - Add path support (from fauxhai) (@RanjibDey)
590
- - Custom Chef formatter for ChefSpec (removes pesky output) (@sethvargo)
591
-
592
- BUG FIXES:
593
-
594
- - Remove pesky output from Chef 11
595
-
596
- ## 1.0.0 (April 22, 2013)
597
-
598
- FEATURES:
599
-
600
- - Add support for matching file content using Regular Expressions (@ketan)
601
- - Add support for `ruby_block` matcher (Andrey Vorobiev)
602
- - Use Fauxhai for node attributes (see 4529c10)
603
- - Moved `test` and `development` into gemspec for transparency
604
- - Improve message logging and testing (@tmatilai)
605
- - Chef 11 compatibility (still Chef 10 compatible)
606
- - Accept and document new RSpec "expect" syntax
607
- - Attribute matchers for various providers (@bjoernalbers)
608
- - Add execute_{bash,csh,perl,python,ruby}_script matchers ([@mlafeldt])
609
- - Add group and user resource matchers (@gildegoma)
610
- - Add support for `yum_package` (Justin Witrick)
611
- - Add ISSUES.md
612
- - Add CONTRIBUTING.md
613
- - Relax gemspec constraints (@juliandunn)
614
- - Improve documentation and examples
615
-
616
- BUG FIXES:
617
-
618
- - Fix Rubygems/Bundler 2.0 compatibility issues
619
- - Upgrade to newest RSpec
620
- - Fix Chef 11 incompatibility
621
- - Various documentation fixes
622
-
623
- ## 0.9.0 (November 10, 2012)
624
-
625
- FEATURES:
626
-
627
- - Support added for the `user` resource (#6). Thanks Ranjib Dey.
628
- - Support for making assertions about notifications added (#49). Thanks to Ranjib Dey.
629
- - New `include_recipe` matcher added (#50). Thanks Ranjib Dey.
630
- - Support added for the Windows `env` resource (#51). Thanks Ranjib Dey.
631
- - Convenience methods for common resources added to `ChefRunner` (#51). Thanks Ranjib Dey.
632
- - Further resource convenience methods added (#60). Thanks to Ketan Padegaonkar.
633
- - Support for the `:disable` action added to the service resource (#67). Thanks to Chris Lundquist.
634
- - Add a matcher to assert that a service is not running on boot (#58). Thanks to Ketan Padegaonkar.
635
- - Support added for the `chef_gem` resource (#74). Thanks to Jim Hopp.
636
-
637
- BUG FIXES:
638
-
639
- - Avoid failure if template path is not writable (#48). Thanks to Augusto Becciu and Jim Hopp.
640
- - Style fix for the README (#55). Thanks Greg Karékinian.
641
- - Ensure notification assertions work where the resource name contains brackets (#57). Thanks Sean Nolen.
642
- - Unit tests updated to explicitly specify attribute precedence as required from Chef 11 (#70). Thanks Mathias Lafeldt.
643
- - Documentation added to the README for the `create_remote_file` matcher (#71). Thanks Mathias Lafeldt.
644
- - Clarify that `create_file_with_content` matches on partial content (#72). Thanks Mathias Lafeldt.
645
-
646
- ## 0.8.0 (September 14, 2012)
647
-
648
- FEATURES:
649
-
650
- - LWRP support added (#40). You can now make assertions about the resources created by a provider by telling chefspec to [step into a provider implementation](https://github.com/sethvargo/chefspec/tree/v0.8.0#writing-examples-for-lwrps). Thanks to Augusto Becciu for implementing this feature.
651
- - Updated for compatibility with Chef 10.14\. Thanks Augusto Becciu.
652
-
653
- BUG FIXES:
654
-
655
- - Template paths are no longer hard-coded to live under `default` (#32). Thanks Augusto Becciu.
656
-
657
- ## 0.7.0 (August 27, 2012)
658
-
659
- FEATURES:
660
-
661
- - Cron resource support added (#33). Thanks Alexander Tamoykin.
662
- - RSpec dependency [bumped to 2.11](https://github.com/rspec/rspec-core/blob/b8197262d143294bf849ab58d1586d24537965ab/Changelog.md) which has [named subject](http://blog.davidchelimsky.net/2012/05/13/spec-smell-explicit-use-of-subject/) support (#37). Thanks Doug Ireton.
663
-
664
- BUG FIXES:
665
-
666
- - Correctly infer the default `cookbook_path` on Windows (#38). Thanks Torben Knerr.
667
-
668
- ## 0.6.1 (June 21, 2012)
669
-
670
- FEATURES:
671
-
672
- - With the [release of Chef 10.12.0](http://www.opscode.com/blog/2012/06/19/chef-10-12-0-released/) the Chef versioning scheme has changed to make use of the major version field. The constraint on chef is now optimistic. Thanks to Robert J. Berger of Runa.com for flagging this issue (#28).
673
-
674
- ## 0.6.0 (May 31, 2012)
675
-
676
- FEATURES:
677
-
678
- - Service matchers extended to add support for the `:nothing` and `:enabled` actions. Thanks to Steve Lum (#20).
679
- - Added mock value for `node['languages']` to prevent failure when loading cookbooks that expect this attribute to have been populated by OHAI. Thanks to Jim Hopp (#23).
680
- - Matchers added for the `link` resource. Thanks to James Burgess (#25).
681
- - Matchers added for the `remote_file` resource. Thanks to Matt Pruitt (#26).
682
-
683
- ## 0.5.0 (February 20, 2012)
684
-
685
- FEATURES:
686
-
687
- - Thanks to Chris Griego and Morgan Nelson for these improvements:
688
-
689
- - Support both arrays and raw symbols for actions in the file content matcher (#14).
690
- - Add support for cookbook_file resources (#14).
691
-
692
- - Support added for `gem_package` resources. Thanks to Jim Hopp from Lookout (#16).
693
-
694
- BUG FIXES:
695
-
696
- - Set the client_key to nil so that Chef::Search::Query.new doesn't raise (#14). Thanks Chris Griego and Morgan Nelson.
697
-
698
- ## 0.4.0 (November 14, 2011)
699
-
700
- FEATURES:
701
-
702
- - Ruby 1.9.3 is now supported.
703
- - The `create_file_with_content` matcher now matches on partial content (#13). This is an API behaviour change but sufficiently minor and unlikely to break existing specs that I'm not bumping the major version. Thanks Chris Griego and Morgan Nelson from getaroom.
704
-
705
- BUG FIXES:
706
-
707
- - Fixed a bug in the `install_package_at_version` matcher where it would error if the package action was not explicitly specified (#13). Thanks Chris Griego and Morgan Nelson from getaroom.
708
-
709
- ## 0.3.0 (October 2, 2011)
710
-
711
- FEATURES:
712
-
713
- - [Added new matcher](https://www.relishapp.com/sethvargo/chefspec/docs/write-examples-for-templates) `create_file_with_content` for verifying Chef `template` resource generated content.
714
- - [Knife plugin](https://www.relishapp.com/sethvargo/chefspec/docs/generate-placeholder-examples) added to generate placeholder examples.
715
-
716
- ## 0.2.1 (September 21, 2011)
717
-
718
- BUG FIXES:
719
-
720
- - Fixed typo in 0.2.0 botched release. Pro-tip: run your tests.
721
-
722
- ## 0.2.0 (September 21, 2011)
723
-
724
- FEATURES:
725
-
726
- - Significantly improved performance by not invoking OHAI.
727
- - ChefRunner constructor now accepts a block to set node attributes.
728
- - ChefRunner constructor now takes an options hash.
729
- - Converge now returns a reference to the ChefRunner to support calling converge in a let block.
730
-
731
- BUG FIXES:
732
-
733
- - Removed LWRP redefinition warnings.
734
- - Reset run_list between calls to converge.
735
- - Readable to_s output for failed specs.
736
-
737
- ## 0.1.0 (August 9, 2011)
738
-
739
- FEATURES:
740
-
741
- - Support for Chef 0.1.x (#2)
742
- - Support MRI 1.9.2 (#3)
743
-
744
- BUG FIXES:
745
-
746
- - Added specs.
747
-
748
- ## 0.0.2 (July 31, 2011)
749
-
750
- BUG FIXES:
751
-
752
- - Corrected gem dependencies.
753
-
754
- ## 0.0.1 (July 31, 2011)
755
-
756
- Initial version.
757
-
758
- --------------------------------------------------------------------------------
759
-
760
- [@acrmp]: https://github.com/acrmp "Andrew Crump GitHub"
761
- [@andrewgross]: https://github.com/andrewgross "Andrew Gross's GitHub"
762
- [@bknowles]: https://github.com/bknowles "Brad Knowles's GitHub"
763
- [@dafyddcrosby]: https://github.com/dafyddcrosby "Dafydd Crosby's GitHub"
764
- [@dracoater]: https://github.com/DracoAter "Juri Timošin's GitHub"
765
- [@eliaslevy]: https://github.com/eliaslevy "eliaslevy's GitHub"
766
- [@geraud]: https://github.com/geraud "Geraud Boyer's GitHub"
767
- [@jimhopp]: https://github.com/jimhopp "Jim Hopp's GitHub"
768
- [@mapleoin]: https://github.com/mapleoin "Ionuț Arțăriși's GitHub"
769
- [@mlafeldt]: https://github.com/mlafeldt "Mathias Lafeldt's GitHub"
770
- [@phoolish]: https://github.com/phoolish "phoolish's GitHub"
771
- [@ranjib]: https://github.com/ranjib "Ranjib Dey's GitHub"
772
- [@rteabeault]: https://github.com/rteabeault "rteabeault's GitHub"
773
- [@ryotarai]: https://github.com/ryotarai "Ryota Arai's GitHub"
774
- [@sethvargo]: https://github.com/sethvargo "Seth Vargo GitHub"
775
- [@ssimeonov]: https://github.com/ssimeonov "Simeon Simeonov's GitHub"
776
- [@student]: https://github.com/student "Nathan Zook's GitHub"
777
- [@tmatilai]: https://github.com/tmatilai "Teemu Matilainen's GitHub"