Closed axmetishe closed 8 years ago
Hello Eugene, it's good that you came with using kitchen-ci & serverspec for testing, because @epcim is already working on this :-) He added support for some of the formulas already (tcpcloud/salt-formula-postfix) and written blueprint for openstack formulas testing: https://blueprints.launchpad.net/openstack-salt/+spec/system-level-testing
Can you look at what we have and give us feedback? Or better - submit tests for formulas that you are using? :-)
Filip
Hello Filip,
I can't submit our formulas with testing due legal issues, but I'll take a look one of yours in my spare time and configure tests on it.
WBR, Eugene
Thank you, contributions are always welcome :-) You can also contact us at #openstack-salt or #tcpcloud at Freenode IRC.
Eugene, i Will provide you a handy script to easily add kitchen setup to our formulas. On 22 Sep 2016 07:10, Eugene Akhmetkhanov notifications@github.com wrote:
Hello Filip,
I can't submit our formulas with testing due legal issues, but I'll take a look one of yours in my spare time and configure tests on it.
WBR, Eugene
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.
@axmetishe in repo below is handy script "kitchen-init.sh" that will help you to create initial structure. I am about to add kitchen to all our formulas in future. Definitively feel free to propose PR. Thx for the test sample.
Hello,
We also use saltstack for service provisioning, and of course we test formulas before, I was wonder that you use bash in testing. Simple suggestion is to use test-kitchen with salt provisioner and serverspec, it solve many problems for us, for example testing on different platform, right now we support at least two platforms centos 7, debian 8, on some formulas we extend list of platform for up to 4 platforms and all integration testing jobs is just a 'kitchen test'.
Short example of kitchen configuration, based on our iptables-formula, which apply rules from predefined roles via list in grains:
in this configuration we get 4 containers - 2 with default rules, 2 with allowed ssh from network list
Tests example:
This test specification applicable for the "clean" containers and used as shared resource for testing ssh rules:
So I think same testing model helps you with development.
WBR, Eugene