use userinfo hash instead of hard coding

Signed-off-by: Tor Magnus Rakvåg <tm@intility.no>
This commit is contained in:
Tor Magnus Rakvåg 2017-04-21 09:44:14 +02:00
parent 96bb596bc4
commit 740b84a387

View file

@ -91,7 +91,7 @@ if os.windows?
it { should exist }
# should return the SID of the user
its('uid') { should_not eq nil}
its('groups') { should include 'Administrators' }
its('groups') { should include userinfo[:groups] }
end
# also support simple username for local users without domain
@ -99,7 +99,7 @@ if os.windows?
it { should exist }
# should return the SID of the user
its('uid') { should_not eq nil}
its('groups') { should include 'Administrators' }
its('groups') { should include userinfo[:groups] }
end
else
# test single `user` resource