Skip to content

How to test datacat_collector with rspec-puppet (was: How should modules using datacat be tested?) #28

Description

@nhinds

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions