inspec/test
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
..
cookbooks/os_prepare Add wildcard support to Utils::FindFiles (#2159) 2017-09-23 09:17:34 +02:00
functional Modify DirProvider to allow special characters (#2174) 2017-09-23 09:16:25 +02:00
integration windows_hotfix resource: test whether a Windows HotFix is installed (#2178) 2017-09-25 19:09:22 +02:00
unit Add nil check for sshd config file (#2217) 2017-10-06 15:41:48 +02:00
docker_run.rb travis experiment: lower docker concurrency 2016-08-10 12:52:21 +01:00
docker_test.rb Load all dependent libraries, even if include_context isn't called 2016-09-04 20:55:20 +02:00
helper.rb Add nil check for sshd config file (#2217) 2017-10-06 15:41:48 +02:00