Sha256: 6b9119d5f7aa20fdd592c45e9bd479697e753fd473bfd6e58e273de22bf0ffa5

Contents?: true

Size: 692 Bytes

Versions: 59

Compression:

Stored size: 692 Bytes

Contents

require 'spec_helper'

include Serverspec::Helper::Solaris

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

59 entries across 59 versions & 1 rubygems

Version Path
serverspec-0.11.5 spec/solaris/cron_spec.rb
serverspec-0.11.4 spec/solaris/cron_spec.rb
serverspec-0.11.3 spec/solaris/cron_spec.rb
serverspec-0.11.2 spec/solaris/cron_spec.rb
serverspec-0.11.1 spec/solaris/cron_spec.rb
serverspec-0.11.0 spec/solaris/cron_spec.rb
serverspec-0.10.13 spec/solaris/cron_spec.rb
serverspec-0.10.12 spec/solaris/cron_spec.rb
serverspec-0.10.11 spec/solaris/cron_spec.rb
serverspec-0.10.10 spec/solaris/cron_spec.rb
serverspec-0.10.9 spec/solaris/cron_spec.rb
serverspec-0.10.8 spec/solaris/cron_spec.rb
serverspec-0.10.7 spec/solaris/cron_spec.rb
serverspec-0.10.6 spec/solaris/cron_spec.rb
serverspec-0.10.5 spec/solaris/cron_spec.rb
serverspec-0.10.4 spec/solaris/cron_spec.rb
serverspec-0.10.3 spec/solaris/cron_spec.rb
serverspec-0.10.2 spec/solaris/cron_spec.rb
serverspec-0.10.1 spec/solaris/cron_spec.rb
serverspec-0.10.0 spec/solaris/cron_spec.rb