rodjek / rspec-puppet

RSpec tests for your Puppet manifests
http://rspec-puppet.com
MIT License
362 stars 202 forks source link

Set up loaders so that 4.x functions resolve properly #825

Closed binford2k closed 3 years ago

binford2k commented 3 years ago

This will allow the user to test classes using deferred 4.x functions, such as:

class deferred_functions {
  notify { 'message':
    message => Deferred(
                   'inline_epp',
                   [
                     'VAULT_VALUE=<%= unwrap($secret) %>',
                     {'secret'=> Sensitive('a thing') }
                   ]
               )
  }
}

Fixes #782

See https://tickets.puppetlabs.com/browse/PDK-1715 for more info.

Co-authored-by: Josh Cooper joshcooper@users.noreply.github.com

jpogran commented 3 years ago

I think we can ignore the ruby 2.1 travis failure and ticket updating the test matrix

binford2k commented 3 years ago

@jpogran if we do that, then this PR unintentionally drops support for earlier Puppet versions. I should probably update it to load conditionally instead.