diff options
author | dheerajd-msys <dheeraj.dubey@msystechnologies.com> | 2019-05-24 05:29:43 +0530 |
---|---|---|
committer | Bryan McLellan <btm@loftninjas.org> | 2019-05-23 16:59:43 -0700 |
commit | 8136619cc425e037f4a3316a12befb0e15b321d7 (patch) | |
tree | a89a03688a793c759da74261ae2e9f18c0aeadb8 /spec/unit/provider/service | |
parent | 11d2809575a65841ae507bdf1c83c63215dddb13 (diff) | |
download | chef-8136619cc425e037f4a3316a12befb0e15b321d7.tar.gz |
Fix service enable idempotency in sles11 (#8256)
* fix service enable idempotency in sles11
Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com>
Diffstat (limited to 'spec/unit/provider/service')
-rw-r--r-- | spec/unit/provider/service/insserv_service_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/provider/service/insserv_service_spec.rb b/spec/unit/provider/service/insserv_service_spec.rb index f2fe19db59..bd8a155bde 100644 --- a/spec/unit/provider/service/insserv_service_spec.rb +++ b/spec/unit/provider/service/insserv_service_spec.rb @@ -36,7 +36,7 @@ describe Chef::Provider::Service::Insserv do describe "load_current_resource" do describe "when startup links exist" do before do - allow(Dir).to receive(:glob).with("/etc/rc**/S*initgrediant").and_return(["/etc/rc5.d/S18initgrediant", "/etc/rc2.d/S18initgrediant", "/etc/rc4.d/S18initgrediant", "/etc/rc3.d/S18initgrediant"]) + allow(Dir).to receive(:glob).with("/etc/rc*/**/S*initgrediant").and_return(["/etc/rc.d/rc5.d/S18initgrediant", "/etc/rc.d/rc2.d/S18initgrediant", "/etc/rc.d/rc4.d/S18initgrediant", "/etc/rc.d/rc3.d/S18initgrediant"]) end it "sets the current enabled status to true" do @@ -47,7 +47,7 @@ describe Chef::Provider::Service::Insserv do describe "when startup links do not exist" do before do - allow(Dir).to receive(:glob).with("/etc/rc**/S*initgrediant").and_return([]) + allow(Dir).to receive(:glob).with("/etc/rc*/**/S*initgrediant").and_return([]) end it "sets the current enabled status to false" do |