mirror of
https://github.com/inspec/inspec
synced 2024-11-10 07:04:15 +00:00
first test. Signed-off-by: mhackethal <mh@it31.de>
This commit is contained in:
parent
c08db992a9
commit
7ac468df5b
1 changed files with 13 additions and 1 deletions
|
@ -91,6 +91,12 @@ if os.windows?
|
|||
# should return the SID of the user
|
||||
its('uid') { should_not eq nil}
|
||||
its('groups') { should include userinfo[:groups] }
|
||||
its('mindays') { should eq 0 }
|
||||
its('maxdays') { should eq 42 }
|
||||
its('warndays') { should eq nil }
|
||||
its('passwordage') { should_be > 5 }
|
||||
its('maxbadpasswords') { should eq 0 }
|
||||
its('badpasswordattempts') { should eq 0 }
|
||||
end
|
||||
|
||||
# also support simple username for local users without domain
|
||||
|
@ -99,7 +105,13 @@ if os.windows?
|
|||
# should return the SID of the user
|
||||
its('uid') { should_not eq nil}
|
||||
its('groups') { should include userinfo[:groups] }
|
||||
end
|
||||
its('mindays') { should eq 0 }
|
||||
its('maxdays') { should eq 42 }
|
||||
its('warndays') { should eq nil }
|
||||
its('passwordage') { should_be > 5 }
|
||||
its('maxbadpasswords') { should eq 0 }
|
||||
its('badpasswordattempts') { should eq 0 }
|
||||
end
|
||||
else
|
||||
# test single `user` resource
|
||||
describe user(userinfo[:username]) do
|
||||
|
|
Loading…
Reference in a new issue