I'm trying to write tests via rspec-puppet for a new module using datacat, but since datacat_collector doesn't actually evaluate the template until the catalog starts to be applied I can't find a way to assert on my template applying correctly. The file always ends up with the content "To be replaced by datacat_collector[...]".
I'd prefer not to go to a system test with beaker or rspec-system for testing an ERB.
I'm trying to write tests via
rspec-puppetfor a new module usingdatacat, but sincedatacat_collectordoesn't actually evaluate the template until the catalog starts to be applied I can't find a way to assert on my template applying correctly. The file always ends up with the content "To be replaced by datacat_collector[...]".I'd prefer not to go to a system test with beaker or rspec-system for testing an ERB.