Test SmartOS LX zones using Vagrant and Test Kitchen.
- Have a look at @sjorge's initial work at http://goo.gl/gu6kp8
- Vagrant (https://www.vagrantup.com/downloads.html)
- The
vagrant-smartos-zones
plugin,test-kitchen
gem andkitchen-vagrant
plugin:
vagrant plugin install vagrant-smartos-zones
gem install test-kitchen
gem install kitchen-vagrant
git clone https://github.com/bixu/lx_kitchen.git
cd lx_kitchen
kitchen verify ## checks the state of tests in the suite
## make some changes (for example, add tests)
kitchen verify
## improve tests and fix bugs as needed
kitchen verify
kitchen destroy ## clean up the testing environment, going back to 'zero'
kitchen test ## a full end-to-end test cycle
See documenation for the preqrequisite tools for more detail.
See Test Kitchen documentation (http://kitchen.ci/docs/getting-started/writing-test)
- Only contains tests for Ubuntu LX zones currently.
- Because LX zones are by nature much fatter than SmartOS zones and have to be downloaded for every test run, you'll want a pretty fast internet connection to facilitate faster testing.
The standard fork/feature branch/pull request rigamarole. Improvements and expanded test coverage are welcome :)