* CHEF-5200: This fix applies waiver if exception occurs while eval the control inside control block. This ensures that waiver are got applied in case of resouce level failures too.
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
* When waiver file is empty error should be raised the written is invalid for the empty waiver file.
Added different test to check only_if waiver is applied when the waived control in the waived file has expired.
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
* Fix lint
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
* Fix test failing on windows due to different exit code on the Windows.
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
---------
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
* Added ability to merge cli and config reporter options
* Test cases to validate working of reporter configuration using cli and config
* Documentation change to add information on reporter configurations usage with both
* Added Doc review changes and text fixture for config json
* Verify fix
* Verify pipeline test fixes for reporter options to be read successfully
* Test changes in both cli and config reporter usage scenarios to fix verify pipeline
* Review comments to improvise
* Renamed testing fixture file for reporter cli config file
---------
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
Co-authored-by: Nikita Mathur <Nik08@users.noreply.github.com>
* Added ability to merge cli and config reporter options
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
* Test cases to validate working of reporter configuration using cli and config
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
* Documentation change to add information on reporter configurations usage with both
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
* Added Doc review changes and text fixture for config json
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
* Verify fix
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
* Verify pipeline test fixes for reporter options to be read successfully
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
* Test changes in both cli and config reporter usage scenarios to fix verify pipeline
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
* Review comments to improvise
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
* Renamed testing fixture file for reporter cli config file
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
---------
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
* CHEF-3832: Fix for InSpec Parallel fails to fetch remote profiles due to cache contention.
This fix creates the write exclusive lock on the cache directory of profile till write operation is finished for git fetcher
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
* Refactored to have locking and unlocking logic inside cache. Cache directory is not required for archived directories and this is currently only required by git fetcher
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
* REFACTOR: adds method in fetcher to return true if requires cache locking mechanism to avoid cache contention
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
* Adds exception handling
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
* Handles interruption in cache creation process to avoid empty cache directory creation or currupted data
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
* Refactored to handle interruption through SystemExit
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
* Fixed the failing test. While creating lock cache_key need to be extracted from the respective fetcher.
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
---------
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
* test github action
Signed-off-by: Sean Simmons <ssimmons@progress.com>
* adding verify private to this pipeline
Signed-off-by: Sean Simmons <ssimmons@progress.com>
* adding private pipeline definition file
Signed-off-by: Sean Simmons <ssimmons@progress.com>
* testing workflow
Signed-off-by: Sean Simmons <ssimmons@progress.com>
* forcing public false
Signed-off-by: Sean Simmons <ssimmons@progress.com>
---------
Signed-off-by: Sean Simmons <ssimmons@progress.com>
* test github action
Signed-off-by: Sean Simmons <ssimmons@progress.com>
* adding verify private to this pipeline
Signed-off-by: Sean Simmons <ssimmons@progress.com>
* adding private pipeline definition file
Signed-off-by: Sean Simmons <ssimmons@progress.com>
---------
Signed-off-by: Sean Simmons <ssimmons@progress.com>
* Import simplified expeditor config from inspec-prime inspec-6 branch. Significantly, privatize the verify pipeline.
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
* Import verify scripts from inspec-prime inspec-6 branch
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
* Remove public: false per sean
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
---------
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
* FIX: Handle invalid license exception as handled in base_cli:57
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
* Use 174 error code when exiting with license subsystem error from license add
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
---------
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
Co-authored-by: Clinton Wolfe <clintoncwolfe@gmail.com>
* Adds test for licensing_config
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
Fix lint
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
Read the value of license server url from env for test
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
* Spell InSpec corrrectly in test
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
* Linting
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
---------
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
Co-authored-by: Clinton Wolfe <clintoncwolfe@gmail.com>