Sha256: 2b0419ce2697281ee83d7d082b4dcc016437a52e94ec2848bd1651d08abf30eb
Contents?: true
Size: 1.5 KB
Versions: 2
Compression:
Stored size: 1.5 KB
Contents
only_if do os["family"] == "windows" end describe command("chef-service-manager") do it { should exist } its("exit_status") { should eq 0 } end describe service("chef-client") do it { should_not be_enabled } it { should_not be_installed } it { should_not be_running } end describe command("chef-service-manager -a install") do its("exit_status") { should eq 0 } its(:stdout) { should match /Service 'chef-client' has successfully been installed./ } end describe service("chef-client") do it { should be_enabled } it { should be_installed } it { should_not be_running } end describe command("chef-service-manager -a start") do its("exit_status") { should eq 0 } its(:stdout) { should match /Service 'chef-client' is now 'running'/ } end describe service("chef-client") do it { should be_enabled } it { should be_installed } it { should be_running } end describe command("chef-service-manager -a stop") do its("exit_status") { should eq 0 } its(:stdout) { should match /Service 'chef-client' is now 'stopped'/ } end describe service("chef-client") do it { should be_enabled } it { should be_installed } it { should_not be_running } end describe command("chef-service-manager -a uninstall") do its("exit_status") { should eq 0 } its(:stdout) { should match /Service chef-client deleted/ } end describe service("chef-client") do it { should_not be_enabled } it { should_not be_installed } it { should_not be_running } end
Version data entries
2 entries across 2 versions & 1 rubygems