Sha256: 5ba01ed47ff856f7506a6bc4cf89c0f9cb7e4120b314137ff5de4986c7f13141
Contents?: true
Size: 694 Bytes
Versions: 34
Compression:
Stored size: 694 Bytes
Contents
require 'spec_helper' include Serverspec::Helper::Solaris11 describe cron do it { should have_entry '* * * * * /usr/local/bin/batch.sh' } its(:command) { should eq 'crontab -l | grep -- \\\\\\*\\ \\\\\\*\\ \\\\\\*\\ \\\\\\*\\ \\\\\\*\\ /usr/local/bin/batch.sh' } end describe cron do it { should_not have_entry 'invalid entry' } end describe cron do it { should have_entry('* * * * * /usr/local/bin/batch.sh').with_user('root') } its(:command) { should eq 'crontab -l root | grep -- \\\\\\*\\ \\\\\\*\\ \\\\\\*\\ \\\\\\*\\ \\\\\\*\\ /usr/local/bin/batch.sh' } end describe cron do it { should_not have_entry('* * * * * /usr/local/bin/batch.sh').with_user('invalid-user') } end
Version data entries
34 entries across 34 versions & 1 rubygems