inspec/test/functional
eramoto c7e87ca3e3 Unify method in which file content is read across all resources (#2359)
* Create file-check functionality into utility file

There are the similar issues as PR #2302. Almost resources return false
positives when a file does not exist or is not read.

* Replace to file-check functionality
* Fix dh_params and x509_certificate resources

If a file is empty, OpenSSL::PKey::DH and OpenSSL::X509::Certificate have
raised an exception and have skipped the inspection. Thus x509_certificate
and dh_params resources are not allowed to read a empty file.

* to_s of shadow expects filters is not nil
* Remove workaround of sshd_config

Removes the workaround of sshd_config since Travis CI fails due to a bug
of dev-sec/ssh-baseline and the PR #100 will fix it.

* Use init block variable in methods

Signed-off-by: ERAMOTO Masaya <eramoto.masaya@jp.fujitsu.com>
2018-03-22 08:25:45 -04:00
..
gitfetcher_test.rb Rename --no-write-lockfile to --no-create-lockfile 2016-09-22 10:08:32 +02:00
helper.rb Add sensitive flag to resources to restrict logging output (#2017) 2017-08-25 16:21:49 -04:00
inheritance_test.rb Update reporter with breaking inspec 2.0 changes. (#2487) 2018-02-14 11:54:20 -05:00
inspec_archive_test.rb Updating tests for profile versions 2016-12-14 16:20:27 +00:00
inspec_artifact_test.rb fix intermitten functional vendor test failures (#1919) 2017-06-12 14:01:26 +02:00
inspec_check_test.rb Fix inspec check to work with platforms (#2737) 2018-02-26 11:01:23 -05:00
inspec_compliance_test.rb Bump Thor to version 0.20.0. (#2843) 2018-03-21 10:44:28 -07:00
inspec_detect_test.rb Update shell detect to work with platforms (#2712) 2018-02-20 07:37:23 -05:00
inspec_exec_json_test.rb Update reporter with breaking inspec 2.0 changes. (#2487) 2018-02-14 11:54:20 -05:00
inspec_exec_jsonmin_test.rb Update reporter with breaking inspec 2.0 changes. (#2487) 2018-02-14 11:54:20 -05:00
inspec_exec_junit_test.rb Update reporter with breaking inspec 2.0 changes. (#2487) 2018-02-14 11:54:20 -05:00
inspec_exec_test.rb Create reporter directory if it does not exist. (#2798) 2018-03-08 15:45:59 -05:00
inspec_json_profile_test.rb Add new "reporter" system (replacement for "formatters"), support multiple reporters per run (#2464) 2018-02-08 10:06:58 +01:00
inspec_report_test.rb Make sure we have a proper exit code and report data. (#2747) 2018-02-26 16:50:51 -05:00
inspec_shell_test.rb Update inspec detect to support APIs/Families (#2634) 2018-02-14 15:06:39 -05:00
inspec_supermakert_test.rb Fix bundle exec calls (#2670) 2018-02-17 16:49:52 +01:00
inspec_test.rb Update inspec detect to support APIs/Families (#2634) 2018-02-14 15:06:39 -05:00
inspec_vendor_test.rb Unify method in which file content is read across all resources (#2359) 2018-03-22 08:25:45 -04:00