rspec-puppet

RSpec tests for your Puppet manifests

View the Project on GitHub rodjek/rspec-puppet

Home

Tutorial

Setup

Matchers

Changelog

Changelog

2.5.0

Headline features are app management, nested hashes in params, and testing for “internal” functions.

Thanks to everyone who contributed: Leo Arnold, Matt Schuchard, and Si Wilkins.

View Diff

Changed

Added

2.4.0

This release now supports testing exported resources in the same way that normal resources in the catalogue are tested. Access them in your examples using exported_resources. See “Testing Exported Resources” in the README for examples.

Thanks to Adrien Thebo, Arthur Gautier, Brett Gray and Nicholas Hinds, as well as all the folks helping out on github for the contributions to this release.

View Diff

Changed

Added

2.3.2

Properly fix yesterday’s issue by unsharing the cache key before passing the data to Puppet. This also contains a new test matrix to avoid missing a half-baked fix.

View Diff

2.3.1

A quick workaround to re-enable testing with the recently released Puppet 3.8.5 and the soon to be released Puppet 4.3.2. See PUP-5743 for the gritty details. Upgrade to this version if you hit the “undefined method `resource’ for nil:NilClass” error.

View Diff

2.3.0

rspec-puppet now supports testing custom types, :undef values in params, structured facts, and checks resource dependencies recursively.

The settings in module_path and manifest are now respected throughout the code base. The former default for module_path (/etc/puppet/modules) was dropped to avoid accidentally poisoning the test environment with unrelated code.

To reduce the maintenance overhead of boilerplate code, rspec-puppet now provides some of the code that rspec-puppet-init deployed in helper files that you can just require instead.

This release also reduces memory usage on bigger testsuites drastically by reducing the caching of compiled catalogues.

Thanks to Adrien Thebo, Alex Harvey, Brian, Dan Bode, Dominic Cleal, Javier Palacios, Jeff McCune, Jordan Moldow, Peter van Zetten, Raphael Pinson, Simon Kohlmeyer, and Tristan Colgate for their contibutions to this release.

View Diff

Changed

Added

Fixed

2.2.0

View Diff

Added

Fixed

2.1.0

View Diff

Added

Fixed

2.0.1

View Diff

Fixed

2.0.0

View Diff

Changed

Added

Fixed

1.0.1

1.0.0

0.1.6

0.1.5

0.1.4

0.1.3

0.1.1

0.1.0

0.0.9

0.0.8

0.0.7

0.0.6

0.0.5

0.0.4

0.0.3

0.0.2