From 226eb88078b6eff7772a0ce297b5420bcefd9074 Mon Sep 17 00:00:00 2001 From: Imran Iqbal Date: Tue, 15 Oct 2019 17:32:13 +0100 Subject: [PATCH] test(saltcheck): add test for `service.available` --- cron/saltcheck-tests/service.tst | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cron/saltcheck-tests/service.tst b/cron/saltcheck-tests/service.tst index 1a29b20..579750b 100644 --- a/cron/saltcheck-tests/service.tst +++ b/cron/saltcheck-tests/service.tst @@ -8,7 +8,13 @@ {%- set service_function = 'enabled' %} {%- 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 }} args: - {{ cron.service }}