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

Refactor tests to not test private classes #116

Merged
merged 2 commits into from
Oct 29, 2018

Conversation

ekohl
Copy link
Member

@ekohl ekohl commented Oct 26, 2018

No description provided.

@@ -1,5 +1,6 @@
# Configuration for Candlepin
class candlepin::config {
assert_private()
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 do at runtime?

Copy link
Member Author

Choose a reason for hiding this comment

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

https://github.com/puppetlabs/puppetlabs-stdlib#assert_private is not that clear, but essentially if you include candlepin::config from another module (such as katello) it'll raise an error. I'm not entirely sure about the second commit. Maybe just marking it as @api private in the docs is enough (#117) but this way we can easily revert it.

@ehelms ehelms merged commit fb96c30 into theforeman:master Oct 29, 2018
@ekohl ekohl deleted the private-classes branch October 29, 2018 12:15
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