inspec/test/unit
Ryan Davis 201d98fd26 Refactored and added an alternative test mock resource system.
test/unit/resources/json_test.rb had the start of a setup to directly
instantiate resources. I've refactored that up to helper.rb and
extended it with some helper methods so we can directly specify what a
resource command should respond with. For many/most of our tests, this
should be sufficient.

Finally, I switched our yum tests over to use the new setup. This will
allow us to address #4517 and extend the tests for centos8 output
differences with ease. Ease, folks... ease.

Signed-off-by: Ryan Davis <zenspider@chef.io>
Cc: Miah Johnson <miah@chia-pet.org>
2019-10-16 16:54:07 -07:00
..
bundles/inspec-supermarket First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
dependencies First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
dsl First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
fetchers First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
inputs Revert to a small amount of duplicating to_hash in inspec/input.rb 2019-10-06 19:30:37 -04:00
matchers Fixed tests to work with rspec-expectations 3.8.5+. 2019-10-02 18:08:19 -07:00
mock And the YAML fixture too. 2019-10-09 20:49:33 -07:00
plugin First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
profiles First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
reporters Refactored unit test to be more like the other one. 2019-10-09 17:41:03 -07:00
resource_supports/aws First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
resources Refactored and added an alternative test mock resource system. 2019-10-16 16:54:07 -07:00
source_readers First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
utils First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
backend_test.rb First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
base_cli_test.rb First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
cached_fetcher_test.rb These tests probably never passed. 2019-07-29 11:42:30 -07:00
config_test.rb First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
file_provider_test.rb First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
impact_test.rb First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
runner_test.rb First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
shell_detector_test.rb First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
ui_test.rb First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00