inspec/lib/plugins/inspec-parallel
Nikita Mathur 752b39b9c9
CHEF-4559 Extended support to inspec parallel for reporters using config (#6578)
* Validate reporter options from config when --reporter option is missing in options file

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Message changes in case of error in invocations validation

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Config reporters fix for null or empty values

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Testing cases to validate reporters using config

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Added missing fixture files for inspec parallel reporter config test

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Removed check for stdout false in config for reporters for parallel validation

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

---------

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2023-07-25 08:49:31 -04:00
..
lib CHEF-4559 Extended support to inspec parallel for reporters using config (#6578) 2023-07-25 08:49:31 -04:00
test Skip parallel exec tests on windows 2022-06-14 15:17:02 +05:30
inspec-parallel.gemspec CFINSPEC-120 inspec parallel feature (#5975) 2022-06-13 13:58:41 -04:00
README.md CFINSPEC-120 inspec parallel feature (#5975) 2022-06-13 13:58:41 -04:00

Parallel Plugin

Plugin to handle parallel InSpec scan operations over multiple targets.

parallel cli_command

Implements the inspec parallel exec CLI command.

child-status Plugin

This reporter is an InSpec Streaming Reporter. It is used internally by inspec parallel to provide status updates on child processes.

What This Plugin Does

For each control executed, after it is complete, the plugin emits a line to STDOUT like:

12/P/24/Control Title Here

When the run is complete, the single line 'EOF_MARKER' is emitted.

Where:

  • 12 is the number of the control (12th seen out of all controls in all profiles)
  • P indicates that it Passed (Also F = Failed, S = Skipped, E = Errored)
  • 24 is the total number of controls in the run
  • "Control Title Here" is the title (or if title is missing, id) of the last executed control