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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate Policyfiles on the fly #1768

Open
tas50 opened this issue Jun 23, 2021 · 0 comments
Open

Generate Policyfiles on the fly #1768

tas50 opened this issue Jun 23, 2021 · 0 comments
Labels

Comments

@tas50
Copy link
Member

tas50 commented Jun 23, 2021

馃懟 Brief Description

Right now to test a cookbook with Test Kitchen you need either a Berksfile or a Policyfile. These need to be included just for depsolving in test. We can make this happen automatically with a bit of work, which would make using Test Kitchen easier and reduce boilerplate code in cookbooks, which is always a good thing.

Scenarios:

Berksfile in the cookbook

Do what we've always done. Use that berksfile for depsolving

Policyfile in the cookbook

Do what we've always done. Use that Policyfile for depsolving

No Berksfile or Policyfile

Magic starts! Generate a policyfile that includes everything in test/cookbooks and includes the run_list specified in the kitchen.yml config. This lets a user just specify a run_list in the kitchen.yml and have it work with the included test cookbook without additional work or boilerplate code.

@tas50 tas50 added the Bug label Jun 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant