Class: QaServer::TermScenarioValidator

Inherits:
ScenarioValidator show all
Defined in:
app/validators/qa_server/term_scenario_validator.rb

Constant Summary collapse

TERM_ACTION =
'term'

Constants inherited from ScenarioValidator

ScenarioValidator::ALL_VALIDATIONS, ScenarioValidator::DEFAULT_VALIDATION_TYPE, ScenarioValidator::FAIL, ScenarioValidator::PASS, ScenarioValidator::UNKNOWN, ScenarioValidator::VALIDATE_ACCURACY, ScenarioValidator::VALIDATE_ACCURACY_COMPARISON, ScenarioValidator::VALIDATE_CONNECTION

Instance Attribute Summary

Attributes inherited from ScenarioValidator

#scenario, #status_log, #validation_type

Instance Method Summary collapse

Methods inherited from ScenarioValidator

#log_without_running, #run

Constructor Details

#initialize(scenario:, status_log:, validation_type: DEFAULT_VALIDATION_TYPE) ⇒ TermScenarioValidator

Returns a new instance of TermScenarioValidator.

Parameters:

  • scenario (TermScenario)

    the scenario to run

  • status_log (ScenarioLogger)

    logger for recording test results

  • validation_type (Symbol) (defaults to: DEFAULT_VALIDATION_TYPE)

    the type of scenarios to run (e.g. VALIDATE_CONNECTION, VALIDATE_ACCURACY, ALL_VALIDATIONS)



14
15
16
17
# File 'app/validators/qa_server/term_scenario_validator.rb', line 14

def initialize(scenario:, status_log:, validation_type: DEFAULT_VALIDATION_TYPE)
  super
  @request_data = scenario.identifier
end