ChefSpec Gotcha: Using
render_file When Deleting Files (2 mins read).
How to use
render_file with ChefSpec when you're deleting the file.
Chef Attributes and
default.rb - it's in the name (3 mins read).
Why you should only be setting defaults in your Chef attributes, and moving heavy lifting elsewhere.
A directory structure I've found quite useful for writing ChefSpec tests for custom resources, by creating a fake cookbook within the cookbook you're testing.
Finding out that a
nil gets silently coerced to an empty
Hash if given to a custom resource's property of type
Chef 14: ChefSpec Coverage Reporting Deprecation (1 mins read).
Noting the deprecation of using
ChefSpec::Coverage.start! when using Chef 14 and above.
The updated error message returned by a Chef
ValidationFailed error, when you're specifying which properties are
required on a custom resource.
Using the example of deploying and running a Java JAR file as a way to show the lifecycle of a fully test-driven Chef cookbook.
ruby_blocks with ChefSpec (3 mins read).
Testing implementation of a
ruby_block in ChefSpec, to ensure that the code executes as expected.
Chef 13 Upgrade: Lessons Learnt and Documented for Posterity (1 mins read).
Notes on the main problems encountered when upgrading from Chef 12 to Chef 13, both with ChefSpec and Rubocop.
How to resolve the
Parenthesize the param render_file Rubocop error when upgrading your cookbook to Chef 13.
Chef 13 Upgrade: Testing
ruby_blocks with ChefSpec (1 mins read).
block.block.call to trigger
ruby_blocks within ChefSpec 7 and Chef 13.
Permission Denied when running ChefSpec (3 mins read).
How to handle getting an
EACCES when trying to run ChefSpec on a recipe.
include_recipes with Chef and ChefSpec (2 mins read).
How to best test
include_recipes within your Chef recipes, as well as how to ensure that you aren't running any dependent recipes in your tests.
You're currently viewing page 1 of 1, of 14 posts.