Fix syntax, start tests

Signed-off-by: Mendy Baitelman <mendy@baitelman.com>
This commit is contained in:
Mendy Baitelman 2019-11-13 23:08:23 -08:00
parent 311d7ee9c9
commit 4ba95a0236
3 changed files with 6 additions and 3 deletions

View file

@ -636,7 +636,7 @@ module Inspec::Resources
shell: res[:shell],
domain: res[:domain],
userflags: res[:userflags],
lastlogin: res[:lastlogin]
lastlogin: res[:lastlogin],
}
end

View file

@ -24,7 +24,8 @@
],
"gid": null,
"maxdays": 42,
"shell": null
"shell": null,
"lastlogin": null
},
{
"warndays": null,
@ -53,6 +54,7 @@
],
"gid": null,
"maxdays": 42,
"shell": null
"shell": null,
"lastlogin": null
}
]

View file

@ -163,6 +163,7 @@ describe "Inspec::Resources::User" do
_(resource.maxdays).wont_be_nil
_(resource.warndays).must_be_nil
_(resource.disabled?).must_equal true
_(resource.lastlogin).must_be_nil
end
it "read disabled user on Windows" do