summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-07-23 10:14:22 -0700
committerGitHub <noreply@github.com>2018-07-23 10:14:22 -0700
commit3f481dd744d12cee6ef20a451e12137d1aee46e1 (patch)
tree15965ab8137f722d3dbeec4e0b6ca9a2347dae2a
parentc4e9e7293f0fb1e3b44ae47dc0fab355d5bbf07d (diff)
parentb521bb75b265ecfdb7eaf0b53b0f3240976e0585 (diff)
downloadchef-3f481dd744d12cee6ef20a451e12137d1aee46e1.tar.gz
Merge pull request #7498 from chef/sp/7440
Functional tests: Ensure we logon with the local security_user account
-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..b3fe2afb31 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