Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(PDK-508) implement autorequire and friends #29

Merged
merged 3 commits into from
Mar 13, 2018

Commits on Mar 13, 2018

  1. (PDK-508) Setup easy testing of test_module

    By pulling in puppetlabs_spec_helper into the main project, we can run
    tests for the `test_module` in the main test suite without friction.
    This makes it easier and quicker to run this kind of tests.
    
    See the next commits for usage.
    
    This requires puppetlabs/puppetlabs_spec_helper#234
    DavidS committed Mar 13, 2018
    Configuration menu
    Copy the full SHA
    5664a99 View commit details
    Browse the repository at this point in the history
  2. (PDK-508) Test class and provider straight from the templates

    This is a separate commit to make it easier to see what was changed
    for the test.
    DavidS committed Mar 13, 2018
    Configuration menu
    Copy the full SHA
    965840a View commit details
    Browse the repository at this point in the history
  3. (PDK-508) implement autorequire and friends

    The spec/classes/autorequire_cycle_spec.rb test shows that the
    autorelations implementation of the Resource API does build relations.
    Since rspec-puppet doesn't provide matching on compile errors, this
    builds a test case that compiles when make_cycle is false, thereby
    proving that there is no error in the manifest, but fails with a
    dependency cycle error when make_cycle is set to true.
    DavidS committed Mar 13, 2018
    Configuration menu
    Copy the full SHA
    8cbec7f View commit details
    Browse the repository at this point in the history