mirror of
https://github.com/inspec/inspec
synced 2024-12-18 00:53:22 +00:00
49d36de0f3
* Allow `inspec check` to ignore `only_if` When using `inspec check` a mock Train backend is created. This means that the following would raise an error because `os.name` is `nil` ``` only_if { os.name.include?('anything') } ``` Since `inspec check` isn't concerned with the evaluation of `only_if` this skips those checks if the block given raises an error. Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com> * Remove unnecessary `e` in rescue Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com> * Modify implementation to use `check_mode` Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com> * Move `check_mode` concept to the Profile scope Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com> * Fix lint after rubocop upgrade Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com> * Add comment for mocked ControlEvalContext options Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com> |
||
---|---|---|
.. | ||
complete-metadata | ||
complete-profile | ||
dependencies | ||
empty-metadata | ||
failures | ||
invalid-version | ||
legacy-complete-metadata | ||
legacy-empty-metadata | ||
legacy-simple-metadata | ||
library | ||
license-invalid | ||
license-proprietary | ||
license-spdx | ||
only-if-os-nope | ||
profile-support-skip | ||
profile-with-bad-metadata | ||
profile-with-resource-exceptions | ||
simple-inheritance | ||
simple-metadata | ||
skippy-controls | ||
skippy-profile-os | ||
slash-in-name/not-allowed | ||
spec_only | ||
supermarket-dep | ||
supported_inspec | ||
unsupported_inspec | ||
windows-only | ||
{{special-path}} |