Sha256: f2ee01aa8c86b5f7217d7301c2a3e0a1eed8ae2e9f5fa125b937a3aa9df273b4
Contents?: true
Size: 885 Bytes
Versions: 9
Compression:
Stored size: 885 Bytes
Contents
require 'spec_helper' include Serverspec::Helper::Cmd RSpec.configure do |c| c.os = 'Windows' end describe service('Test Service') do it { should be_enabled } its(:command) { should eq "(FindService -name 'Test Service').StartMode -eq 'Auto'" } end describe service('invalid-service') do it { should_not be_enabled } end describe service('Test Service') do it { should be_running } its(:command) { should eq "(FindService -name 'Test Service').State -eq 'Running'" } end describe service('invalid-daemon') do it { should_not be_running } 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
9 entries across 9 versions & 1 rubygems