Skip to content

Commit b84b0ad

Browse files
committed
Test new cron specification
1 parent bdc25cd commit b84b0ad

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

spec/classes/puppet_agent_spec.rb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,9 @@
5050
:puppet_run_style => 'cron',
5151
:splay => 'true',
5252
:environment => 'production',
53-
:puppet_run_interval => 30,
5453
:puppet_server_port => 8140,
54+
:cron_hour => 5,
55+
:cron_minute => '*/30',
5556
}
5657
end
5758
it{
@@ -69,8 +70,9 @@
6970
)
7071
should contain_cron('puppet-client').with(
7172
:command => '/usr/bin/puppet agent --no-daemonize --onetime --logdest syslog > /dev/null 2>&1',
72-
:user => 'root',
73-
:hour => '*'
73+
:user => 'root',
74+
:hour => '5'
75+
:minute => '*/30'
7476
)
7577
}
7678
end

0 commit comments

Comments
 (0)