-
Notifications
You must be signed in to change notification settings - Fork 39
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
Add more tests #313
base: master
Are you sure you want to change the base?
Add more tests #313
Conversation
if ca_resource && ca_resource.class.to_s != 'Puppet::Type::Ca' | ||
raise ArgumentError, "Expected Ca resource, got #{ca_resource.class} #{ca_resource.inspect}" | ||
if ca_resource | ||
# rspec-puppet presents Puppet::Resource instances |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does this comment mean? Is this like "we have to do the next line because of our test infrastructure" ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pretty much yes.
Splitting the PR: #422 |
When testing the relations in rspec-puppet, it turns out that there are other classes and they don't match which breaks tests.
Rebased just to see how much of this was still remaining and left out the type tightening. |
See the individual commits for details.