* Creates inspec-7 branch
Signed-off-by: Vasu1105 <vjagdale@progress.com>
* Temporarily bump major version to 7 so we can pin against it. This change should be reverted and the bump performed by the Bump Major Version tag when the inspec-7 branch merges. (#7092)
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
* Revert "Temporarily bump major version to 7 so we can pin against it. This ch…" (#7094)
This reverts commit 619a7981b1.
* Temporarily bump major version to 7 so we can pin against it. This change should be reverted and the bump performed by the Bump Major Version tag when the inspec-7 branch merges. (#7095)
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
* Test fixture for resource pack plugin type - test properly fail
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
* resource pack plugin type defintion file
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
* Failing test for a gem profile dependency
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
* Very rough non-wokring gem fetcher, just committing to collaborate
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
* Gem fetcher fix to fetch dependent gem profiles
Signed-off-by: Nik08 <nikita.mathur@progress.com>
* Mock out sha256 method - implementation postponed
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
* Fetcher attempts to install plugin, no test support
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
* Add ability to install gem resource packs from local path
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
* Add basic gemspec and Gemfile for test resource pack
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
* Add gem file provider to cover case when local path is used
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
* Add an inspec.yml to the resource pack gem
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
* Add new gem resource pack source reader
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
* Add support for gems in CachedFetcher - so the cache now understands locations in the users gems directory
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
* Add resource pack libraries to autoload list on profile library load - this is effectively the plugin activation
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
* Tests green for gem-based resource packs with local loading
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
* Change dep to be on inspec-core, not inspec
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
* Add note about how to test with a gem. I've done so and it works
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
* Linting fixes
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
* Resolve TODO - implement sha256 (alias cache_key) for Gem fetcher
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
* Unit tests passing, v2 of etc/deprecation.json, with fallback patterns and validation
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
* Add method to look up names of missing resource packs, unwieldy name
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
* First attempts at resource pack fallback support working to install gems and load into the reource registry. Still having a type error in the functional test.
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
* Also include libraries path in load path
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
* Correct test resource test by adding cmp
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
* Removed the unused variable which was causing the error at first run of inspec profile with resource pack dependency as gem
Signed-off-by: Vasu1105 <vjagdale@progress.com>
* chore: remove mongodb resources & unit tests
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
* chore: remove mongodb docs
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
* chore: remove mock calls for mongodb resource
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
---------
Signed-off-by: Vasu1105 <vjagdale@progress.com>
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
Signed-off-by: Nik08 <nikita.mathur@progress.com>
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
Co-authored-by: Vasu1105 <vjagdale@progress.com>
Co-authored-by: Clinton Wolfe <clintoncwolfe@gmail.com>
Co-authored-by: Nik08 <nikita.mathur@progress.com>