Sha256: d376cbeb72dbca84398558a3ba9d14d66fef465aed2c9219460bccbb6a2b1cb4

Contents?: true

Size: 823 Bytes

Versions: 5

Compression:

Stored size: 823 Bytes

Contents

require 'spec_helper'

set :backend, :cmd

set :os, :family => 'windows'

describe service('Test Service') do
  it { should be_enabled }
end

describe service('invalid-service') do
  it { should_not be_enabled }
end

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

describe service('invalid-daemon') do
  it { should_not be_running }
end

describe service('service') do
  it { should be_installed }
end

describe service('service') do
  it { should have_start_mode 'mode' }
end

describe service('Test service') do
  it "should raise error if trying to check service process controller" do
   expect { should be_running.under('supervisor') }.to raise_error
 end
  it "should raise error if trying to check service monitoring" do
   expect { should_not be_monitored_by('monit') }.to raise_error
 end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
serverspec-2.0.0.beta19 spec/type/windows/service_spec.rb
serverspec-2.0.0.beta18 spec/type/windows/service_spec.rb
serverspec-2.0.0.beta17 spec/type/windows/service_spec.rb
serverspec-2.0.0.beta16 spec/type/windows/service_spec.rb
serverspec-2.0.0.beta15 spec/type/windows/service_spec.rb