summaryrefslogtreecommitdiff
path: root/spec/functional
diff options
context:
space:
mode:
authorStuart Preston <stuart@chef.io>2018-07-23 16:04:52 +0100
committerStuart Preston <stuart@chef.io>2018-07-23 16:04:52 +0100
commit336e6ea03095a64bd639e33441a5615b42fcb130 (patch)
treee4c7da547490ea47ed126376dfa134434982d078 /spec/functional
parent83fef3b411ba66134287d1cbd6a56df2179d3512 (diff)
downloadchef-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.rb5
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