blob: 50931f170a04c36ddd20f9c2c0118493c77d258b [file] [log] [blame]
Michael Kutýf0c0aa72015-11-19 21:51:21 +01001
2==================================
3{{cookiecutter.service_name}}
4==================================
5
6Service {{cookiecutter.service_name}} description
7
8Sample pillars
9==============
10
11Single {{cookiecutter.service_name}} service
12
13.. code-block:: yaml
14
15 {{cookiecutter.service_name}}:
Michael Kutýee3d7092015-12-04 17:04:39 +010016 {{cookiecutter.role_name}}:
Michael Kutýf0c0aa72015-11-19 21:51:21 +010017 enabled: true
18 version: icehouse
19
Petr Michalec993e3fa2016-07-15 15:56:34 +020020
21Development and testing
22=======================
23
24Development and test workflow with `Test Kitchen <http://kitchen.ci>`_ and
25`kitchen-salt <https://github.com/simonmcc/kitchen-salt>`_ provisioner plugin.
26
27Test Kitchen is a test harness tool to execute your configured code on one or more platforms in isolation.
28There is a ``.kitchen.yml`` in main directory that defines *platforms* to be tested and *suites* to execute on them.
29
30Kitchen CI can spin instances locally or remote, based on used *driver*.
31For local development ``.kitchen.yml`` defines a `vagrant <https://github.com/test-kitchen/kitchen-vagrant>`_ or
32`docker <https://github.com/test-kitchen/kitchen-docker>`_ driver.
33
34To use backend drivers or implement your CI follow the section `INTEGRATION.rst#Continuous Integration`__.
35
36The `Busser <https://github.com/test-kitchen/busser>`_ *Verifier* is used to setup and run tests
37implementated in `<repo>/test/integration`. It installs the particular driver to tested instance
38(`Serverspec <https://github.com/neillturner/kitchen-verifier-serverspec>`_,
39`InSpec <https://github.com/chef/kitchen-inspec>`_, Shell, Bats, ...) prior the verification is executed.
40
41Usage:
42
43.. code-block:: shell
44
45 # list instances and status
46 kitchen list
47
48 # manually execute integration tests
49 kitchen [test || [create|converge|verify|exec|login|destroy|...]] [instance] -t tests/integration
50
51 # use with provided Makefile (ie: within CI pipeline)
52 make kitchen
53
54
55
Michael Kutýf0c0aa72015-11-19 21:51:21 +010056Read more
57=========
58
59* links