diff options
author | Stuart Preston <stuart@chef.io> | 2018-07-23 16:04:52 +0100 |
---|---|---|
committer | Stuart Preston <stuart@chef.io> | 2018-07-23 16:04:52 +0100 |
commit | 336e6ea03095a64bd639e33441a5615b42fcb130 (patch) | |
tree | e4c7da547490ea47ed126376dfa134434982d078 /spec/functional | |
parent | 83fef3b411ba66134287d1cbd6a56df2179d3512 (diff) | |
download | chef-336e6ea03095a64bd639e33441a5615b42fcb130.tar.gz |
Ensure we logon with the local security_user accountsp/7440
Signed-off-by: Stuart Preston <stuart@chef.io>
Diffstat (limited to 'spec/functional')
-rw-r--r-- | spec/functional/win32/security_spec.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/spec/functional/win32/security_spec.rb b/spec/functional/win32/security_spec.rb index 5ef1f250ea..a1cd70328d 100644 --- a/spec/functional/win32/security_spec.rb +++ b/spec/functional/win32/security_spec.rb @@ -34,10 +34,7 @@ describe "Chef::Win32::Security", :windows_only do let(:password) { "Security@123" } let(:domain) do - whoami = Mixlib::ShellOut.new("whoami") - whoami.run_command - whoami.error! - whoami.stdout.split("\\")[0] + ENV['COMPUTERNAME'] end before do |