Skip to content

Commit

Permalink
test(pillar): add test for commented and clarify each test
Browse files Browse the repository at this point in the history
  • Loading branch information
myii committed Oct 17, 2019
1 parent a0f891e commit 3d0dcb2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/salt/pillar/cron.sls
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
cron:
enabled: true # Default
tasks:
# Test all of the available options
task1:
type: present # Default
name: echo test > /tmp/test
Expand All @@ -14,22 +15,34 @@ cron:
month: 1
dayweek: 6
comment: comment1
commented: false
# Test `type: absent`
task2:
type: absent # To remove that crontask
name: echo task2 > /tmp/test2
user: root
minute: random
hour: 1
# Test `special`
task3:
type: present
name: echo task3 > /tmp/test3
user: root
special: '@hourly'
comment: comment3
# Test `*`
task4:
type: present # run every 5 minutes
name: echo task4 > /tmp/test4
user: root
minute: '*/5'
hour: '*'
comment: comment4
# Test `commented: true` and `minute: random`
task5:
type: present
name: echo task5 > /tmp/test5
user: root
minute: random
hour: 1
commented: true

0 comments on commit 3d0dcb2

Please sign in to comment.