summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorBryan McLellan <btm@loftninjas.org>2017-07-19 15:26:26 -0400
committerBryan McLellan <btm@loftninjas.org>2017-07-19 18:16:24 -0400
commit57f409a0d49cb50ae4c7598264a90679ae7b9716 (patch)
treec12b1d9f8212da905e501b46bc8a535408d5cdfd /spec
parentcb07cc92ec9f5bc5f390bbb2553105525cf18869 (diff)
downloadmixlib-shellout-57f409a0d49cb50ae4c7598264a90679ae7b9716.tar.gz
Update error messages to indicate user who lacks privilege on Windows
In some cases the user running mixlib-shellout needs additional privileges, in other cases the user we're trying to run the process as needs them. Signed-off-by: Bryan McLellan <btm@loftninjas.org>
Diffstat (limited to 'spec')
-rw-r--r--spec/mixlib/shellout_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/mixlib/shellout_spec.rb b/spec/mixlib/shellout_spec.rb
index 15bfa39..57c1403 100644
--- a/spec/mixlib/shellout_spec.rb
+++ b/spec/mixlib/shellout_spec.rb
@@ -660,7 +660,7 @@ describe Mixlib::ShellOut do
let(:options) { { :user => user, :password => password, :elevated => true } }
it "raises error" do
- expect { running_user }.to raise_error("Logon failure: the user has not been granted the requested logon type at this computer. - LogonUserW (You must hold `Log on as a service` and `Log on as a batch job` permissions.)")
+ expect { running_user }.to raise_error(/the user has not been granted the requested logon type at this computer/)
end
end
end