summaryrefslogtreecommitdiff
path: root/kitchen-tests
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-03-23 11:49:56 -0700
committerTim Smith <tsmith84@gmail.com>2020-03-23 11:49:56 -0700
commit27c958e6b02ed720f155c996afba3befc9ada5ed (patch)
treeb475e75b62aa27adbef8c63d2fc6df8ad8f7e7cd /kitchen-tests
parente7e8781a5092cf67ef3900aa0b31e64971838a1b (diff)
downloadchef-27c958e6b02ed720f155c996afba3befc9ada5ed.tar.gz
Test both cron and cron_d resources
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'kitchen-tests')
-rw-r--r--kitchen-tests/cookbooks/end_to_end/recipes/default.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/kitchen-tests/cookbooks/end_to_end/recipes/default.rb b/kitchen-tests/cookbooks/end_to_end/recipes/default.rb
index 8003f915f8..276223ff8d 100644
--- a/kitchen-tests/cookbooks/end_to_end/recipes/default.rb
+++ b/kitchen-tests/cookbooks/end_to_end/recipes/default.rb
@@ -81,7 +81,13 @@ directory "/etc/ssl"
cron_access "bob"
-cron_d "some random cron job" do
+cron "some random cron job" do
+ minute 0
+ hour 23
+ command "/usr/bin/true"
+end
+
+cron_d "another random cron job" do
minute 0
hour 23
command "/usr/bin/true"