Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Hiera resolution issue #3

Closed
haf opened this Issue Aug 29, 2012 · 1 comment

Comments

Projects
None yet
2 participants
Contributor

haf commented Aug 29, 2012

I'm trying to unit-test using this gem...

Have a look at this

https://github.com/haf/puppet-riak/blob/9f7c95cdc46019af9503717b07a928e63d9d9857/spec/classes/vmargs_spec.rb#L26

This is the order in which I expect hiera to choose values:

  1. From riak::vmargs class spec's :params
  2. From riak::vmargs class spec's :hiera_data
  3. From shared_context 'hieradata''s :hiera_data
  4. From riak::params
  5. From riak::vmargs( $absent = hiera('absent', 'false') ) - the default just by the class parameter

But it seems that the default value from the hiera function overrides everything from within the rspec's hiera_data.

Perhaps @haus could have a look at this as well?

I might be doing something wrong...

To try it:

bundle
bundle exec rake specs

@amfranz amfranz closed this Jul 24, 2014

Contributor

haf commented Jul 24, 2014

Great comback there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment