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

(MODULES-3872) add acceptance test for manage_repo param #173

Conversation

MosesMendoza
Copy link

This commit adds tests to the acceptance test suite in class_spec.rb for
confirming that the manage_repo parameter does, in fact, do what it says.
Specifically, we test that puppet created the repo by applying the
'puppet_agent' class with no params (implying default value of true for
manage_repo) and then specifically ensuring the repo present with puppet and
catching (failing) on any resultant changes. Then we remove the repo
configuration and apply the puppet agent class again but with manage_repo => false, and ensure that the repo configs are not re-created (again by catching
changes).

@MosesMendoza MosesMendoza force-pushed the MODULES-3953/master/acceptance_for_manage_repo_param branch from 9ad396b to 7a3d562 Compare October 11, 2016 00:07
@MosesMendoza MosesMendoza changed the title (MODULES-3953) add acceptance test for manage_repo param (MODULES-3872) add acceptance test for manage_repo param Oct 11, 2016
@MosesMendoza
Copy link
Author

Relevant output from a run against a rhel agent: https://gist.github.com/MosesMendoza/c35cc6d5b3b9fcdb21924161c88b214c

This commit adds tests to the acceptance test suite in `class_spec.rb` for
confirming that the manage_repo parameter does, in fact, do what it says.
Specifically, we test that puppet created the repo by applying the
'puppet_agent' class with no params (implying default value of true for
`manage_repo`) and then specifically ensuring the repo present with puppet and
catching (failing) on any resultant changes. Then we remove the repo
configuration and apply the puppet agent class again but with `manage_repo =>
false`, and ensure that the repo configs are not re-created (again by catching
changes).
@MosesMendoza MosesMendoza force-pushed the MODULES-3953/master/acceptance_for_manage_repo_param branch from 7a3d562 to 4bb954d Compare October 11, 2016 00:44
@MosesMendoza
Copy link
Author

Relevant output from a run against an ubuntu agent: https://gist.github.com/MosesMendoza/5a81d5a2842598a5f195c5db99831ccb

@puppetcla
Copy link

CLA signed by all contributors.

Copy link
Contributor

@highb highb left a comment

Choose a reason for hiding this comment

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

👍 thanks for fixing this

@highb highb merged commit a048349 into puppetlabs:master Oct 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants