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

Use rspec-puppet-augeas #64

Open
raphink opened this issue Dec 9, 2013 · 4 comments
Open

Use rspec-puppet-augeas #64

raphink opened this issue Dec 9, 2013 · 4 comments
Labels
enhancement New feature or request

Comments

@raphink
Copy link
Member

raphink commented Dec 9, 2013

Using rspec-puppet-augeas is the first step towards splitting this project.

This step should allow us to get rid of specific rspec extensions in the project, so that any module using augeasproviders can write type/provider specs using rspec-puppet-augeas.

@gregswift
Copy link
Contributor

So until this is done.. how do you test when using augeasproviders?

02:21:35   1) profile_compliance::controls::auditlog with defaults for all parameters should contain Class[auditd]
02:21:35      Failure/Error: it { should contain_class('auditd') }
02:21:35      Puppet::Error:
02:21:35        Could not autoload puppet/type/pam: Could not autoload puppet/provider/pam/augeas: undefined method `provider' for nil:NilClass on node cit-jenkins-n02.staging.ord1.cit.rackspace.net
02:21:35      # ./spec/fixtures/modules/augeasproviders_pam/lib/puppet/provider/pam/augeas.rb:6
02:21:35      # ./spec/fixtures/modules/augeasproviders_pam/lib/puppet/type/pam.rb:6
02:21:35      # ./spec/classes/controls/auditlog_spec.rb:16

@domcleal
Copy link
Contributor

@gregswift check that you have the augeasproviders_core module present, the stack trace suggests it can't load the augeasproviders type.

This ticket's about refactoring ap's own tests.

@gregswift
Copy link
Contributor

Ahh... that was it. and explains why i couldnt find any other examples... i saw that augeasproviders_pam was included.

For hijack, sorry I miss read the 'any module using augeasproviders can write type/provider specs using rspec-puppet-augeas' in the raphink's text.

@raphink
Copy link
Member Author

raphink commented May 18, 2016

You should find other examples… See https://github.com/camptocamp/puppet-varnish or https://github.com/camptocamp/puppet-openldap

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants