diff options
author | Jason Barnett <jason.w.barnett@gmail.com> | 2019-04-10 08:15:43 -0400 |
---|---|---|
committer | Jason Barnett <jason.w.barnett@gmail.com> | 2019-04-15 18:07:21 -0400 |
commit | b49cfbe7b8f51bd04e255cf74389eaed4f54f63f (patch) | |
tree | ec6c78e915a4faa473f633ec5f4664bea00bf910 /spec | |
parent | 2fe2f5029df438ff92274b3240df5f5bee10c067 (diff) | |
download | chef-b49cfbe7b8f51bd04e255cf74389eaed4f54f63f.tar.gz |
Prevent accidentally configuring windows_service properties
Signed-off-by: Jason Barnett <jason.w.barnett@gmail.com>
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/provider/service/windows_spec.rb | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/spec/unit/provider/service/windows_spec.rb b/spec/unit/provider/service/windows_spec.rb index 2f955a3e13..9145a0caf4 100644 --- a/spec/unit/provider/service/windows_spec.rb +++ b/spec/unit/provider/service/windows_spec.rb @@ -354,13 +354,6 @@ describe Chef::Provider::Service::Windows, "load_current_resource", :windows_onl allow(Win32::Service).to receive(:configure).with(anything).and_return(true) end - it "works around #6300 if run_as_user is default" do - new_resource.run_as_user = new_resource.class.properties[:run_as_user].default - expect(provider.new_resource).to receive(:run_as_user=) - .with(new_resource.class.properties[:run_as_user].default) - provider.action_configure - end - # properties that are Strings %i{binary_path_name load_order_group dependencies run_as_user display_name description}.each do |attr| @@ -436,13 +429,6 @@ describe Chef::Provider::Service::Windows, "load_current_resource", :windows_onl allow(Win32::Service).to receive(:configure).and_return(true) end - it "works around #6300 if delayed_start is default" do - new_resource.delayed_start = new_resource.class.properties[:delayed_start].default - expect(provider.new_resource).to receive(:delayed_start=) - .with(new_resource.class.properties[:delayed_start].default) - provider.send(:converge_delayed_start) - end - context "delayed start needs to be updated" do before do provider.current_resource.delayed_start = false |