Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define default message severities inside test modules #1334

Open
mattias-p opened this issue Apr 4, 2024 · 0 comments
Open

Define default message severities inside test modules #1334

mattias-p opened this issue Apr 4, 2024 · 0 comments

Comments

@mattias-p
Copy link
Member

mattias-p commented Apr 4, 2024

Depends on:

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant