Skip to content

Conversation

@ekohl
Copy link
Member

@ekohl ekohl commented Jan 15, 2021

See the individual commits for details.

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
Copy link
Member

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" ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty much yes.

@ekohl ekohl marked this pull request as draft February 2, 2022 13:18
@ekohl
Copy link
Member Author

ekohl commented Sep 26, 2023

Splitting the PR: #422

ekohl added 4 commits May 15, 2024 11:47
When testing the relations in rspec-puppet, it turns out that there are
other classes and they don't match which breaks tests.
@ekohl
Copy link
Member Author

ekohl commented May 15, 2024

Rebased just to see how much of this was still remaining and left out the type tightening.

@ekohl ekohl changed the title Stricter types, more documentation and more tests Add more tests May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants