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

Allow for stepdown of minor versions #53

Merged
merged 6 commits into from
Jul 25, 2017
Merged

Allow for stepdown of minor versions #53

merged 6 commits into from
Jul 25, 2017

Conversation

cyberious
Copy link

No description provided.

@DavidS
Copy link
Contributor

DavidS commented Jul 20, 2017

Puppet Inc is currently working on getting updated facts for all supported platforms and facter versions into facterdb, and providing timely updates in the future. I would prefer the stepdown here not be merged, as it will become obsolete within the next few days.

@cyberious
Copy link
Author

Except for the next release we will end up with the same week delay.

HelenCampbell pushed a commit to HelenCampbell/puppetlabs-mysql that referenced this pull request Jul 21, 2017
Due to voxpupuli/rspec-puppet-facts#53 some of our unti tests are failing
on Travis. This fix averts these errors for the meantime while still running the same test.
@cyberious
Copy link
Author

Can we get an answer on this. It is still blocking some of my users.

Travis Fields and others added 4 commits July 25, 2017 09:48
- FacterDB has not been updated and might not be updated regularly to meet the need of new versions drop
  this will allow the system to find the previous minor version but not cross major versions
- Test will only be exercised if the FACTER_GEM_VERSION is ~> 2.0
This fixes a syntax error in a code example, and formatting of the last
section.
@DavidS
Copy link
Contributor

DavidS commented Jul 25, 2017

I've removed the version bump, and added an implementation for #54 . Please review & merge.

cc @rodjek @raphink

@@ -161,6 +178,13 @@ def self.spec_facts_os_filter
ENV['SPEC_FACTS_OS']
end

# If SPEC_FACTS_STRICT is set to `yes`, RspecPuppetFacts will error on missing FacterDB entries, instead of warning & skipping.
# @return [nil,String]
Copy link
Member

Choose a reason for hiding this comment

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

Returned data type should always be a boolean

# @return [nil,String]
# @api private
def self.spec_facts_strict?
ENV['SPEC_FACTS_STRICT'] == 'yes'

Choose a reason for hiding this comment

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

Rather than needing specifically 'yes', could this be set to anything (or set to anything that isn't 'no')?

@@ -161,6 +178,13 @@ def self.spec_facts_os_filter
ENV['SPEC_FACTS_OS']
end

# If SPEC_FACTS_STRICT is set to `yes`, RspecPuppetFacts will error on missing FacterDB entries, instead of warning & skipping.

Choose a reason for hiding this comment

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

This says 'skipping' but the behaviour is to attempt to use an older version of facts; so 'skipping' may be misleading

@voxpupuli voxpupuli deleted a comment from coveralls Jul 25, 2017
@voxpupuli voxpupuli deleted a comment from coveralls Jul 25, 2017
@voxpupuli voxpupuli deleted a comment from coveralls Jul 25, 2017
@voxpupuli voxpupuli deleted a comment from coveralls Jul 25, 2017
@voxpupuli voxpupuli deleted a comment from coveralls Jul 25, 2017
@voxpupuli voxpupuli deleted a comment from coveralls Jul 25, 2017
@voxpupuli voxpupuli deleted a comment from coveralls Jul 25, 2017
Folks with high confidence needs can use this to elide the permissive
behaviour.
This is entirely rspec-puppet-facts code, and should not depend on
facter, or FacterDB
@voxpupuli voxpupuli deleted a comment from coveralls Jul 25, 2017
@voxpupuli voxpupuli deleted a comment from coveralls Jul 25, 2017
@voxpupuli voxpupuli deleted a comment from coveralls Jul 25, 2017
@voxpupuli voxpupuli deleted a comment from coveralls Jul 25, 2017
@coveralls
Copy link

coveralls commented Jul 25, 2017

Coverage Status

Coverage remained the same at 100.0% when pulling 579eb66 on cyberious:facter_2_5 into f2f543b on mcanevet:master.

@rodjek rodjek merged commit 8585c59 into voxpupuli:master Jul 25, 2017
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.

5 participants