-
Notifications
You must be signed in to change notification settings - Fork 585
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
Support for data bags in Cookbooks under test #129
Comments
I have some good news for you: data bags and roles are supported! If you create a The work in #124 will only apply to the parent directory for all cookbooks, not for other files and directories. The work underway in #128 changes strategy slightly to dump all files and directories needed for chef-* into a tmpdir before uploading everything in one shot to the instance. Data bags, roles, and encrypted data bag secret files are still supported as before. Would it be useful to support a Thanks! |
Thank you @fnichol, this is exactly what I needed. I'm not sure if an additional path is necessary. I'm not sure what the use case would be for that. Feel free to close this ticket. |
I do believe that a "data_bags_path" and a "roles" path would be very useful to have - this way we can simply point to a location, instead of having to copy the data_bags and roles into "/test/integration/" |
Great - the custom paths are going to be a great help! However, I am running test-kitchen version 1.0.0.alpha.7 and that code is not in that version. What version would I have to install (gem install test-kitchen -v=____ ) |
@ekrupnik sorry, forgot to mention try: |
I have some logic in my LWRP that I'd like to test that requires a data bag. Usually I would accomplish this by setting
chef.data_bags_path
in my Vagrantfile.chef.data_bags_path
property set to the uploaded databags.The text was updated successfully, but these errors were encountered: