zonemaster-engine icon indicating copy to clipboard operation
zonemaster-engine copied to clipboard

Define default message severities inside test modules

Open mattias-p opened this issue 10 months ago • 0 comments

Depends on:

  • #1333

Add a new class method (e.g. all_messages()) to the test module interface for returning a nested hash of test case name => message tag => default severity entry for each message tag that can be emitted by the test module.

Add a new class method (e.g. all_test_cases()) to the test module interface for returning a list of all test cases implemented by the test module.

Deprecate the metadata() methods and recommend using all_test_cases and/or all_messages instead.

Replace internal calls to metadata() where possible. N.b. this call is still needed in generateTestMessages.pl util in the zonemaster/zonemaster repo.

mattias-p avatar Apr 04 '24 15:04 mattias-p