Skip to content

Commit

Permalink
test(saltcheck): fix config tests
Browse files Browse the repository at this point in the history
  • Loading branch information
myii committed Oct 15, 2019
1 parent 677c956 commit 9225b18
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions cron/saltcheck-tests/config.tst
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ validate_cron.{{ task }}_minute:
- {{ task }}
assertion: assertEqual
assertion_section: minute
expected-return: {{ task_options.minute }}
expected-return: '{{ task_options.minute }}'
{%- endif %}

{%- if 'hour' in task_options %}
Expand All @@ -35,7 +35,7 @@ validate_cron.{{ task }}_hour:
- {{ task }}
assertion_section: hour
assertion: assertEqual
expected-return: {{ task_options.hour }}
expected-return: '{{ task_options.hour }}'
{%- endif %}

{%- if 'daymonth' in task_options %}
Expand All @@ -46,18 +46,18 @@ validate_cron.{{ task }}_daymonth:
- {{ task }}
assertion_section: daymonth
assertion: assertEqual
expected-return: {{ task_options.daymonth }}
expected-return: '{{ task_options.daymonth }}'
{%- endif %}

{%- if 'month' in task_options %}
{%- if 'month' in task_options %}
validate_cron.{{ task }}_month:
module_and_function: cron.get_entry
args:
- {{ task_options.user|default('root') }}
- {{ task }}
assertion_section: month
assertion: assertEqual
expected-return: {{ task_options.month }}
expected-return: '{{ task_options.month }}'
{%- endif %}

{%- if 'dayweek' in task_options %}
Expand All @@ -68,7 +68,7 @@ validate_cron.{{ task }}_dayweek:
- {{ task }}
assertion_section: dayweek
assertion: assertEqual
expected-return: {{ task_options.dayweek }}
expected-return: '{{ task_options.dayweek }}'
{%- endif %}

{%- if 'comment' in task_options %}
Expand Down Expand Up @@ -100,7 +100,7 @@ validate_cron.{{ task }}_absent:
- {{ task_options.user|default('root') }}
- {{ task }}
assertion: assertFalse
{%- endif %}
{%- endif %}

{%- endfor %}
{%- endif %}
{%- endif %}

0 comments on commit 9225b18

Please sign in to comment.