mirror of
https://github.com/inspec/inspec
synced 2024-09-21 06:51:56 +00:00
use userinfo hash instead of hard coding
Signed-off-by: Tor Magnus Rakvåg <tm@intility.no>
This commit is contained in:
parent
96bb596bc4
commit
740b84a387
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue