Closed haf closed 10 years ago
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:
riak::vmargs
:params
:hiera_data
shared_context 'hieradata'
riak::params
riak::vmargs( $absent = hiera('absent', 'false') )
But it seems that the default value from the hiera function overrides everything from within the rspec's hiera_data.
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
Great comback there.
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:
riak::vmargs
class spec's:params
riak::vmargs
class spec's:hiera_data
shared_context 'hieradata'
's:hiera_data
riak::params
riak::vmargs( $absent = hiera('absent', 'false') )
- the default just by the class parameterBut 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: