In test-kitchen, is there a way to update the instance created instead of destroying and recreating the instance every time? Say if I change in kitchen.yml and want to see that change, running the whole destroy/create can take a while.
Depending on the provider you are using - yes.
First, there are a few lifecycle steps:
kitchen create - this will create the instance. It's the equivalent of vagrant up --no-provision.kitchen converge - this will converge (provision) the instance. It's the equivalent of vagrant provision.kitchen verify - this will run any post-integration tests (like ServerSpec or bats). There is no equivalent in vagrant.kitchen test - wraps the above three commands in a single sequence.Test Kitchen does not have a notion of vagrant reload, which is what you seem to describe by your example. However, you can accomplish a reload by doing something like:
cd .kitchen/suite_name && vagrant reload
from the command line.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With