-
Notifications
You must be signed in to change notification settings - Fork 22
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
AMI testing using ServerSpec #6
Comments
This could be useful: https://github.com/envato/ami-spec |
I want to work on this as soon as I've finished implementing scheduled bakes. |
Here's an email I wrote to Simon ages ago containing a vague implementation plan. I think it makes sense to put the specs inside a 'spec' directory inside the corresponding role's directory. That's where I put my one and only sample spec. The idea is for AMIgo to gather all the specs for the roles it's just installed onto an image, spin up an instance and run the specs (possibly using ami-spec, as we discussed). At some point we may want to run some kind of whole-system specs as well as per-role ones, but I'm not worrying about that for now. As for the changes to AMIgo to make this happen, I guess we need at least the following:
|
Here are some reflections on how to run serverspec during the build rather than having to spin up the instance a second time: http://annaken.github.io/testing-packer-builds-with-serverspec |
AMIgo should automatically test all AMIs that it bakes.
Tests would be per-role, defined inside the Ansible role directory. There's an example here
The text was updated successfully, but these errors were encountered: