Age | Commit message (Collapse) | Author | Files | Lines |
|
When the hiera tests were run alone the puppet_backend_spec.rb issued a
warning:
/Users/andy/work/puppet/spec/unit/hiera/backend/puppet_backend_spec.rb:25:
warning: toplevel constant Config referenced by Hiera::Config
The warning was caused by a reference to Hiera::Config where Hiera was
defined, but Hiera::Config was not. This resulted in getting the top
level Config constant and a warning being issued. By requiring
hiera/config this problem is avoided.
|
|
The tests used to have a large amount of duplication around setting
configuration values for Hiera, this extracts them into a common spot
and also removes some of the mocking that was being done in order to
make the tests a little more straightforward and less tied to the
implementation.
|
|
This adds a test around the fix to treat a false value in a hierarchy as
a real value.
|
|
The hiera puppet backend called the include function without passing the
argument as an array. This changes it to call the function correctly.
|
|
This updates the tests to work correctly in the Puppet environment, rather
than running as part of a separate repository and package.
It also moves the examples into a more appropriate location.
Signed-off-by: Daniel Pittman <daniel@puppetlabs.com>
|
|
This patch refactors the parser functions which centralizes hiera
configuration and lookups into a new `HieraPuppet` module.
The spec tests have be reorganized into a better hierarchy.
Updated specs and acceptance tests are included.
|