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
Chefspec not working with policyfiles on chef server #934
Comments
🤔 I suspect |
I work around the issue with the following in my
|
Update for Chef Workstation users: the workaround that @klas-s mentioned needs to be updated to:
We moved the location of the |
This was referenced Mar 7, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This has been tested on three developer machines running:
When having dependent cookbooks in the policyfile and importing the
chefspec/policyfile
gem the rspec tests fail with:The following commands work no problem
chef install
,chef update
and kitchen tests run with no problem.I have tried numerous cookbooks, and even a different version of chefdk (it was
3.1.0
and I upgraded to3.3.23
) but the results are the same:spec_helper.rb
Policyfile (anonymized)
First reported in the chef community slack and was advised to raise a bug report.
The text was updated successfully, but these errors were encountered: