inspec/lib
Miah Johnson b40e553f15 Ensure @params in shadow resource always has a valid value. (#2939)
* Add tests for method chained shadow resource with readable and
unreadable shadow files.

Ensure @params always has a safe value, otherwise we may stacktrace when
unable to read /etc/shadow and invoked with method chaining.

* Wrap deprecation notices with a proc/must_output to clean up test
output.

Added some missing newlines.

Catch deprecation notice on `lines`.

* Resolve the majority of the issues pointed out by @tbramble.

Deprecate `lines`; its really only used internally but it was 'exposed'
through tests and who knows if there is external use. `lines` is not
documented as a property at least..

`#set_params` is much better now =)

Signed-off-by: Miah Johnson <miah@chia-pet.org>
2018-04-12 15:37:22 -04:00
..
bundles Mitigate trivial warning output on test (#2872) 2018-03-28 11:22:01 -04:00
fetchers Rubocop: disable GuardClause and ClassLength (#2382) 2017-12-07 20:22:55 +01:00
inspec Bump version to 2.1.38 by Expeditor 2018-04-12 18:31:16 +00:00
matchers Remove deprecations for InSpec 2.0 (#2506) 2018-02-08 11:05:21 +01:00
resource_support New Skeletal Resource aws_route_tables (#2643) 2018-04-05 12:51:22 -04:00
resources Ensure @params in shadow resource always has a valid value. (#2939) 2018-04-12 15:37:22 -04:00
source_readers Bump Rubocop to 0.49.1 (#2323) 2017-11-21 08:49:41 +01:00
utils Mitigate trivial warning output on test (#2872) 2018-03-28 11:22:01 -04:00
inspec.rb Add new "reporter" system (replacement for "formatters"), support multiple reporters per run (#2464) 2018-02-08 10:06:58 +01:00