From 422c9a3291ea277347f6ab866126cb03a8719ab6 Mon Sep 17 00:00:00 2001 From: Stuart Preston Date: Wed, 30 May 2018 15:17:01 +0100 Subject: Use local computer name instead of domain in tests Signed-off-by: Stuart Preston --- spec/support/shared/functional/securable_resource.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/support/shared/functional/securable_resource.rb b/spec/support/shared/functional/securable_resource.rb index 2ca93bdcd0..65f512b5bf 100644 --- a/spec/support/shared/functional/securable_resource.rb +++ b/spec/support/shared/functional/securable_resource.rb @@ -313,7 +313,7 @@ shared_examples_for "a securable resource without existing target" do end it "sets owner when owner is specified with a \\" do - resource.owner "#{ENV['USERDOMAIN']}\\Guest" + resource.owner "#{ENV['COMPUTERNAME']}\\Guest" resource.run_action(:create) expect(descriptor.owner).to eq(SID.Guest) end -- cgit v1.2.1