Merge pull request #30280 from jfindlay/state_mock_doc

add state mocking to release notes
This commit is contained in:
Mike Place 2016-01-12 12:10:40 -07:00
commit 8f65e822d7
2 changed files with 23 additions and 0 deletions

View file

@ -0,0 +1,19 @@
===========================
Salt 2015.8.4 Release Notes
===========================
Core Changes
============
- Added option ``mock=True`` for :mod:`state.sls <salt.modules.state.sls>` and
:mod:`state.highstate <salt.modules.state.highstate>`. This allows the salt
state compiler to process sls data in a state run without actually calling
the state functions, thus providing feedback on the validity of the arguments
used for the functions beyond the preprocessing validation provided by
``state.show_sls`` (:issue:`30118` and :issue:`30189`).
.. code-block:: shell
salt '*' state.sls core,edit.vim mock=True
salt '*' state.highstate mock=True
salt '*' state.apply edit.vim mock=True

View file

@ -489,6 +489,8 @@ def highstate(test=None,
calling any states. This then returns a mocked return which will show
the requisite ordering as well as fully validate the state run.
.. versionadded:: 2015.8.4
CLI Example:
.. code-block:: bash
@ -634,6 +636,8 @@ def sls(mods,
calling any states. This then returns a mocked return which will show
the requisite ordering as well as fully validate the state run.
.. versionadded:: 2015.8.4
CLI Example:
.. code-block:: bash