-
Notifications
You must be signed in to change notification settings - Fork 18
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
Add include_legacy_facts setting #41
Add include_legacy_facts setting #41
Conversation
Hey thank you for this. I think you might need to rebase as your PR contains a commit from @binford2k (unless I'm missing something). Also could you add a bit more of a description to the PR as it helps with triage. Thank you 😊 |
e422745
to
57620ec
Compare
rebased - this might have come from the old repository. I have just migrate to puppetlabs/rpsec-puppet. |
Added some more description |
Sadly it doesn't really with. I will convert to draft. |
Stupid me is using
and not
There this change would have no affect. |
This may still be a good idea, but we should teach rspec-puppet-facts and FacterDB about non-legacy-factsets. If rspec-puppet-facts looks at the setting, that would make it nicely integrated. |
@@ -60,6 +60,7 @@ def self.current_example | |||
c.add_setting :fixture_hiera_configs, :default => {} | |||
c.add_setting :use_fixture_spec_hiera, :default => false | |||
c.add_setting :fallback_to_default_hiera, :default => true | |||
c.add_setting :include_legacy_facts, :default => true |
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.
I think the default could/should depend on Puppet.version
.
@@ -204,6 +204,11 @@ def context_double(options = {}) | |||
|
|||
let(:test_context) { double :environment => 'rp_env' } | |||
|
|||
it 'sets Puppet[:strict_variables] to false by default' do |
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.
Copy and paste error?
Well it is my first PR here. I hope this is correct. Please tell if I need to change anything.
I would like to enable the setting
include_legacy_facts
. We would like to be able to test the code for legacy facts since we already would like to make our code puppet 8 compatible.Default value would be
true
and could be changed via: