mirror of
https://github.com/saltstack-formulas/cron-formula.git
synced 2025-07-21 17:24:35 +02:00
test(saltcheck): fix config
tests
This commit is contained in:
parent
677c956de4
commit
9225b18202
@ -24,7 +24,7 @@ validate_cron.{{ task }}_minute:
|
|||||||
- {{ task }}
|
- {{ task }}
|
||||||
assertion: assertEqual
|
assertion: assertEqual
|
||||||
assertion_section: minute
|
assertion_section: minute
|
||||||
expected-return: {{ task_options.minute }}
|
expected-return: '{{ task_options.minute }}'
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
{%- if 'hour' in task_options %}
|
{%- if 'hour' in task_options %}
|
||||||
@ -35,7 +35,7 @@ validate_cron.{{ task }}_hour:
|
|||||||
- {{ task }}
|
- {{ task }}
|
||||||
assertion_section: hour
|
assertion_section: hour
|
||||||
assertion: assertEqual
|
assertion: assertEqual
|
||||||
expected-return: {{ task_options.hour }}
|
expected-return: '{{ task_options.hour }}'
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
{%- if 'daymonth' in task_options %}
|
{%- if 'daymonth' in task_options %}
|
||||||
@ -46,10 +46,10 @@ validate_cron.{{ task }}_daymonth:
|
|||||||
- {{ task }}
|
- {{ task }}
|
||||||
assertion_section: daymonth
|
assertion_section: daymonth
|
||||||
assertion: assertEqual
|
assertion: assertEqual
|
||||||
expected-return: {{ task_options.daymonth }}
|
expected-return: '{{ task_options.daymonth }}'
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
{%- if 'month' in task_options %}
|
{%- if 'month' in task_options %}
|
||||||
validate_cron.{{ task }}_month:
|
validate_cron.{{ task }}_month:
|
||||||
module_and_function: cron.get_entry
|
module_and_function: cron.get_entry
|
||||||
args:
|
args:
|
||||||
@ -57,7 +57,7 @@ validate_cron.{{ task }}_month:
|
|||||||
- {{ task }}
|
- {{ task }}
|
||||||
assertion_section: month
|
assertion_section: month
|
||||||
assertion: assertEqual
|
assertion: assertEqual
|
||||||
expected-return: {{ task_options.month }}
|
expected-return: '{{ task_options.month }}'
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
{%- if 'dayweek' in task_options %}
|
{%- if 'dayweek' in task_options %}
|
||||||
@ -68,7 +68,7 @@ validate_cron.{{ task }}_dayweek:
|
|||||||
- {{ task }}
|
- {{ task }}
|
||||||
assertion_section: dayweek
|
assertion_section: dayweek
|
||||||
assertion: assertEqual
|
assertion: assertEqual
|
||||||
expected-return: {{ task_options.dayweek }}
|
expected-return: '{{ task_options.dayweek }}'
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
{%- if 'comment' in task_options %}
|
{%- if 'comment' in task_options %}
|
||||||
@ -100,7 +100,7 @@ validate_cron.{{ task }}_absent:
|
|||||||
- {{ task_options.user|default('root') }}
|
- {{ task_options.user|default('root') }}
|
||||||
- {{ task }}
|
- {{ task }}
|
||||||
assertion: assertFalse
|
assertion: assertFalse
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user