-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Only set tasks = true when parsing plans. #266
Conversation
The tests fail because the tested pathname is not the same pattern, so the regex fails. Do you have suggestions @scotje? Fixes puppetlabs#251
if Puppet::Util::Package.versioncmp(Puppet.version, "5.0.0") < 0 && @file.to_s.match(/^plans\//) | ||
log.warn "Skipping #{@file}: Puppet Plans require Puppet 5 or greater." | ||
return | ||
if @file.to_s.match(/^plans\//) |
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.
@scotje this regex fails during testing because it's in the full fixtures directory. If I remove the start-of-string anchor, tests pass, but that's probably not a good solution. Any other ideas?
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.
We should probably extract this test into a helper method and then we can stub that out in the tests
Hey @binford2k just wondering if this is still functionality you are still interested in working on? |
@pmcmaw I'll finish it up next week after kickoff |
Hello @binford2k, there's probably a little more required now to get the PR across the line. What would you like to do? |
Only set tasks = true when parsing plans. The tests fail because the tested pathname is not the same pattern, so the regex fails. Do you have suggestions @scotje?
Fixes #251