summaryrefslogtreecommitdiff
path: root/spec/functional
diff options
context:
space:
mode:
authoradamedx <adamed@opscode.com>2013-05-04 11:01:09 -0700
committeradamedx <adamed@opscode.com>2013-05-04 11:01:09 -0700
commit0c4698de74e895b9c7e9045d1cd83b1963d2d12d (patch)
tree7d8fe4686b8cd3f0d7a05541df45864d4832bd74 /spec/functional
parentab5c57b998745661f64d46cb4e46c5d4f5db6641 (diff)
downloadchef-0c4698de74e895b9c7e9045d1cd83b1963d2d12d.tar.gz
Service manager tests move to optional as short-term CI reliability improvement
Diffstat (limited to 'spec/functional')
-rw-r--r--spec/functional/win32/service_manager_spec.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/functional/win32/service_manager_spec.rb b/spec/functional/win32/service_manager_spec.rb
index 327f0f6262..569b0133ac 100644
--- a/spec/functional/win32/service_manager_spec.rb
+++ b/spec/functional/win32/service_manager_spec.rb
@@ -155,7 +155,7 @@ describe "Chef::Application::WindowsServiceManager", :windows_only, :system_wind
context "and service is stopped" do
["delete", "uninstall"].each do |action|
- it "#{action} => should remove the service" do
+ it "#{action} => should remove the service", :volatile do
service_manager.run(["-a", action])
test_service_exists?.should be_false
end
@@ -170,7 +170,7 @@ describe "Chef::Application::WindowsServiceManager", :windows_only, :system_wind
@service_manager_output.grep(/stopped/).length.should > 0
end
- it "start should start the service" do
+ it "start should start the service", :volatile do
service_manager.run(["-a", "start"])
test_service_state.should == "running"
File.exists?(test_service_file).should be_true
@@ -188,13 +188,13 @@ describe "Chef::Application::WindowsServiceManager", :windows_only, :system_wind
end
end
- context "and service is started" do
+ context "and service is started", :volatile do
before(:each) do
service_manager.run(["-a", "start"])
end
["delete", "uninstall"].each do |action|
- it "#{action} => should remove the service" do
+ it "#{action} => should remove the service", :volatile do
service_manager.run(["-a", action])
test_service_exists?.should be_false
end
@@ -225,7 +225,7 @@ describe "Chef::Application::WindowsServiceManager", :windows_only, :system_wind
end
end
- context "and service is paused" do
+ context "and service is paused", :volatile do
before(:each) do
service_manager.run(["-a", "start"])
service_manager.run(["-a", "pause"])