mirror of
https://github.com/saltstack-formulas/cron-formula.git
synced 2024-11-28 01:17:49 +01:00
test(pillar): add test for commented
and clarify each test
This commit is contained in:
parent
a0f891e012
commit
3d0dcb2e43
@ -4,6 +4,7 @@
|
|||||||
cron:
|
cron:
|
||||||
enabled: true # Default
|
enabled: true # Default
|
||||||
tasks:
|
tasks:
|
||||||
|
# Test all of the available options
|
||||||
task1:
|
task1:
|
||||||
type: present # Default
|
type: present # Default
|
||||||
name: echo test > /tmp/test
|
name: echo test > /tmp/test
|
||||||
@ -14,18 +15,22 @@ cron:
|
|||||||
month: 1
|
month: 1
|
||||||
dayweek: 6
|
dayweek: 6
|
||||||
comment: comment1
|
comment: comment1
|
||||||
|
commented: false
|
||||||
|
# Test `type: absent`
|
||||||
task2:
|
task2:
|
||||||
type: absent # To remove that crontask
|
type: absent # To remove that crontask
|
||||||
name: echo task2 > /tmp/test2
|
name: echo task2 > /tmp/test2
|
||||||
user: root
|
user: root
|
||||||
minute: random
|
minute: random
|
||||||
hour: 1
|
hour: 1
|
||||||
|
# Test `special`
|
||||||
task3:
|
task3:
|
||||||
type: present
|
type: present
|
||||||
name: echo task3 > /tmp/test3
|
name: echo task3 > /tmp/test3
|
||||||
user: root
|
user: root
|
||||||
special: '@hourly'
|
special: '@hourly'
|
||||||
comment: comment3
|
comment: comment3
|
||||||
|
# Test `*`
|
||||||
task4:
|
task4:
|
||||||
type: present # run every 5 minutes
|
type: present # run every 5 minutes
|
||||||
name: echo task4 > /tmp/test4
|
name: echo task4 > /tmp/test4
|
||||||
@ -33,3 +38,11 @@ cron:
|
|||||||
minute: '*/5'
|
minute: '*/5'
|
||||||
hour: '*'
|
hour: '*'
|
||||||
comment: comment4
|
comment: comment4
|
||||||
|
# Test `commented: true` and `minute: random`
|
||||||
|
task5:
|
||||||
|
type: present
|
||||||
|
name: echo task5 > /tmp/test5
|
||||||
|
user: root
|
||||||
|
minute: random
|
||||||
|
hour: 1
|
||||||
|
commented: true
|
||||||
|
Loading…
Reference in New Issue
Block a user