Exception: CemAcpt::Scan::BenchmarkNotFoundError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/cem_acpt/scan/errors.rb

Overview

Raised when a test case has no entry in ‘cem_acpt_scan.benchmarks.cis_cat` and so no benchmark XCCDF filename can be resolved. The message carries the missing config key so the operator can fix it without re-running.

Instance Method Summary collapse

Constructor Details

#initialize(test_case, scanner, config_key) ⇒ BenchmarkNotFoundError

Returns a new instance of BenchmarkNotFoundError.



39
40
41
# File 'lib/cem_acpt/scan/errors.rb', line 39

def initialize(test_case, scanner, config_key)
  super("No benchmark configured for test case '#{test_case}' (scanner: #{scanner}). Set '#{config_key}' in cem_acpt config.")
end