mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #30280 from jfindlay/state_mock_doc
add state mocking to release notes
This commit is contained in:
commit
8f65e822d7
2 changed files with 23 additions and 0 deletions
19
doc/topics/releases/2015.8.4.rst
Normal file
19
doc/topics/releases/2015.8.4.rst
Normal 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
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue