inspec/test
Adam Leff 12fec238f7
json resource: ensure params is not nil in even of read/parse failure (#2354)
When the JSON resource (and those that subclass off of it) were modified
to properly throw exceptions in the event of failure, this caused the
`params` method to return nil instead of what it used to be, an empty
hash.

This is fine in the case of a describe block, but it's not okay when used
outside of a describe, as it will cause users trying to pluck from the
hash to throw a dreaded-and-unhelpful NilClass error.

This change pre-populates the params to be an empty hash, and if the
read/parse steps fail, it will still be one.

Signed-off-by: Adam Leff <adam@leff.co>
2017-11-29 16:31:06 -05:00
..
cookbooks/os_prepare Add wildcard support to Utils::FindFiles (#2159) 2017-09-23 09:17:34 +02:00
functional Allow skipping/failing resources in FilterTable (#2349) 2017-11-29 07:32:40 -05:00
integration wmi resource: properly escape quotes in WMI query (#2342) 2017-11-29 12:01:44 +01:00
unit json resource: ensure params is not nil in even of read/parse failure (#2354) 2017-11-29 16:31:06 -05: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 Unique export file for security policy resource (#2350) 2017-11-29 15:16:40 +01:00