Sha256: 31a2926860b0ba070a5c53bdbbd0e1e6fd015bbe62644cd34ee07ed660ff6497
Contents?: true
Size: 1.27 KB
Versions: 1
Compression:
Stored size: 1.27 KB
Contents
# This class runs a single term scenario and logs the results. module QaServer class TermScenarioValidator < ScenarioValidator TERM_ACTION = 'term'.freeze # @param scenario [TermScenario] the scenario to run # @param status_log [ScenarioLogger] logger for recording test results # @param validation_type [Symbol] the type of scenarios to run (e.g. VALIDATE_CONNECTION, VALIDATE_ACCURACY, ALL_VALIDATIONS) def initialize(scenario:, status_log:, validation_type: DEFAULT_VALIDATION_TYPE) super end # Run a term scenario and log results. def run_connection_scenario test_connection(min_expected_size: scenario.min_result_size, scenario_type_name: 'term') do authority.find(scenario.identifier, subauth: scenario.subauthority_name) end end # Run a term scenario and log results. def run_accuracy_scenario # no accuracy scenarios defined for terms at this time end private def action TERM_ACTION end def accuracy_scenario? # At this time, all scenarios are connection scenarios for terms. false end def connection_scenario? # At this time, all scenarios are connection scenarios for terms. true end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
qa_server-0.1.99 | app/validators/qa_server/term_scenario_validator.rb |