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-8318) Update rspec-puppet, add yumrepo_core fixtures for puppet 6 #348

Merged
merged 2 commits into from Dec 10, 2018

Conversation

caseywilliams
Copy link
Contributor

@caseywilliams caseywilliams commented Dec 7, 2018

There are two commits here, both of which are updates to dependencies:

  • Update rspec-puppet (2.6.9 to 2.7.2)
  • Add yumrepo_core as a fixture to support running spec tests with puppet 6 gems (which can't manage yumrepo resources without the module)

yumrepo was removed from puppet 6 and is now bundled with AIO
puppet-agents as the yumrepo_core module. The puppet 6 gem, however,
cannot manage yumrepo resources out of the box; Adding yumrepo_core as a
fixture allows spec tests to pass with the puppet gem at version 6+.
@caseywilliams caseywilliams force-pushed the MODULES-8318/update-specs branch 2 times, most recently from dc4dd99 to d1859e4 Compare December 7, 2018 19:48
@caseywilliams caseywilliams changed the title (MODULES-8318) Update spec tests; Remove their puppet 3 support (MODULES-8318) Update rspec-puppet, add yumrepo_core fixtures for puppet 6 Dec 7, 2018
@puppetcla
Copy link

CLA signed by all contributors.

@ScottGarman ScottGarman merged commit 6d501f2 into puppetlabs:1.x Dec 10, 2018
@@ -11,5 +11,7 @@ fixtures:
apt:
repo: "puppetlabs/apt"
ref: "2.3.0"
yumrepo_core:
repo: "puppetlabs/yumrepo_core"
Copy link
Contributor

Choose a reason for hiding this comment

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

FYI it's possible to make this conditional for 6.0 and up only, see puppetlabs/puppetlabs_spec_helper#258. I don't think this PR needs to change (since the latest version of yumrepo_core supports older puppet versions), but just something to keep in mind in the future.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks! I didn't know that -- I think I'll make a followup PR to do that, just in case.

@caseywilliams caseywilliams deleted the MODULES-8318/update-specs branch December 11, 2018 00:07
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.

None yet

5 participants