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

rspec-puppet v4.0 breaks onceover #330

Open
stephenCSE opened this issue Oct 11, 2023 · 1 comment
Open

rspec-puppet v4.0 breaks onceover #330

stephenCSE opened this issue Oct 11, 2023 · 1 comment

Comments

@stephenCSE
Copy link

The rpec-puppet option 'parser' is no longer valid. The option is set the template spec_helper.rb.erb This causes onceover to break on systems that use the default pdk Gemfile.

https://github.com/dylanratcliffe/onceover/blob/cf42f96c2a6df6c92fc682120de3848a8ec733de/templates/spec_helper.rb.erb#L22

workaround:
Add the following to Gemfile
gem "rspec-puppet",'< 4.0.0', require: false

@ChrLau
Copy link

ChrLau commented Dec 7, 2023

Same for trusted_server_facts. That got remove starting with Puppet 6.x.
https://github.com/dylanratcliffe/onceover/blob/cf42f96c2a6df6c92fc682120de3848a8ec733de/templates/spec_helper.rb.erb#L26

And to potentially make Google pick up this issue, we see the following error messages in our Pipeline:

Failure/Error: c.parser                = 'future'
NoMethodError:
  undefined method `parser=' for #<RSpec::Core::Configuration:0x000055eba0546078>
Failure/Error: c.trusted_server_facts  = true
NoMethodError:
  undefined method `trusted_server_facts=' for #<RSpec::Core::Configuration:0x000055f50b9fe7e0>

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

No branches or pull requests

2 participants