Sha256: 5acf63958968c8ff2fee1b70ee1b12dd8595a13a619c2a61949c86908c2c0d4d

Contents?: true

Size: 864 Bytes

Versions: 14

Compression:

Stored size: 864 Bytes

Contents

require 'spec_helper'

set :os, :family => 'base'

describe service('sshd') do
  it { should be_running }
end

describe service('sshd') do
  let(:stdout) { "sshd is stopped\r\n" }
  it { should be_running }
end

describe service('sshd') do
  it { should be_running.under(:supervisor) }
end

describe service('sshd') do
  it { should be_running.under(:upstart) }
end

describe service('sshd') do
  it {
    expect {
      should be_running.under('not implemented')
    }.to raise_exception
  }
end

describe service('sshd') do
  let(:stdout) { "Process 'sshd'\r\n  status running\r\n  monitoring status  monitored" }
  it { should be_monitored_by(:monit) }
end

describe service('unicorn') do
  it { should be_monitored_by(:god) }
end

describe service('sshd') do
  it {
    expect {
      should be_monitored_by('not implemented')
    }.to raise_exception
  }
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
serverspec-2.7.1 spec/type/base/service_spec.rb
serverspec-2.7.0 spec/type/base/service_spec.rb
serverspec-2.6.0 spec/type/base/service_spec.rb
serverspec-2.5.0 spec/type/base/service_spec.rb
serverspec-2.4.0 spec/type/base/service_spec.rb
serverspec-2.3.1 spec/type/base/service_spec.rb
serverspec-2.3.0 spec/type/base/service_spec.rb
serverspec-2.2.0 spec/type/base/service_spec.rb
serverspec-clc-2.1.0 spec/type/base/service_spec.rb
serverspec-2.1.0 spec/type/base/service_spec.rb
serverspec-2.0.1 spec/type/base/service_spec.rb
serverspec-2.0.0 spec/type/base/service_spec.rb
serverspec-2.0.0.beta21 spec/type/base/service_spec.rb
serverspec-2.0.0.beta20 spec/type/base/service_spec.rb