inspec/test/unit/mock
Jared Quick 7bb7767dae Add nil check for sshd config file (#2217)
* Add nil check for sshd config file

This fixes #1778. There was a issue where if the user did not have read
permissions on /etc/ssh/sshd_config it would error out on the empty?
check. The fix here is to also look for nil on the file content. Along
with this I refactored the inspec file empty? check as it does not exist
and was also erroring during my testing.

Signed-off-by: Jared Quick <jquick@chef.io>

* Add emptyfile test object and refactor tests

Signed-off-by: Jared Quick <jquick@chef.io>
2017-10-06 15:41:48 +02:00
..
cmd http resource: properly execute tests on remote target (#2209) 2017-10-04 22:44:09 +02:00
files Add nil check for sshd config file (#2217) 2017-10-06 15:41:48 +02:00
profiles Modify DirProvider to allow special characters (#2174) 2017-09-23 09:16:25 +02:00