-
Notifications
You must be signed in to change notification settings - Fork 33
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
Refactoring of utility function in Zonemaster::Engine::Test::Zone #1296
Conversation
This commit aligns the aforementioned module with other Test modules for consistency. Rename '_is_ip_version_disabled()' to '_ip_disabled_message()' Replace message tags 'SKIP_IPV{4/6}_DISABLED' with 'IPV{4/6}_DISABLED'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Just a remark that might be outside of scope of this PR: the message tags SKIP_IPVx_DISABLED
are linked to the testcase (here ZONE0x
in your example). Can we consider moving them to SYSTEM
or something else since they are not directly linked to the testcase (not defined in the specification)?
(Maybe I should open an issue for this.)
They are still related to the execution of the test case. I think it is relevant to bind all messages that are outputted within the execution of the test case to the test case. If a message will not be outputted if the test case is removed from the profile should probably be tagged for that test case. Note that also TEST_CASE_START and TEST_CASE_END are not defined in the specification. |
It is also noticeable that for several test cases no IPV6_DISABLED is outputted. |
Yes that is normal from the current implementation. Test Cases Zone02 to Zone07 call a special helper function
Considering that the first queried name server is IPv4 and gives the desired resource record(s), no other query is sent (meaning that no IPv6 name server is skipped thus leading to no |
Purpose
This PR updates the aforementioned module (
Zonemaster::Engine::Test::Zone
) with respect to other Test modules, for consistency. See the Changes section below.Context
Fixes #1276
Changes
_is_ip_version_disabled()
to_ip_disabled_message()
SKIP_IPV{4/6}_DISABLED
withIPV{4/6}_DISABLED
How to test this PR
Tests should pass.
Also,
IPV{4/6}_DISABLED
message tags are now shown:(Note that the remaining
SKIP_IPV6_DISABLED
messages are from direct calls to theZonemaster::Engine::Zone
module, and are now properly distinguishable in this Test module)