HomePhorge

(maint) spec: allow expectations of resources from compiled manifests
51f729f5ba81Unpublished

Unpublished Commit · Learn More

Repository Importing: This repository is still importing.

Description

(maint) spec: allow expectations of resources from compiled manifests

Add logic to the PuppetSpec::Compiler.apply_compiled_manifest method so that
a spec test can supply a block that processes the single resources
that comprise that catalog that was compiled before it is run in a transaction.

As a proof of concept and general helper, add a apply_with_error_checks method,
that adds an expectation to never send an :err signal to each resource. This
makes spectest debugging much easier, because without expectations,
the transaction will just finish and the only reported error will be that the
end result is not as expected. When the expectation is added to each resource,
rspec will display all resource error messages as failed expectations.

Event Timeline

Felix Frank <Felix.Frank@Alumni.TU-Berlin.de> committed rPU51f729f5ba81: (maint) spec: allow expectations of resources from compiled manifests (authored by Felix Frank <Felix.Frank@Alumni.TU-Berlin.de>).Jun 9 2014, 5:27 PM