amfranz / rspec-hiera-puppet

Hiera fixtures for puppet-rspec tests.
MIT License
15 stars 32 forks source link

gem rspec-puppet 1.0.1 breaks rspec-hiera-puppet #11

Closed hurrycaine closed 10 years ago

hurrycaine commented 10 years ago

I am not sure with which version of rspec-puppet the break first occurs but the 1.0.1 does not work (unit tests), 0.1.6 does work.

The error

Error: Error from DataBinding 'hiera' while looking up 'first parameter ' : no implicit conversion of Hash into String on node XXXXXX

It does not matter if the parameter is using hiera or not, you can even take out all mention of hiera and you will still get the error as long as long as spec_helper.rb contains require 'rspec-hiera-puppet'.

Googling this error it seems this is one of those errors that gives you bad info and misdirects, it has nothing to do with hash but a badly formed hiera file.... at least in the context of getting this on a normal puppet apply and not a unit test.