summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordheerajd-msys <dheeraj.dubey@msystechnologies.com>2019-04-12 17:43:48 +0530
committerdheerajd-msys <dheeraj.dubey@msystechnologies.com>2019-04-12 17:43:48 +0530
commitda4978ad26c765c8d0a2f2c0cebf87d1373944a2 (patch)
tree23493830ba392cb64903f92b74931ed1cd7542e4
parent8edde63602f983917187f05b97b69b7b6d3c4fc1 (diff)
downloadchef-da4978ad26c765c8d0a2f2c0cebf87d1373944a2.tar.gz
tests for idempotent
Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com>
-rw-r--r--spec/functional/resource/insserv_spec.rb18
1 files changed, 1 insertions, 17 deletions
diff --git a/spec/functional/resource/insserv_spec.rb b/spec/functional/resource/insserv_spec.rb
index cd6e4f1b0f..15d487c5b2 100644
--- a/spec/functional/resource/insserv_spec.rb
+++ b/spec/functional/resource/insserv_spec.rb
@@ -22,7 +22,7 @@ require "functional/resource/base"
require "chef/mixin/shell_out"
require "fileutils"
-describe Chef::Resource::Service, :requires_root, :sles11 do
+describe Chef::Resource::Service, :requires_root, :sles11, :rhel6 do
include Chef::Mixin::ShellOut
@@ -132,14 +132,6 @@ describe Chef::Resource::Service, :requires_root, :sles11 do
new_resource.run_action(:restart)
service_should_be_started("inittest_restart.txt")
end
-
- it "should be idempotent" do
- new_resource.run_action(:restart)
- service_should_be_started("inittest_restart.txt")
- new_resource.run_action(:restart)
- service_should_be_started("inittest_restart.txt")
- expect(new_resource).not_to be_updated_by_last_action
- end
end
describe "reload service" do
@@ -151,14 +143,6 @@ describe Chef::Resource::Service, :requires_root, :sles11 do
new_resource.run_action(:reload)
service_should_be_started("inittest_reload.txt")
end
-
- it "should be idempotent" do
- new_resource.run_action(:reload)
- service_should_be_started("inittest_reload.txt")
- new_resource.run_action(:reload)
- service_should_be_started("inittest_reload.txt")
- expect(new_resource).not_to be_updated_by_last_action
- end
end
describe "enable service" do