summaryrefslogtreecommitdiff
path: root/spec/unit/hiera/backend
AgeCommit message (Collapse)AuthorFilesLines
2013-02-25(Maint) Require Hiera::Config to avoid warningAndrew Parker1-0/+1
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.
2012-11-15(Maint) Remove duplication and mocking from testsAndrew Parker1-45/+39
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.
2012-11-15(#16178) Add test for behavior of false values in lookupAndrew Parker1-2/+15
This adds a test around the fix to treat a false value in a hierarchy as a real value.
2012-09-11(#15756) Call include function correctlyAndrew Parker1-1/+1
The hiera puppet backend called the include function without passing the argument as an array. This changes it to call the function correctly.
2012-09-05Clean up the Hiera Puppet integration.Daniel Pittman1-123/+120
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>
2012-06-23(#15184) Refactor parser functionsKelsey Hightower1-0/+143
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.