|
|
|
|
|
|
|
|
Testing with Vagrant |
|
|
Testing with Vagrant |
|
|
-------------------- |
|
|
-------------------- |
|
|
|
|
|
|
|
|
Windows testing is done with ``kitchen-salt``. |
|
|
|
|
|
|
|
|
Windows/FreeBSD/OpenBSD testing is done with ``kitchen-salt``. |
|
|
|
|
|
|
|
|
Requirements |
|
|
Requirements |
|
|
^^^^^^^^^^^^ |
|
|
^^^^^^^^^^^^ |
|
|
|
|
|
|
|
|
$ bundle install --with=vagrant |
|
|
$ bundle install --with=vagrant |
|
|
$ bin/kitchen test [platform] |
|
|
$ bin/kitchen test [platform] |
|
|
|
|
|
|
|
|
Where ``[platform]`` is the platform name defined in ``kitchen.yml``, |
|
|
|
|
|
e.g. ``windows``. |
|
|
|
|
|
|
|
|
Where ``[platform]`` is the platform name defined in ``kitchen.vagrant.yml``, |
|
|
|
|
|
e.g. ``windows-81-latest-py3``. |
|
|
|
|
|
|
|
|
Note |
|
|
Note |
|
|
^^^^ |
|
|
^^^^ |
|
|
|
|
|
|
|
|
``bin/kitchen converge`` |
|
|
``bin/kitchen converge`` |
|
|
^^^^^^^^^^^^^^^^^^^^^^^^ |
|
|
^^^^^^^^^^^^^^^^^^^^^^^^ |
|
|
|
|
|
|
|
|
Creates the Vagrant instance and runs the ``salt.minion`` main state, ready for testing. |
|
|
|
|
|
|
|
|
Creates the Vagrant instance and runs the ``salt`` main states, ready for testing. |
|
|
|
|
|
|
|
|
``bin/kitchen verify`` |
|
|
``bin/kitchen verify`` |
|
|
^^^^^^^^^^^^^^^^^^^^^^ |
|
|
^^^^^^^^^^^^^^^^^^^^^^ |
|
|
|
|
|
|
|
|
``bin/kitchen login`` |
|
|
``bin/kitchen login`` |
|
|
^^^^^^^^^^^^^^^^^^^^^ |
|
|
^^^^^^^^^^^^^^^^^^^^^ |
|
|
|
|
|
|
|
|
Gives you RDP access to the instance for manual testing. |
|
|
|
|
|
|
|
|
Gives you RDP/SSH access to the instance for manual testing. |