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

haf opened this Issue Aug 29, 2012 · 1 comment


None yet
2 participants

haf commented Aug 29, 2012

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

Have a look at this


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 exec rake specs

@amfranz amfranz closed this Jul 24, 2014


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