Skip to content

Commit

Permalink
fix(saltcheck): fix invalid service test
Browse files Browse the repository at this point in the history
  • Loading branch information
myii committed Oct 15, 2019
1 parent d2c9544 commit 677c956
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions cron/saltcheck-tests/service.tst
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@

{%- from "cron/saltcheck-tests/map.jinja" import cron with context %}

cron.service:
{%- set service_function = 'disabled' %}
{%- if 'enabled' not in cron or ( 'enabled' in cron and cron.enabled ) %}
service.running:
- name: {{ cron.service }}
- enable: True
{%- else %}
service.dead:
- name: {{ cron.service }}
- enable: False
{%- set service_function = 'enabled' %}
{%- endif %}

verify_cron.service:
module_and_function: service.{{ service_function }}
args:
- {{ cron.service }}
assertion: assertTrue

0 comments on commit 677c956

Please sign in to comment.