inspec/test/unit
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
..
bundles Support profile versions for automate profiles storage (#2128) 2017-09-13 16:53:36 -04:00
dependencies Bump lockfile version to 1.0 2016-09-26 09:51:04 +01:00
dsl New 'be_in' matcher for matching against values in a list (#2022) 2017-08-07 16:05:22 +02:00
fetchers Don't send HTTP headers that have nil values (#1948) 2017-06-21 19:09:13 -05:00
mock Add nil check for sshd config file (#2217) 2017-10-06 15:41:48 +02:00
objects forgiving default attributes (#2177) 2017-09-22 08:57:51 -04:00
plugins
profiles Source reader should not hand back files with nil contents (#2003) 2017-07-11 21:33:55 +02:00
resources Add nil check for sshd config file (#2217) 2017-10-06 15:41:48 +02:00
source_readers Source reader should not hand back files with nil contents (#2003) 2017-07-11 21:33:55 +02:00
utils add the Nginx parser 2017-06-03 17:25:00 +02:00
file_provider_test.rb bugfix: empty file strings from archive readers (#2027) 2017-07-24 09:37:13 -07:00
runner_test.rb Add attributes file readability error handling (#2127) 2017-09-08 08:43:33 -04:00
shell_detector_test.rb