Sha256: 89fcd5c310f3781159e07206200dbf2248f9b0340c41903110b690ebaf2f9801

Contents?: true

Size: 835 Bytes

Versions: 1

Compression:

Stored size: 835 Bytes

Contents

require 'spec_helper'

include Specinfra::Helper::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

1 entries across 1 versions & 1 rubygems

Version Path
serverspec-2.0.0.beta14 spec/type/windows/service_spec.rb