diff options
author | Tim Smith <tsmith@chef.io> | 2017-12-07 08:03:51 -0800 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2017-12-07 13:27:30 -0800 |
commit | a3642df60cc51c8b57bdfdc0cb12846215256c8f (patch) | |
tree | 5359235d076c599fc1477837d414e4a879cbb6a1 | |
parent | 954c8c6fc15265926a62c97ed5c8f19ae847f97c (diff) | |
download | chef-a3642df60cc51c8b57bdfdc0cb12846215256c8f.tar.gz |
Test lowercase system users not requiring passwords
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | spec/unit/resource/windows_task_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/unit/resource/windows_task_spec.rb b/spec/unit/resource/windows_task_spec.rb index d7bcb66ca1..712fc44933 100644 --- a/spec/unit/resource/windows_task_spec.rb +++ b/spec/unit/resource/windows_task_spec.rb @@ -72,6 +72,11 @@ describe Chef::Resource::WindowsTask do resource.user 'NT AUTHORITY\SYSTEM' expect { resource.after_created }.to_not raise_error(Chef::Exceptions::ArgumentError) end + + it "does not raise an error if the user is a system user even if lowercase" do + resource.user 'nt authority\system' + expect { resource.after_created }.to_not raise_error(Chef::Exceptions::ArgumentError) + end end context "when random_delay is passed" do |