inspec/test/unit
Adam Leff 1601b23e8d Don't send HTTP headers that have nil values (#1948)
Net::HTTP does not gracefully handle HTTP options/headers
that have nil values. This updates Fetchers::Url to verify
that all headers we attempt to configure have non-nil,
non-empty values.

This originally surfaced via the audit cookbook with the
chef-automate fetcher in use without the data_collector
token being set.

Signed-off-by: Adam Leff <adam@leff.co>
2017-06-21 19:09:13 -05:00
..
bundles Fix directory name for the inspec-habitat unit tests (#1923) 2017-06-13 10:05:47 +02:00
dependencies Bump lockfile version to 1.0 2016-09-26 09:51:04 +01:00
dsl Reduce warnings (#1917) 2017-06-15 12:10:47 -04:00
fetchers Don't send HTTP headers that have nil values (#1948) 2017-06-21 19:09:13 -05:00
mock Adding toml resource (#1924) 2017-06-15 16:54:12 -04:00
plugins Remove some warnings during the test run 2016-09-09 14:14:36 +01:00
profiles update unit tests 2017-05-31 00:21:05 -05:00
resources reject nil as a command input (#1863) 2017-06-19 11:07:36 -04:00
source_readers add inspec.profile.file(...) for profile files 2017-05-03 20:39:27 +02:00
utils add the Nginx parser 2017-06-03 17:25:00 +02:00
file_provider_test.rb add inspec.profile.file(...) for profile files 2017-05-03 20:39:27 +02:00
runner_test.rb Handle parse errors for attrs/secrets 2017-05-09 13:44:33 +02:00
shell_detector_test.rb Add inspec env command to configure shell tab-completion 2016-08-10 02:07:53 +01:00