test(saltcheck): add test for `service.available`

This commit is contained in:
Imran Iqbal 2019-10-15 17:32:13 +01:00
parent baab964f16
commit 226eb88078
No known key found for this signature in database
GPG Key ID: 6D8629439D2B7819
1 changed files with 7 additions and 1 deletions

View File

@ -8,7 +8,13 @@
{%- set service_function = 'enabled' %} {%- set service_function = 'enabled' %}
{%- endif %} {%- endif %}
verify_cron.service: verify_cron.service_available:
module_and_function: service.available
args:
- {{ cron.service }}
assertion: assertTrue
verify_cron.service_{{ service_function }}:
module_and_function: service.{{ service_function }} module_and_function: service.{{ service_function }}
args: args:
- {{ cron.service }} - {{ cron.service }}