Ales Komarek | f9d35ae | 2016-08-19 10:23:00 +0200 | [diff] [blame^] | 1 | |
| 2 | ================================== |
| 3 | artifactory |
| 4 | ================================== |
| 5 | |
| 6 | Service artifactory description |
| 7 | |
| 8 | Sample pillars |
| 9 | ============== |
| 10 | |
| 11 | Single artifactory service |
| 12 | |
| 13 | .. code-block:: yaml |
| 14 | |
| 15 | artifactory: |
| 16 | server: |
| 17 | enabled: true |
| 18 | version: icehouse |
| 19 | |
| 20 | |
| 21 | Development and testing |
| 22 | ======================= |
| 23 | |
| 24 | Development and test workflow with `Test Kitchen <http://kitchen.ci>`_ and |
| 25 | `kitchen-salt <https://github.com/simonmcc/kitchen-salt>`_ provisioner plugin. |
| 26 | |
| 27 | Test Kitchen is a test harness tool to execute your configured code on one or more platforms in isolation. |
| 28 | There is a ``.kitchen.yml`` in main directory that defines *platforms* to be tested and *suites* to execute on them. |
| 29 | |
| 30 | Kitchen CI can spin instances locally or remote, based on used *driver*. |
| 31 | For 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 | |
| 34 | To use backend drivers or implement your CI follow the section `INTEGRATION.rst#Continuous Integration`__. |
| 35 | |
| 36 | The `Busser <https://github.com/test-kitchen/busser>`_ *Verifier* is used to setup and run tests |
| 37 | implementated 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 | |
| 41 | Usage: |
| 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 | |
| 56 | Read more |
| 57 | ========= |
| 58 | |
| 59 | * links |