chefspec 5.0.0 → 5.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +425 -371
- data/examples/apt_package/recipes/purge.rb +2 -2
- data/examples/apt_package/recipes/reconfig.rb +2 -2
- data/examples/apt_package/recipes/remove.rb +2 -2
- data/examples/apt_package/recipes/upgrade.rb +2 -2
- data/examples/apt_package/spec/install_spec.rb +4 -1
- data/examples/apt_package/spec/purge_spec.rb +4 -1
- data/examples/apt_package/spec/reconfig_spec.rb +4 -1
- data/examples/apt_package/spec/remove_spec.rb +4 -1
- data/examples/apt_package/spec/upgrade_spec.rb +4 -1
- data/examples/apt_repository/spec/add_spec.rb +4 -1
- data/examples/apt_repository/spec/remove_spec.rb +4 -1
- data/examples/apt_update/recipes/periodic.rb +1 -1
- data/examples/apt_update/spec/periodic_spec.rb +5 -2
- data/examples/apt_update/spec/update_spec.rb +4 -1
- data/examples/attributes/spec/default_spec.rb +1 -1
- data/examples/batch/spec/run_spec.rb +4 -6
- data/examples/cached/spec/default_spec.rb +1 -1
- data/examples/chef_gem/spec/install_spec.rb +1 -1
- data/examples/chef_gem/spec/purge_spec.rb +1 -1
- data/examples/chef_gem/spec/reconfig_spec.rb +1 -1
- data/examples/chef_gem/spec/remove_spec.rb +1 -1
- data/examples/chef_gem/spec/upgrade_spec.rb +1 -1
- data/examples/chocolatey_package/spec/install_spec.rb +4 -6
- data/examples/chocolatey_package/spec/remove_spec.rb +4 -6
- data/examples/chocolatey_package/spec/upgrade_spec.rb +4 -6
- data/examples/compile_time/spec/default_spec.rb +1 -1
- data/examples/cookbook_file/spec/create_if_missing_spec.rb +3 -3
- data/examples/cookbook_file/spec/create_spec.rb +3 -3
- data/examples/cookbook_file/spec/delete_spec.rb +1 -1
- data/examples/cookbook_file/spec/touch_spec.rb +1 -1
- data/examples/cron/spec/create_spec.rb +1 -1
- data/examples/cron/spec/delete_spec.rb +1 -1
- data/examples/custom_matcher/providers/thing.rb +1 -1
- data/examples/custom_matcher/spec/install_spec.rb +1 -1
- data/examples/custom_matcher/spec/remove_spec.rb +1 -1
- data/examples/deploy/spec/deploy_spec.rb +1 -1
- data/examples/deploy/spec/force_deploy_spec.rb +1 -1
- data/examples/deploy/spec/rollback_spec.rb +1 -1
- data/examples/directory/spec/create_spec.rb +4 -4
- data/examples/directory/spec/delete_spec.rb +3 -3
- data/examples/do_nothing/spec/default_spec.rb +1 -1
- data/examples/dpkg_package/spec/install_spec.rb +4 -6
- data/examples/dpkg_package/spec/purge_spec.rb +4 -6
- data/examples/dpkg_package/spec/remove_spec.rb +4 -6
- data/examples/dsc_resource/recipes/{default.rb → run.rb} +6 -6
- data/examples/dsc_resource/spec/{default_spec.rb → run_spec.rb} +5 -7
- data/examples/dsc_script/recipes/run.rb +12 -0
- data/examples/dsc_script/spec/run_spec.rb +16 -0
- data/examples/easy_install_package/spec/install_spec.rb +1 -1
- data/examples/easy_install_package/spec/purge_spec.rb +1 -1
- data/examples/easy_install_package/spec/remove_spec.rb +1 -1
- data/examples/easy_install_package/spec/upgrade_spec.rb +1 -1
- data/examples/env/spec/create_spec.rb +4 -6
- data/examples/env/spec/delete_spec.rb +4 -6
- data/examples/env/spec/modify_spec.rb +4 -6
- data/examples/erl_call/spec/run_spec.rb +1 -1
- data/examples/execute/spec/run_spec.rb +1 -1
- data/examples/expect_exception/spec/compile_error_spec.rb +1 -1
- data/examples/expect_exception/spec/converge_error_spec.rb +1 -1
- data/examples/expect_exception/spec/no_error_spec.rb +1 -1
- data/examples/file/spec/create_if_missing_spec.rb +3 -3
- data/examples/file/spec/create_spec.rb +3 -3
- data/examples/file/spec/delete_spec.rb +1 -1
- data/examples/file/spec/touch_spec.rb +1 -1
- data/examples/freebsd_package/spec/install_spec.rb +4 -1
- data/examples/freebsd_package/spec/remove_spec.rb +4 -1
- data/examples/gem_package/spec/install_spec.rb +1 -1
- data/examples/gem_package/spec/purge_spec.rb +1 -1
- data/examples/gem_package/spec/reconfig_spec.rb +1 -1
- data/examples/gem_package/spec/remove_spec.rb +1 -1
- data/examples/gem_package/spec/upgrade_spec.rb +1 -1
- data/examples/git/spec/checkout_spec.rb +1 -1
- data/examples/git/spec/export_spec.rb +1 -1
- data/examples/git/spec/sync_spec.rb +1 -1
- data/examples/group/spec/create_spec.rb +1 -1
- data/examples/group/spec/manage_spec.rb +1 -1
- data/examples/group/spec/modify_spec.rb +1 -1
- data/examples/group/spec/remove_spec.rb +1 -1
- data/examples/guards/spec/default_spec.rb +1 -1
- data/examples/heavy_provider_light_resource/libraries/resource_service.rb +1 -1
- data/examples/heavy_provider_light_resource/recipes/default.rb +1 -2
- data/examples/heavy_provider_light_resource/spec/provider_service_spec.rb +2 -2
- data/examples/http_request/spec/delete_spec.rb +1 -1
- data/examples/http_request/spec/get_spec.rb +1 -1
- data/examples/http_request/spec/head_spec.rb +1 -1
- data/examples/http_request/spec/options_spec.rb +1 -1
- data/examples/http_request/spec/post_spec.rb +1 -1
- data/examples/http_request/spec/put_spec.rb +1 -1
- data/examples/ifconfig/spec/add_spec.rb +1 -1
- data/examples/ifconfig/spec/delete_spec.rb +1 -1
- data/examples/ifconfig/spec/disable_spec.rb +1 -1
- data/examples/ifconfig/spec/enable_spec.rb +1 -1
- data/examples/include_recipe/spec/default_spec.rb +1 -1
- data/examples/ips_package/spec/install_spec.rb +4 -6
- data/examples/ips_package/spec/remove_spec.rb +4 -6
- data/examples/ips_package/spec/upgrade_spec.rb +4 -6
- data/examples/link/spec/create_spec.rb +1 -1
- data/examples/link/spec/delete_spec.rb +1 -1
- data/examples/link/spec/link_to_spec.rb +1 -1
- data/examples/log/spec/write_spec.rb +1 -1
- data/examples/macports_package/spec/install_spec.rb +1 -1
- data/examples/macports_package/spec/purge_spec.rb +1 -1
- data/examples/macports_package/spec/remove_spec.rb +1 -1
- data/examples/macports_package/spec/upgrade_spec.rb +1 -1
- data/examples/mdadm/spec/assemble_spec.rb +1 -1
- data/examples/mdadm/spec/create_spec.rb +1 -1
- data/examples/mdadm/spec/stop_spec.rb +1 -1
- data/examples/mount/spec/disable_spec.rb +1 -1
- data/examples/mount/spec/enable_spec.rb +1 -1
- data/examples/mount/spec/mount_spec.rb +1 -1
- data/examples/mount/spec/remount_spec.rb +1 -1
- data/examples/mount/spec/umount_spec.rb +1 -1
- data/examples/multiple_actions/spec/default_spec.rb +1 -1
- data/examples/multiple_actions/spec/sequential_spec.rb +2 -2
- data/examples/multiple_run_action/recipes/default.rb +2 -2
- data/examples/multiple_run_action/spec/default_spec.rb +1 -1
- data/examples/notifications/spec/before_spec.rb +1 -1
- data/examples/notifications/spec/chained_spec.rb +1 -1
- data/examples/notifications/spec/default_spec.rb +1 -1
- data/examples/notifications/spec/delayed_spec.rb +1 -1
- data/examples/notifications/spec/immediately_spec.rb +1 -1
- data/examples/ohai/spec/reload_spec.rb +1 -1
- data/examples/package/recipes/install.rb +1 -1
- data/examples/package/recipes/purge.rb +1 -1
- data/examples/package/recipes/reconfig.rb +1 -1
- data/examples/package/recipes/remove.rb +1 -1
- data/examples/package/recipes/upgrade.rb +1 -1
- data/examples/package/spec/install_spec.rb +2 -2
- data/examples/package/spec/purge_spec.rb +2 -2
- data/examples/package/spec/reconfig_spec.rb +2 -2
- data/examples/package/spec/remove_spec.rb +2 -2
- data/examples/package/spec/upgrade_spec.rb +2 -2
- data/examples/pacman_package/spec/install_spec.rb +4 -6
- data/examples/pacman_package/spec/purge_spec.rb +4 -6
- data/examples/pacman_package/spec/remove_spec.rb +4 -6
- data/examples/pacman_package/spec/upgrade_spec.rb +4 -6
- data/examples/portage_package/spec/install_spec.rb +4 -1
- data/examples/portage_package/spec/purge_spec.rb +4 -1
- data/examples/portage_package/spec/remove_spec.rb +4 -1
- data/examples/portage_package/spec/upgrade_spec.rb +4 -1
- data/examples/powershell_script/spec/run_spec.rb +4 -6
- data/examples/reboot/spec/cancel_spec.rb +1 -2
- data/examples/reboot/spec/now_spec.rb +1 -2
- data/examples/reboot/spec/request_spec.rb +1 -2
- data/examples/registry_key/spec/create_if_missing_spec.rb +4 -1
- data/examples/registry_key/spec/create_spec.rb +4 -1
- data/examples/registry_key/spec/delete_key_spec.rb +4 -1
- data/examples/registry_key/spec/delete_spec.rb +4 -1
- data/examples/remote_directory/spec/create_if_missing_spec.rb +1 -1
- data/examples/remote_directory/spec/create_spec.rb +1 -1
- data/examples/remote_directory/spec/delete_spec.rb +1 -1
- data/examples/remote_file/spec/create_if_missing_spec.rb +1 -1
- data/examples/remote_file/spec/create_spec.rb +1 -1
- data/examples/remote_file/spec/delete_spec.rb +1 -1
- data/examples/remote_file/spec/touch_spec.rb +1 -1
- data/examples/render_file/spec/default_spec.rb +1 -1
- data/examples/render_file/spec/template_helpers_spec.rb +1 -1
- data/examples/roles/roles/role.rb +3 -3
- data/examples/route/spec/add_spec.rb +1 -1
- data/examples/route/spec/delete_spec.rb +1 -1
- data/examples/rpm_package/spec/install_spec.rb +4 -6
- data/examples/rpm_package/spec/remove_spec.rb +4 -6
- data/examples/rpm_package/spec/upgrade_spec.rb +4 -6
- data/examples/ruby_block/spec/run_spec.rb +1 -1
- data/examples/script/spec/run_bash_spec.rb +1 -1
- data/examples/script/spec/run_csh_spec.rb +1 -1
- data/examples/script/spec/run_perl_spec.rb +1 -1
- data/examples/script/spec/run_python_spec.rb +1 -1
- data/examples/script/spec/run_ruby_spec.rb +1 -1
- data/examples/script/spec/run_script_spec.rb +1 -1
- data/examples/server/spec/client_spec.rb +2 -2
- data/examples/server/spec/environment_spec.rb +1 -1
- data/examples/server/spec/node_spec.rb +4 -4
- data/examples/server/spec/role_spec.rb +1 -1
- data/examples/service/recipes/disable.rb +1 -1
- data/examples/service/recipes/enable.rb +1 -1
- data/examples/service/recipes/reload.rb +1 -1
- data/examples/service/recipes/restart.rb +1 -1
- data/examples/service/recipes/start.rb +1 -1
- data/examples/service/recipes/stop.rb +1 -1
- data/examples/service/spec/disable_spec.rb +1 -1
- data/examples/service/spec/enable_spec.rb +1 -1
- data/examples/service/spec/reload_spec.rb +1 -1
- data/examples/service/spec/restart_spec.rb +1 -1
- data/examples/service/spec/start_spec.rb +1 -1
- data/examples/service/spec/stop_spec.rb +1 -1
- data/examples/smartos_package/spec/install_spec.rb +4 -1
- data/examples/smartos_package/spec/remove_spec.rb +4 -1
- data/examples/smartos_package/spec/upgrade_spec.rb +4 -1
- data/examples/solaris_package/spec/install_spec.rb +4 -1
- data/examples/solaris_package/spec/remove_spec.rb +4 -1
- data/examples/state_attrs/providers/lwrp.rb +0 -1
- data/examples/state_attrs/spec/default_spec.rb +1 -1
- data/examples/step_into/spec/default_spec.rb +4 -4
- data/examples/stub_command/spec/default_spec.rb +3 -3
- data/examples/stub_data_bag/spec/default_spec.rb +2 -2
- data/examples/stub_data_bag_item/spec/default_spec.rb +4 -4
- data/examples/stub_search/spec/default_spec.rb +4 -4
- data/examples/subscribes/spec/before_spec.rb +1 -1
- data/examples/subscribes/spec/chained_spec.rb +1 -1
- data/examples/subscribes/spec/default_spec.rb +1 -2
- data/examples/subscribes/spec/delayed_spec.rb +1 -1
- data/examples/subscribes/spec/immediately_spec.rb +1 -1
- data/examples/subversion/spec/checkout_spec.rb +1 -1
- data/examples/subversion/spec/export_spec.rb +1 -1
- data/examples/subversion/spec/force_export_spec.rb +1 -1
- data/examples/subversion/spec/sync_spec.rb +1 -1
- data/examples/template/spec/create_if_missing_spec.rb +3 -3
- data/examples/template/spec/create_spec.rb +3 -3
- data/examples/template/spec/delete_spec.rb +1 -1
- data/examples/template/spec/touch_spec.rb +1 -1
- data/examples/use_inline_resources/spec/default_spec.rb +3 -3
- data/examples/user/spec/create_spec.rb +4 -1
- data/examples/user/spec/lock_spec.rb +4 -1
- data/examples/user/spec/manage_spec.rb +4 -1
- data/examples/user/spec/modify_spec.rb +4 -1
- data/examples/user/spec/remove_spec.rb +4 -1
- data/examples/user/spec/unlock_spec.rb +4 -1
- data/examples/windows_package/spec/install_spec.rb +4 -6
- data/examples/windows_package/spec/remove_spec.rb +4 -6
- data/examples/windows_service/spec/configure_startup_spec.rb +4 -6
- data/examples/windows_service/spec/disable_spec.rb +4 -6
- data/examples/windows_service/spec/enable_spec.rb +4 -6
- data/examples/windows_service/spec/reload_spec.rb +4 -6
- data/examples/windows_service/spec/restart_spec.rb +4 -6
- data/examples/windows_service/spec/start_spec.rb +4 -6
- data/examples/windows_service/spec/stop_spec.rb +4 -6
- data/examples/yum_package/spec/install_spec.rb +4 -1
- data/examples/yum_package/spec/purge_spec.rb +4 -1
- data/examples/yum_package/spec/remove_spec.rb +4 -1
- data/examples/yum_package/spec/upgrade_spec.rb +4 -1
- data/examples/yum_repository/recipes/create.rb +8 -0
- data/examples/yum_repository/recipes/make_cache.rb +3 -0
- data/examples/yum_repository/recipes/remove.rb +3 -0
- data/examples/yum_repository/spec/create_spec.rb +17 -0
- data/examples/yum_repository/spec/make_cache_spec.rb +12 -0
- data/examples/yum_repository/spec/remove_spec.rb +12 -0
- data/features/apt_repository.feature +21 -0
- data/features/apt_update.feature +19 -0
- data/features/dsc_resource.feature +5 -2
- data/features/dsc_script.feature +10 -0
- data/features/yum_repository.feature +27 -0
- data/lib/chefspec/api.rb +4 -0
- data/lib/chefspec/api/dsc_script.rb +37 -0
- data/lib/chefspec/api/yum_repository.rb +80 -0
- data/lib/chefspec/version.rb +1 -1
- metadata +23 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d376f934381569e658a7e85c9c1194edd9404612
|
4
|
+
data.tar.gz: 2f539a603a1c25fa4981330aff25e8a243290ac9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4541689bccdcd86dc55065b75cfcfb81dd8559fa5964333d368928555749377f41657d686dc552bfb85546066083fb8d0f633f973fb924804a98ac2b9a91b2f
|
7
|
+
data.tar.gz: bfbbecf040eec535c4e648411a1628f66ddd0b26399a13bd3dcc7e7831501f333a154353427067403ba6e6603d0bcea8c385452210087163399c65a57e266cd8
|
data/CHANGELOG.md
CHANGED
@@ -1,642 +1,696 @@
|
|
1
1
|
# CHANGELOG for ChefSpec
|
2
2
|
|
3
|
+
## 5.1.0 (September 14, 2016)
|
4
|
+
|
5
|
+
IMPROVEMENTS
|
6
|
+
|
7
|
+
- Add dsc_script matcher
|
8
|
+
- Add yum_repository matcher
|
9
|
+
- Resolve cookstyle warnings in example recipes and specs
|
10
|
+
- Mock out platforms in the example specs so they're easier to adopt
|
11
|
+
- Switch all example specs to SoloRunner as this is the preferred runner for Chef Server / Chef Zero users
|
12
|
+
|
13
|
+
BUG FIXES
|
14
|
+
|
15
|
+
- Fixes apt_update and apt_repository matchers to work
|
16
|
+
|
3
17
|
## 5.0.0 (August 24, 2016)
|
4
18
|
|
5
19
|
IMPROVEMENTS
|
6
20
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
21
|
+
- Require a minimum of Chef 12.0
|
22
|
+
- Add custom templating to Coverage Reporting. See readme for details
|
23
|
+
- Add matcher for apt_repository resource
|
24
|
+
- Add matcher for apt_update resource
|
25
|
+
- Add support for the :before notification
|
26
|
+
- Allow stubbing encrypted databags loaded with data_bag_item
|
27
|
+
- Add testing against Chef 12.8 - 12.3
|
14
28
|
|
15
29
|
BUG FIXES
|
16
30
|
|
17
|
-
|
18
|
-
|
19
|
-
|
31
|
+
- Update docs/examples to use node.normal instead of node.set, which has been deprecated
|
32
|
+
- Update user spec examples to specify the platform
|
33
|
+
- Update docs to clarify the Ruby 2.1 requirement
|
20
34
|
|
21
35
|
## 4.7.0 (May 13, 2016)
|
22
36
|
|
23
37
|
IMPROVEMENTS
|
24
38
|
|
25
|
-
|
39
|
+
- Support Chef Solo actually being local mode (per Chef RFC 31)
|
26
40
|
|
27
41
|
## 4.6.1 (March 29, 2016)
|
28
42
|
|
29
43
|
BUG FIXES
|
30
44
|
|
31
|
-
|
32
|
-
|
33
|
-
|
45
|
+
- Use the same Chef :file_cache_path in every ChefSpec converge to prevent large numbers of LWRP deprecation warnings
|
46
|
+
- Require Fauxhai ~3.2 to prevent ChefSpec spec failures
|
47
|
+
- Require Rake < 11.0 to prevent failures
|
34
48
|
|
35
49
|
## 4.6.0 (March 7, 2016)
|
36
50
|
|
37
51
|
IMPROVEMENTS
|
38
52
|
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
53
|
+
- Add support for adding `berkshelf_options` to the RSpec config
|
54
|
+
- Add `chocolately_package` matchers
|
55
|
+
- Support `do..end` style syntax in block expectations
|
56
|
+
- Output a diff when multi-line resource parameters are unmatched
|
43
57
|
|
44
58
|
BUG FIXES
|
45
59
|
|
46
|
-
|
47
|
-
|
60
|
+
- Update tests to include better descriptions and feature names
|
61
|
+
- Add support for Policyfile workflow
|
48
62
|
|
49
63
|
## 4.5.0 (December 4, 2015)
|
50
64
|
|
51
65
|
IMPROVEMENTS
|
52
|
-
|
66
|
+
|
67
|
+
- Update Fauxhai dependency to 3.0 to bring in newly generated mocked Ohai data
|
53
68
|
|
54
69
|
## 4.4.0 (September 18, 2015)
|
55
70
|
|
56
71
|
BUG FIXES
|
57
|
-
|
58
|
-
|
59
|
-
|
72
|
+
|
73
|
+
- Documentation improvements (using regex in stubbed commands, chef 12+ custom matcher gotchas)
|
74
|
+
- Spec suite improvements (dsc resource specs, platform specific configurations)
|
75
|
+
- Chef 12+ platform specific resource loading related error
|
60
76
|
|
61
77
|
IMPROVEMENTS
|
62
|
-
|
78
|
+
|
79
|
+
- Support for policy files
|
63
80
|
|
64
81
|
## 4.3.0 (July 16, 2015)
|
65
82
|
|
66
83
|
BUG FIXES:
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
84
|
+
|
85
|
+
- Improved documentation
|
86
|
+
- Use TemplateContext's `_extend_modules` for passing on template helper modules to nested partial templates
|
87
|
+
- Only exit if the status is a failure [GH-565]
|
88
|
+
- Fix load order on Windows when using the `rights` attributes
|
89
|
+
- Improve testing matrix and remove deprecated Chef versions
|
90
|
+
- Suppress chef_gem compile_time warnings
|
91
|
+
- Fix exceptions on converge for Chef 12.1.0 masking
|
92
|
+
- Update Librarian `Cheffile` site URL to supermarket.chef.io
|
93
|
+
- Filter Windows and Unix paths for test coverage report with Berkshelf
|
77
94
|
|
78
95
|
IMPROVEMENTS:
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
96
|
+
|
97
|
+
- Added possibility to specify file_cache_path globally
|
98
|
+
- Added new capabilities for reboot resource
|
99
|
+
- Use `Chef::Resource#declared_type` first if available (Chef >= 12), otherwise fall back to `Chef::Resource#resource_name` (Chef <= 11)
|
100
|
+
- Extend render_file to yield the content as a block
|
101
|
+
- Add windows_service resource
|
85
102
|
|
86
103
|
## 4.2.0 (December 25, 2014)
|
104
|
+
|
87
105
|
BUG FIXES:
|
88
|
-
|
89
|
-
|
90
|
-
|
106
|
+
|
107
|
+
- Updated README grep examples
|
108
|
+
- Fix various typographical errors
|
109
|
+
- Improved error message when using a deprecated resource matcher
|
91
110
|
|
92
111
|
IMPROVEMENTS:
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
112
|
+
|
113
|
+
- Add support for Chef 12
|
114
|
+
- Added support for environments in Chef Solo
|
115
|
+
- Fix location definition for caching
|
116
|
+
- Allow passing `Chef::Config[:file_cache_path]` from outside
|
117
|
+
- Update support for Chef 12
|
98
118
|
|
99
119
|
## 4.1.1 (October 13, 2014)
|
120
|
+
|
100
121
|
BUG FIXES:
|
101
|
-
|
102
|
-
|
122
|
+
|
123
|
+
- Fix total fail on my part with deprecations and add test coverage
|
124
|
+
- Do not validate cookbooks on upload (speed)
|
103
125
|
|
104
126
|
## 4.1.0 (October 12, 2014)
|
127
|
+
|
105
128
|
BUG FIXES:
|
106
|
-
|
107
|
-
|
129
|
+
|
130
|
+
- Bump the minimum required version of Chef to 11.14
|
131
|
+
- 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
|
108
132
|
|
109
133
|
IMPROVEMENTS:
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
134
|
+
|
135
|
+
- Allow multiple instances of a Chef Server instance
|
136
|
+
- Separate ChefSpec::Runner into `ChefSpec::SoloRunner` and `ChefSpec::ServerRunner`
|
137
|
+
- Preliminary support for Chef 12 alpha (not 100% complete)
|
138
|
+
- Add `SoloRunner` and `ServerRunner` `.converge` methods for quickly converging if you do not need to customize the runner object
|
139
|
+
- Create isolated Chef Server instances on a per-test or per-suite basis
|
140
|
+
- Deprecate `ChefSpec::Runner.define_runner_method` in favor of `ChefSpec.define_matcher`
|
141
|
+
- Deprecate `ChefSpec::Runner.new` - you should specify if you want a `SoloRunner` or `ServerRunner`
|
142
|
+
- Updated documentation
|
118
143
|
|
119
144
|
BREAKING CHANGES:
|
120
|
-
|
121
|
-
|
145
|
+
|
146
|
+
- 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 :(.
|
147
|
+
- Remove old deprecations - this is not really a breaking change, but the v2.0.0 deprecations have been removed in favor of new ones
|
122
148
|
|
123
149
|
## 4.0.2 (August 13, 2014)
|
150
|
+
|
124
151
|
BUG FIXES:
|
125
|
-
|
152
|
+
|
153
|
+
- Fix a regression caused by a new version of Chef Zero in single_org mode
|
126
154
|
|
127
155
|
IMPROVEMENTS:
|
128
|
-
|
156
|
+
|
157
|
+
- Test against Chef 11.14.0 in the Travis matrix
|
129
158
|
|
130
159
|
## 4.0.1 (June 27, 2014)
|
160
|
+
|
131
161
|
BUG FIXES:
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
162
|
+
|
163
|
+
- Fix class comparisons
|
164
|
+
- Update ChefZero API to work again
|
165
|
+
- Use proper cookbook in the template_finder
|
166
|
+
- Fix Ruby deprecations
|
167
|
+
- Various documentation updates
|
137
168
|
|
138
169
|
## 4.0.0 (June 2, 2014)
|
170
|
+
|
139
171
|
BREAKING CHANGES:
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
172
|
+
|
173
|
+
- **Upgraded to RSpec 3!** RSpec 3 brings many new API changes and syntaxes
|
174
|
+
- **Bump minimum required Chef version to 11.12!** Without this change, Chef Zero will blow up
|
175
|
+
|
176
|
+
BUG FIXES:
|
177
|
+
|
178
|
+
- Gracefully fail if a resource does not report it's source line in the reporter
|
179
|
+
- Pull the correct cookbook folder from the stack on Windows (88bfc6)
|
180
|
+
- Cover resources in render_file matchers for reporting
|
181
|
+
- Cover resources in link_to matchers for reporting
|
182
|
+
- Cover resources in do_nothing matchers for reporting
|
183
|
+
- Fix memory leak in LWRP Resource classes
|
184
|
+
- Restore the original `cookbook_path` when using librarian-chef
|
185
|
+
- Documentation fixes
|
186
|
+
- Disable lazy loading of cached resources
|
187
|
+
- Fix a bug that will happen in later Chef versions because FreeBSD is evil (13ff143)
|
188
|
+
- Do not pass local file paths to `preferred_filename_on_disk_location`
|
155
189
|
|
156
190
|
FEATURES:
|
157
|
-
|
158
|
-
|
159
|
-
|
191
|
+
|
192
|
+
- Add runner methods for all the bash, csh, perl, etc resources
|
193
|
+
- Upgraded fauxhai dependency and specs
|
194
|
+
- Upgrade Chef Zero for multi-org support
|
160
195
|
|
161
196
|
IMPROVEMENTS:
|
162
|
-
- Improved documentation around the `define_runner_method` method
|
163
|
-
- Update badges to be all SVG
|
164
|
-
- Test on Ruby 2.1
|
165
|
-
- Use a randomly assigned port for Chef Zero
|
166
|
-
- Remove references to `.stub` from documentation
|
167
197
|
|
198
|
+
- Improved documentation around the `define_runner_method` method
|
199
|
+
- Update badges to be all SVG
|
200
|
+
- Test on Ruby 2.1
|
201
|
+
- Use a randomly assigned port for Chef Zero
|
202
|
+
- Remove references to `.stub` from documentation
|
168
203
|
|
169
204
|
## 3.4.0 (March 16, 2014)
|
205
|
+
|
170
206
|
BUG FIXES:
|
171
|
-
|
172
|
-
|
207
|
+
|
208
|
+
- Restore Berkshelf 2 support (missing edge case)
|
209
|
+
- Add negative failure message for subscribes/notifies matchers
|
173
210
|
|
174
211
|
FEATURES:
|
175
|
-
|
212
|
+
|
213
|
+
- Added `do_nothing` matcher for asserting a resource performed no actions
|
176
214
|
|
177
215
|
IMPROVEMENTS:
|
178
|
-
|
179
|
-
|
216
|
+
|
217
|
+
- Increased spec coverage for matchers
|
218
|
+
- Support RSpec matchers in `with_content`
|
180
219
|
|
181
220
|
## 3.3.1 (March 11, 2014)
|
221
|
+
|
182
222
|
BUG FIXES:
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
223
|
+
|
224
|
+
- Various typographical fixes in the README
|
225
|
+
- Remove unused JSON report
|
226
|
+
- Restore coverage reporting for Berkshelf 2 users
|
227
|
+
- Minor formatting changes for errors
|
187
228
|
|
188
229
|
IMPROVEMENTS:
|
189
|
-
|
190
|
-
|
230
|
+
|
231
|
+
- Remove dependency on i18n and use native ERB instead
|
232
|
+
- Vendor Berkshelf/Librarian in a "cookbooks" directory so we can shorten the pathname during coverage reporting
|
191
233
|
|
192
234
|
## 3.3.0 (March 9, 2014)
|
235
|
+
|
193
236
|
BUG FIXES:
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
237
|
+
|
238
|
+
- Update documentation for setting `automatic` attributes
|
239
|
+
- Update documentation for stubbing data_bags
|
240
|
+
- Use a non-internal RSpec variable name for expecting exceptions
|
241
|
+
- Fix the airity of the `stub_node` method
|
198
242
|
|
199
243
|
IMPROVEMENTS:
|
200
|
-
|
244
|
+
|
245
|
+
- Better filtering protocols for resource coverage
|
201
246
|
|
202
247
|
## 3.2.0 (January 31, 2014)
|
248
|
+
|
203
249
|
BUG FIXES:
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
250
|
+
|
251
|
+
- Fix coverage calculation when there are no resources in the collection
|
252
|
+
- Fix misplaced quote in matcher output
|
253
|
+
- Include all files in generated gem
|
254
|
+
- Ensure compatibility with Chef HEAD
|
208
255
|
|
209
256
|
IMPROVEMENTS:
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
257
|
+
|
258
|
+
- Test Ruby 2.1 on Travis
|
259
|
+
- Miscellaneous README typos
|
260
|
+
- Add `subscribe_to` matchers
|
261
|
+
- Add documentation for the `with` matcher
|
262
|
+
- Add support for passing a `node` object directly to the server `create_node` method
|
215
263
|
|
216
264
|
## 3.1.4 (January 3, 2014)
|
265
|
+
|
217
266
|
BUG FIXES:
|
218
|
-
|
219
|
-
|
267
|
+
|
268
|
+
- Correctly expand the node's run_list in server mode
|
269
|
+
- Actually package i18n translations with the cookbook
|
220
270
|
|
221
271
|
IMPROVEMENTS:
|
222
|
-
|
223
|
-
|
272
|
+
|
273
|
+
- Document setting a node's role
|
274
|
+
- Add examples and features for `stub_node`
|
224
275
|
|
225
276
|
## 3.1.3 (January 2, 2014)
|
277
|
+
|
226
278
|
BUG FIXES:
|
227
|
-
|
228
|
-
|
279
|
+
|
280
|
+
- Fix broken deprecations module
|
281
|
+
- Update a broken test ([@bknowles])
|
229
282
|
|
230
283
|
IMPROVEMENTS:
|
231
|
-
|
232
|
-
|
284
|
+
|
285
|
+
- Better gem description on GitHub and Rubygems
|
286
|
+
- Helper support for template rendering (Chef 11.4+) ([@geraud])
|
233
287
|
|
234
288
|
## 3.1.2 (December 30, 2013)
|
289
|
+
|
235
290
|
BUG FIXES:
|
236
|
-
|
291
|
+
|
292
|
+
- Require i18n 0.6.9 or higher (but less than 1.0.0) ([#289](https://github.com/sethvargo/chefspec/issues/245))
|
237
293
|
|
238
294
|
## 3.1.1 (December 29, 2013)
|
295
|
+
|
239
296
|
BUG FIXES:
|
240
|
-
|
297
|
+
|
298
|
+
- Handle duplicate resources in the coverage reporter
|
241
299
|
|
242
300
|
## 3.1.0 (December 29, 2013)
|
301
|
+
|
243
302
|
BUG FIXES:
|
244
|
-
|
245
|
-
|
246
|
-
|
303
|
+
|
304
|
+
- Only remove existing LWRP resources and providers when a new one is encountered ([@student])
|
305
|
+
- Attempt to coerce dashes to underscores in LWRPs
|
306
|
+
- Various documentation fixes and typos
|
247
307
|
|
248
308
|
IMPROVEMENTS:
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
309
|
+
|
310
|
+
- Don't include `deprecations` module by default
|
311
|
+
- Add examples for stubbing commands across recipes
|
312
|
+
- Yield a block after cookbooks are compiled but before they are converged ([@rteabeault])
|
313
|
+
- Add IRC Channel #chefspec
|
314
|
+
- Raise a nice error when `cookbook_path` cannot be determined ([@ryotarai])
|
254
315
|
|
255
316
|
FEATURES:
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
317
|
+
|
318
|
+
- Add support for Librarian ([@mlafeldt])
|
319
|
+
- Add Cacher module for caching runner results ([@sethvargo] & [@DracoAter])
|
320
|
+
- Add Chef Zero (server) mode ([@sethvargo])
|
321
|
+
- Add basic resource reporting (Chef recipe code coverage) ([@sethvargo])
|
322
|
+
- Use i18n (internationalization) ([@sethvargo])
|
261
323
|
|
262
324
|
## 3.0.2 (November 6, 2013)
|
325
|
+
|
263
326
|
BUG FIXES:
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
327
|
+
|
328
|
+
- Update links to point at new repository location
|
329
|
+
- Deleted relish docs to remove confusion
|
330
|
+
- Bump fauxhai dependency to 2.0 (removing the HTTParty transitive dependency)
|
331
|
+
- Convert resource names with dashes to underscores when stepping into them
|
268
332
|
|
269
333
|
IMPROVEMENTS:
|
270
|
-
- Added a "what people are saying" section to the README - if you have something cool to say about ChefSpec, let me know!
|
271
|
-
- Add a link to [`knife-spec`](https://github.com/sethvargo/knife-spec)
|
272
|
-
- Test against Chef 11.8
|
273
|
-
- New matcher: `have_state_attrs` for testing custom LWRP state attributes
|
274
|
-
- Run tests in a sandboxed parent instead of tmp (makes Travis happier)
|
275
334
|
|
335
|
+
- Added a "what people are saying" section to the README - if you have something cool to say about ChefSpec, let me know!
|
336
|
+
- Add a link to [`knife-spec`](https://github.com/sethvargo/knife-spec)
|
337
|
+
- Test against Chef 11.8
|
338
|
+
- New matcher: `have_state_attrs` for testing custom LWRP state attributes
|
339
|
+
- Run tests in a sandboxed parent instead of tmp (makes Travis happier)
|
276
340
|
|
277
341
|
## 3.0.1 (October 22, 2013)
|
342
|
+
|
278
343
|
BUG FIXES:
|
279
|
-
|
280
|
-
|
344
|
+
|
345
|
+
- Fix an issue where LWRPs were not properly stepped into when `use_inline_resources` was specified ([#244](https://github.com/sethvargo/chefspec/issues/244))
|
346
|
+
- Coerce `render_file` `@expected_content` to a string before asserting if content is included ([#243](https://github.com/sethvargo/chefspec/issues/243))
|
281
347
|
|
282
348
|
IMPROVEMENTS:
|
283
|
-
- 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))
|
284
349
|
|
350
|
+
- 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))
|
285
351
|
|
286
352
|
## 3.0.0 (October 20, 2013)
|
353
|
+
|
287
354
|
Breaking:
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
-
|
305
|
-
-
|
306
|
-
-
|
307
|
-
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
355
|
+
|
356
|
+
- Dropped support for Chef 9 & 10
|
357
|
+
- 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.
|
358
|
+
- Removed MiniTest Chef Handler examples/matchers
|
359
|
+
- No longer load default cookbook paths:
|
360
|
+
|
361
|
+
- vendor/cookbooks
|
362
|
+
- test/cookbooks
|
363
|
+
- test/integration (test kitchen)
|
364
|
+
- spec/cookbooks
|
365
|
+
|
366
|
+
- 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:
|
367
|
+
|
368
|
+
- `execute_command` => `run_execute`
|
369
|
+
- `set_service_to_start_on_boot` => `enable_service`
|
370
|
+
- `create_file_with_content` => `render_file`
|
371
|
+
- `execute_(script)` => `run_(script)`
|
372
|
+
- `execute_ruby_block` => `run_ruby_block`
|
373
|
+
- `install_package_at_version` => `install_package().with(version: '')`
|
374
|
+
- `*_python_pip` => (removed - see "Packaging Custom LWRPs in the README")
|
375
|
+
|
376
|
+
- Remove dependency on Erubis
|
377
|
+
|
378
|
+
- Remove dependency on MiniTest Chef Handler
|
379
|
+
|
380
|
+
- Remove development dependency on Cucumber
|
381
|
+
|
382
|
+
- Remove development dependency on i18n
|
383
|
+
|
384
|
+
- Remove development dependency on simplecov
|
385
|
+
|
386
|
+
- 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.
|
387
|
+
|
388
|
+
- 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.
|
389
|
+
|
390
|
+
- Guards are now evaluated by default. If a shell guard is executed, it must first be stubbed with the `stub_command` macro.
|
391
|
+
|
392
|
+
- `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.
|
393
|
+
|
394
|
+
- `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.
|
314
395
|
|
315
396
|
FEATURES:
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
397
|
+
|
398
|
+
- 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.
|
399
|
+
- All resources now accept a `with` chainable for matching specific resource attributes.
|
400
|
+
- Windows attributes are now testable on non-Windows systems (like `inherits`)
|
401
|
+
- Added `batch` resource matchers
|
402
|
+
- Added `cookbook_file` resource matchers
|
403
|
+
- Added `deploy` resource matchers
|
404
|
+
- Added `erl_call` resource matchers
|
405
|
+
- Added `git` resource matchers
|
406
|
+
- Added `http_request` resource matchers
|
407
|
+
- Added `ifconfig` resource matchers
|
408
|
+
- Normalized `link` resource matchers
|
409
|
+
- Added `log` resource matchers
|
410
|
+
- Added `mdadm` resource matchers
|
411
|
+
- Added `mount` resource matchers
|
412
|
+
- Added `:immediate` and `:delayed` notification matchers
|
413
|
+
- Added `ohai` resource matchers
|
414
|
+
- Added `powershell_script` matchers (Chef 11.6+)
|
415
|
+
- Added `registry_key` matchers
|
416
|
+
- Added `remote_directory` matchers
|
417
|
+
- Added `route` matchers
|
418
|
+
- Added `subversion` matchers
|
419
|
+
- 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.
|
420
|
+
- 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.
|
421
|
+
- 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.
|
422
|
+
- 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.
|
423
|
+
- Added `stub_node` helper for quickly generating a node object from Fauxhai data
|
424
|
+
- Added `ChefSpec::Runner#apply` command to mimic the behavior of `chef-apply` (use with caution)
|
425
|
+
- Share the `ChefSpec::Runner` object with the Node object
|
426
|
+
- Add `chefspec/berkshelf` for easily integrating specs with Berkshelf (2 & 3)
|
427
|
+
- Add `.at_compile_time` and `.at_converge_time` matchers for asserting which phase of the Chef run a resource should be run
|
346
428
|
|
347
429
|
IMPROVEMENTS:
|
348
|
-
- Move to inline documentation (Yard)
|
349
|
-
- Implement InProcess Aruba testing for ultra-fast tests
|
350
|
-
- Create "examples" directory for testing and demonstration
|
351
|
-
- Unified all failure_messages_for_should
|
352
|
-
- Use `shared_examples` for easily testing defined custom matchers
|
353
|
-
- Infer the `cookbook_path` from the calling spec
|
354
|
-
- Directly set node attributes with Fauxhai (formerly this was an O(n) operation)
|
355
|
-
- Refactored ExpectExpectation to work without stubbing
|
356
|
-
- Use Chef's `resource_collection` to identify resources instead of our own custom proxy
|
357
430
|
|
431
|
+
- Move to inline documentation (Yard)
|
432
|
+
- Implement InProcess Aruba testing for ultra-fast tests
|
433
|
+
- Create "examples" directory for testing and demonstration
|
434
|
+
- Unified all failure_messages_for_should
|
435
|
+
- Use `shared_examples` for easily testing defined custom matchers
|
436
|
+
- Infer the `cookbook_path` from the calling spec
|
437
|
+
- Directly set node attributes with Fauxhai (formerly this was an O(n) operation)
|
438
|
+
- Refactored ExpectExpectation to work without stubbing
|
439
|
+
- Use Chef's `resource_collection` to identify resources instead of our own custom proxy
|
358
440
|
|
359
441
|
## 2.0.1 (August 28, 2013)
|
360
442
|
|
361
443
|
BUG FIXES:
|
362
444
|
|
363
|
-
|
445
|
+
- Add missing second optional parameter to `Hash#respond_to?` monkey patch
|
364
446
|
|
365
447
|
FEATURES
|
366
448
|
|
367
|
-
|
368
|
-
|
449
|
+
- Improve error message when using a regular express
|
450
|
+
- Improve documentation for Python packages
|
369
451
|
|
370
452
|
## 2.0.0 (August 22, 2013)
|
371
453
|
|
372
454
|
Breaking:
|
373
455
|
|
374
|
-
|
456
|
+
- Remove support for REE ([@andrewgross] for the CI)
|
375
457
|
|
376
458
|
BUG FIXES:
|
377
459
|
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
460
|
+
- Better failure message for `create_remote_file` ([@tmatilai])
|
461
|
+
- Add `cookbook_file` as an accepted type to the `create_file` matchers ([@dafyddcrosby])
|
462
|
+
- Ensure formatter is only registered once ([@student])
|
463
|
+
- Signifant README updates ([@phoolish])
|
464
|
+
- Fix `described_recipe` helper (S.R.Garcia)
|
465
|
+
- Refactor Chef 10/11 template rendering ([@sethvargo])
|
466
|
+
- Fix CI ([@sethvargo])
|
467
|
+
- Match File actions as an array ([@sethvargo])
|
386
468
|
|
387
469
|
FEATURES:
|
388
470
|
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
471
|
+
- Extend `ruby_block` matcher to accept regular expressions ([@ssimeonov])
|
472
|
+
- Add `create_remote_file_if_missing` matcher ([@jimhopp])
|
473
|
+
- Extend `execute` matcher to accept regular expressions ([@eliaslevy])
|
474
|
+
- Add ability to expect exceptions during a run ([@student])
|
475
|
+
- Add regular expression support for resource names ([@mapleoin])
|
476
|
+
- Add support for `python_pip` LWRP ([@mapleoin])
|
395
477
|
|
396
478
|
## 1.3.1 (June 10, 2013)
|
397
479
|
|
398
480
|
BUG FIXES:
|
399
481
|
|
400
|
-
|
482
|
+
- Allow the user to override `cookbook_path` again
|
401
483
|
|
402
484
|
## 1.3.0 (June 6, 2013)
|
403
485
|
|
404
486
|
FEATURES:
|
405
487
|
|
406
|
-
|
407
|
-
|
408
|
-
- New `described_recipe` and `described_cookbook` helpers to keep your specs
|
409
|
-
DRY (#140). Thanks Andrey Chernih.
|
488
|
+
- Added the ability to evaluate `only_if` and `not_if` conditional guards and support for stubbing shell guards (#142, #144).
|
489
|
+
- New `described_recipe` and `described_cookbook` helpers to keep your specs DRY (#140). Thanks Andrey Chernih.
|
410
490
|
|
411
491
|
BUG FIXES:
|
412
492
|
|
413
|
-
|
414
|
-
Chernih.
|
493
|
+
- Ensure that Ohai plugin reloader works with ChefSpec (#141). Thanks Andrey Chernih.
|
415
494
|
|
416
495
|
## 1.2.0 (May 16, 2013)
|
417
496
|
|
418
497
|
FEATURES:
|
419
498
|
|
420
|
-
|
421
|
-
|
499
|
+
- Add support for partial files (@RanjibDey)
|
500
|
+
- Automatically check certain directories for cookbooks (@sethvargo)
|
422
501
|
|
423
502
|
## 1.1.0 (May 10, 2013)
|
424
503
|
|
425
504
|
FEATURES:
|
426
505
|
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
506
|
+
- Upgrade to newest version of fauxhai (@tmatilai)
|
507
|
+
- Make `find_resource` a public method (@adamhjk)
|
508
|
+
- Add path support (from fauxhai) (@RanjibDey)
|
509
|
+
- Custom Chef formatter for ChefSpec (removes pesky output) (@sethvargo)
|
431
510
|
|
432
511
|
BUG FIXES:
|
433
512
|
|
434
|
-
|
513
|
+
- Remove pesky output from Chef 11
|
435
514
|
|
436
515
|
## 1.0.0 (April 22, 2013)
|
437
516
|
|
438
517
|
FEATURES:
|
439
518
|
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
BUG FIXES:
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
519
|
+
- Add support for matching file content using Regular Expressions (@ketan)
|
520
|
+
- Add support for `ruby_block` matcher (Andrey Vorobiev)
|
521
|
+
- Use Fauxhai for node attributes (see 4529c10)
|
522
|
+
- Moved `test` and `development` into gemspec for transparency
|
523
|
+
- Improve message logging and testing (@tmatilai)
|
524
|
+
- Chef 11 compatibility (still Chef 10 compatible)
|
525
|
+
- Accept and document new RSpec "expect" syntax
|
526
|
+
- Attribute matchers for various providers (@bjoernalbers)
|
527
|
+
- Add execute_{bash,csh,perl,python,ruby}_script matchers ([@mlafeldt])
|
528
|
+
- Add group and user resource matchers (@gildegoma)
|
529
|
+
- Add support for `yum_package` (Justin Witrick)
|
530
|
+
- Add ISSUES.md
|
531
|
+
- Add CONTRIBUTING.md
|
532
|
+
- Relax gemspec constraints (@juliandunn)
|
533
|
+
- Improve documentation and examples
|
534
|
+
|
535
|
+
BUG FIXES:
|
536
|
+
|
537
|
+
- Fix Rubygems/Bundler 2.0 compatibility issues
|
538
|
+
- Upgrade to newest RSpec
|
539
|
+
- Fix Chef 11 incompatibility
|
540
|
+
- Various documentation fixes
|
462
541
|
|
463
542
|
## 0.9.0 (November 10, 2012)
|
464
543
|
|
465
544
|
FEATURES:
|
466
545
|
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
Becciu and Jim Hopp.
|
486
|
-
- Style fix for the README (#55). Thanks Greg Karékinian.
|
487
|
-
- Ensure notification assertions work where the resource name contains
|
488
|
-
brackets (#57). Thanks Sean Nolen.
|
489
|
-
- Unit tests updated to explicitly specify attribute precedence as required
|
490
|
-
from Chef 11 (#70). Thanks Mathias Lafeldt.
|
491
|
-
- Documentation added to the README for the `create_remote_file` matcher
|
492
|
-
(#71). Thanks Mathias Lafeldt.
|
493
|
-
- Clarify that `create_file_with_content` matches on partial content (#72).
|
494
|
-
Thanks Mathias Lafeldt.
|
546
|
+
- Support added for the `user` resource (#6). Thanks Ranjib Dey.
|
547
|
+
- Support for making assertions about notifications added (#49). Thanks to Ranjib Dey.
|
548
|
+
- New `include_recipe` matcher added (#50). Thanks Ranjib Dey.
|
549
|
+
- Support added for the Windows `env` resource (#51). Thanks Ranjib Dey.
|
550
|
+
- Convenience methods for common resources added to `ChefRunner` (#51). Thanks Ranjib Dey.
|
551
|
+
- Further resource convenience methods added (#60). Thanks to Ketan Padegaonkar.
|
552
|
+
- Support for the `:disable` action added to the service resource (#67). Thanks to Chris Lundquist.
|
553
|
+
- Add a matcher to assert that a service is not running on boot (#58). Thanks to Ketan Padegaonkar.
|
554
|
+
- Support added for the `chef_gem` resource (#74). Thanks to Jim Hopp.
|
555
|
+
|
556
|
+
BUG FIXES:
|
557
|
+
|
558
|
+
- Avoid failure if template path is not writable (#48). Thanks to Augusto Becciu and Jim Hopp.
|
559
|
+
- Style fix for the README (#55). Thanks Greg Karékinian.
|
560
|
+
- Ensure notification assertions work where the resource name contains brackets (#57). Thanks Sean Nolen.
|
561
|
+
- Unit tests updated to explicitly specify attribute precedence as required from Chef 11 (#70). Thanks Mathias Lafeldt.
|
562
|
+
- Documentation added to the README for the `create_remote_file` matcher (#71). Thanks Mathias Lafeldt.
|
563
|
+
- Clarify that `create_file_with_content` matches on partial content (#72). Thanks Mathias Lafeldt.
|
495
564
|
|
496
565
|
## 0.8.0 (September 14, 2012)
|
497
566
|
|
498
567
|
FEATURES:
|
499
568
|
|
500
|
-
|
501
|
-
|
502
|
-
implementation](https://github.com/sethvargo/chefspec/tree/v0.8.0#writing-examples-for-lwrps).
|
503
|
-
Thanks to Augusto Becciu for implementing this feature.
|
504
|
-
- Updated for compatibility with Chef 10.14. Thanks Augusto Becciu.
|
569
|
+
- 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.
|
570
|
+
- Updated for compatibility with Chef 10.14\. Thanks Augusto Becciu.
|
505
571
|
|
506
572
|
BUG FIXES:
|
507
573
|
|
508
|
-
|
509
|
-
Thanks Augusto Becciu.
|
574
|
+
- Template paths are no longer hard-coded to live under `default` (#32). Thanks Augusto Becciu.
|
510
575
|
|
511
576
|
## 0.7.0 (August 27, 2012)
|
512
577
|
|
513
578
|
FEATURES:
|
514
579
|
|
515
|
-
|
516
|
-
|
517
|
-
[bumped to 2.11](https://github.com/rspec/rspec-core/blob/b8197262d143294bf849ab58d1586d24537965ab/Changelog.md)
|
518
|
-
which has
|
519
|
-
[named subject](http://blog.davidchelimsky.net/2012/05/13/spec-smell-explicit-use-of-subject/)
|
520
|
-
support (#37). Thanks Doug Ireton.
|
580
|
+
- Cron resource support added (#33). Thanks Alexander Tamoykin.
|
581
|
+
- 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.
|
521
582
|
|
522
583
|
BUG FIXES:
|
523
584
|
|
524
|
-
|
525
|
-
Knerr.
|
585
|
+
- Correctly infer the default `cookbook_path` on Windows (#38). Thanks Torben Knerr.
|
526
586
|
|
527
587
|
## 0.6.1 (June 21, 2012)
|
528
588
|
|
529
589
|
FEATURES:
|
530
590
|
|
531
|
-
|
532
|
-
[release of Chef 10.12.0](http://www.opscode.com/blog/2012/06/19/chef-10-12-0-released/)
|
533
|
-
the Chef versioning scheme has changed to make use of the major version
|
534
|
-
field. The constraint on chef is now optimistic. Thanks to Robert J. Berger
|
535
|
-
of Runa.com for flagging this issue (#28).
|
591
|
+
- 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).
|
536
592
|
|
537
593
|
## 0.6.0 (May 31, 2012)
|
538
594
|
|
539
595
|
FEATURES:
|
540
596
|
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
to Jim Hopp (#23).
|
546
|
-
- Matchers added for the `link` resource. Thanks to James Burgess (#25).
|
547
|
-
- Matchers added for the `remote_file` resource. Thanks to Matt Pruitt (#26).
|
597
|
+
- Service matchers extended to add support for the `:nothing` and `:enabled` actions. Thanks to Steve Lum (#20).
|
598
|
+
- 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).
|
599
|
+
- Matchers added for the `link` resource. Thanks to James Burgess (#25).
|
600
|
+
- Matchers added for the `remote_file` resource. Thanks to Matt Pruitt (#26).
|
548
601
|
|
549
602
|
## 0.5.0 (February 20, 2012)
|
550
603
|
|
551
604
|
FEATURES:
|
552
605
|
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
-
|
606
|
+
- Thanks to Chris Griego and Morgan Nelson for these improvements:
|
607
|
+
|
608
|
+
- Support both arrays and raw symbols for actions in the file content matcher (#14).
|
609
|
+
- Add support for cookbook_file resources (#14).
|
610
|
+
|
611
|
+
- Support added for `gem_package` resources. Thanks to Jim Hopp from Lookout (#16).
|
557
612
|
|
558
613
|
BUG FIXES:
|
559
614
|
|
560
|
-
|
615
|
+
- Set the client_key to nil so that Chef::Search::Query.new doesn't raise (#14). Thanks Chris Griego and Morgan Nelson.
|
561
616
|
|
562
617
|
## 0.4.0 (November 14, 2011)
|
563
618
|
|
564
619
|
FEATURES:
|
565
620
|
|
566
|
-
|
567
|
-
|
568
|
-
sufficiently minor and unlikely to break existing specs that I'm not bumping the major version. Thanks Chris Griego
|
569
|
-
and Morgan Nelson from getaroom.
|
621
|
+
- Ruby 1.9.3 is now supported.
|
622
|
+
- 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.
|
570
623
|
|
571
624
|
BUG FIXES:
|
572
625
|
|
573
|
-
|
574
|
-
explicitly specified (#13). Thanks Chris Griego and Morgan Nelson from getaroom.
|
626
|
+
- 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.
|
575
627
|
|
576
628
|
## 0.3.0 (October 2, 2011)
|
577
629
|
|
578
630
|
FEATURES:
|
579
631
|
|
580
|
-
|
581
|
-
|
632
|
+
- [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.
|
633
|
+
- [Knife plugin](https://www.relishapp.com/sethvargo/chefspec/docs/generate-placeholder-examples) added to generate placeholder examples.
|
582
634
|
|
583
635
|
## 0.2.1 (September 21, 2011)
|
636
|
+
|
584
637
|
BUG FIXES:
|
585
638
|
|
586
|
-
|
639
|
+
- Fixed typo in 0.2.0 botched release. Pro-tip: run your tests.
|
587
640
|
|
588
641
|
## 0.2.0 (September 21, 2011)
|
589
642
|
|
590
643
|
FEATURES:
|
591
644
|
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
645
|
+
- Significantly improved performance by not invoking OHAI.
|
646
|
+
- ChefRunner constructor now accepts a block to set node attributes.
|
647
|
+
- ChefRunner constructor now takes an options hash.
|
648
|
+
- Converge now returns a reference to the ChefRunner to support calling converge in a let block.
|
596
649
|
|
597
650
|
BUG FIXES:
|
598
651
|
|
599
|
-
|
600
|
-
|
601
|
-
|
652
|
+
- Removed LWRP redefinition warnings.
|
653
|
+
- Reset run_list between calls to converge.
|
654
|
+
- Readable to_s output for failed specs.
|
602
655
|
|
603
656
|
## 0.1.0 (August 9, 2011)
|
604
657
|
|
605
658
|
FEATURES:
|
606
659
|
|
607
|
-
|
608
|
-
|
660
|
+
- Support for Chef 0.1.x (#2)
|
661
|
+
- Support MRI 1.9.2 (#3)
|
609
662
|
|
610
663
|
BUG FIXES:
|
611
664
|
|
612
|
-
|
665
|
+
- Added specs.
|
613
666
|
|
614
667
|
## 0.0.2 (July 31, 2011)
|
615
668
|
|
616
669
|
BUG FIXES:
|
617
670
|
|
618
|
-
|
671
|
+
- Corrected gem dependencies.
|
619
672
|
|
620
673
|
## 0.0.1 (July 31, 2011)
|
621
674
|
|
622
675
|
Initial version.
|
623
676
|
|
624
|
-
|
625
|
-
|
626
|
-
[@
|
627
|
-
[@
|
628
|
-
[@
|
629
|
-
[@
|
630
|
-
[@
|
631
|
-
[@
|
632
|
-
[@geraud]:
|
633
|
-
[@
|
634
|
-
[@
|
635
|
-
[@
|
636
|
-
[@
|
637
|
-
[@
|
638
|
-
[@rteabeault]:
|
639
|
-
[@
|
640
|
-
[@
|
641
|
-
[@
|
642
|
-
[@
|
677
|
+
--------------------------------------------------------------------------------
|
678
|
+
|
679
|
+
[@acrmp]: https://github.com/acrmp "Andrew Crump GitHub"
|
680
|
+
[@andrewgross]: https://github.com/andrewgross "Andrew Gross's GitHub"
|
681
|
+
[@bknowles]: https://github.com/bknowles "Brad Knowles's GitHub"
|
682
|
+
[@dafyddcrosby]: https://github.com/dafyddcrosby "Dafydd Crosby's GitHub"
|
683
|
+
[@dracoater]: https://github.com/DracoAter "Juri Timošin's GitHub"
|
684
|
+
[@eliaslevy]: https://github.com/eliaslevy "eliaslevy's GitHub"
|
685
|
+
[@geraud]: https://github.com/geraud "Geraud Boyer's GitHub"
|
686
|
+
[@jimhopp]: https://github.com/jimhopp "Jim Hopp's GitHub"
|
687
|
+
[@mapleoin]: https://github.com/mapleoin "Ionuț Arțăriși's GitHub"
|
688
|
+
[@mlafeldt]: https://github.com/mlafeldt "Mathias Lafeldt's GitHub"
|
689
|
+
[@phoolish]: https://github.com/phoolish "phoolish's GitHub"
|
690
|
+
[@ranjib]: https://github.com/ranjib "Ranjib Dey's GitHub"
|
691
|
+
[@rteabeault]: https://github.com/rteabeault "rteabeault's GitHub"
|
692
|
+
[@ryotarai]: https://github.com/ryotarai "Ryota Arai's GitHub"
|
693
|
+
[@sethvargo]: https://github.com/sethvargo "Seth Vargo GitHub"
|
694
|
+
[@ssimeonov]: https://github.com/ssimeonov "Simeon Simeonov's GitHub"
|
695
|
+
[@student]: https://github.com/student "Nathan Zook's GitHub"
|
696
|
+
[@tmatilai]: https://github.com/tmatilai "Teemu Matilainen's GitHub"
|