inspec/test
Josh Hudson 2d44b6e5e0 Cached profiles with Compliance Fetcher (#3221)
* Leverage existance check in Compliance::Fetcher.resolve to not re-download locally cached profiles
* Move logic from Compliance::API.exist? to Compliance::API.profiles to reuse code in cases where we need to access profiles' metadata directly.
* Declare @upstream_sha256 if target is a string
* Handle other fetchers that don't support upstream_sha256 within Inspec::CachedFetcher.initialize
* Add initialize for Compliance::Fetcher to not pollute Fetchers::Url with its logic
* Add Compliance::Fetcher.sha256 to leverage upstream_sha256 instead of relying on inherited method from Fetchers::Url
* Revert changes to cached fetcher that are unnecessary after refactor
* Pacify the god of ruby syntax
* Move Compliance::API.profiles filtering logic to end of method to leverage normalization of mapped_profiles
* Add and update unit tests to support caching with Compliance::Fetcher.upstream_sha256

Signed-off-by: Josh Hudson <jhudson@chef.io>
2018-08-28 09:11:38 -04:00
..
cookbooks/os_prepare Fix the unit tests by pining to a older openssl cookbook. (#3251) 2018-07-25 13:08:12 -04:00
functional Plugins V2 API: CLI Command Plugin Type, Again (#3296) 2018-08-16 20:22:28 -04:00
integration Add aws_elb and aws_elbs resources (#3079) 2018-06-07 15:06:05 -04:00
unit Cached profiles with Compliance Fetcher (#3221) 2018-08-28 09:11:38 -04: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 Cached profiles with Compliance Fetcher (#3221) 2018-08-28 09:11:38 -04:00