inspec/lib
Adam Leff d029f7f58c Properly return postgres query errors on failure (#2179)
When using the `query` method in the `postgres_session` resource, if
the query fails, the `query` method attempts to call `skip_resource`
with an error message. Not only does the `skip_resource` not properly
work, but it also returns a `String` object back to the test which is
probably going to try and call the `output` method on it to run the test.

This results in an error like this:

```
  Can't read
     ∅  undefined method `output' for "output":String
```

This change returns the full psql output as a Lines object to the
user, including stderr, so they can at least get the error in their
test output and avoids undefined method errors.

Signed-off-by: Adam Leff <adam@leff.co>
2017-09-23 09:27:05 +02:00
..
bundles Show versions for inspec compliance profiles (#2143) 2017-09-13 17:52:45 -04:00
fetchers Don't send HTTP headers that have nil values (#1948) 2017-06-21 19:09:13 -05:00
inspec Bump version to 1.38.6 by Chef Expeditor 2017-09-23 07:17:42 +00:00
matchers New 'be_in' matcher for matching against values in a list (#2022) 2017-08-07 16:05:22 +02:00
resources Properly return postgres query errors on failure (#2179) 2017-09-23 09:27:05 +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 wildcard support to Utils::FindFiles (#2159) 2017-09-23 09:17:34 +02:00
inspec.rb Remove any "All Rights Reserved" references (#1969) 2017-06-28 04:14:19 -07:00