Sha256: 11574b46ba07bc309daf16828301b08ae2e83b9ac607a9b317b84a610321a687

Contents?: true

Size: 944 Bytes

Versions: 38

Compression:

Stored size: 944 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 { should be_running.under(:daemontools) }
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

38 entries across 38 versions & 2 rubygems

Version Path
serverspec-2.17.1 spec/type/base/service_spec.rb
serverspec-2.17.0 spec/type/base/service_spec.rb
serverspec-2.16.0 spec/type/base/service_spec.rb
serverspec-2.15.0 spec/type/base/service_spec.rb
serverspec-2.14.1 spec/type/base/service_spec.rb
serverspec-2.14.0 spec/type/base/service_spec.rb
serverspec-2.13.0 spec/type/base/service_spec.rb
serverspec-2.12.0 spec/type/base/service_spec.rb
serverspec-2.11.0 spec/type/base/service_spec.rb
serverspec-2.10.2 spec/type/base/service_spec.rb
serverspec-2.10.1 spec/type/base/service_spec.rb
serverspec-2.10.0 spec/type/base/service_spec.rb
serverspec-2.9.1 spec/type/base/service_spec.rb
serverspec-2.9.0 spec/type/base/service_spec.rb
serverspec-2.8.2 spec/type/base/service_spec.rb
serverspec-2.8.1 spec/type/base/service_spec.rb
serverspec-2.8.0 spec/type/base/service_spec.rb
serverspec-2.7.2 spec/type/base/service_spec.rb