always-passes:
test.succeed_without_changes:
- name: foo
always-fails:
test.fail_without_changes:
- name: foo
always-changes-and-succeeds:
test.succeed_with_changes:
- name: foo
always-changes-and-fails:
test.fail_with_changes:
- name: foo
my-custom-combo:
test.configurable_test_state:
- name: foo
- changes: True
- result: False
- comment: bar.baz
A configurable test state which determines its output based on the inputs.
New in version 2014.7.0.
Returns failure and changes is not empty.
New in version 2014.7.0.
Returns failure.
New in version 2014.7.0.
' Call this function via a watch statement
New in version 2014.7.0.
Any parameters in the state return dictionary can be customized by adding the keywords result, comment, and changes.
this_state_will_return_changes:
test.succeed_with_changes
this_state_will_NOT_return_changes:
test.succeed_without_changes
this_state_is_watching_another_state:
test.succeed_without_changes:
- comment: 'This is a custom comment'
- watch:
- test: this_state_will_return_changes
- test: this_state_will_NOT_return_changes
this_state_is_also_watching_another_state:
test.succeed_without_changes:
- watch:
- test: this_state_will_NOT_return_changes
Returns successful and changes is not empty
New in version 2014.7.0.
Returns successful.
New in version 2014.7.0.
Docs for previous releases are available on readthedocs.org.
Latest Salt release: 2015.5.1