Hiera resolution issue
haf opened this issue · comments
Henrik Feldt commented
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:
- From
riak::vmargs
class spec's:params
- From
riak::vmargs
class spec's:hiera_data
- From
shared_context 'hieradata'
's:hiera_data
- From
riak::params
- 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
Henrik Feldt commented
Great comback there.