-
Notifications
You must be signed in to change notification settings - Fork 36
Implement new MethodV2: Get-Parent-NS-Names-and-IPs #1475
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
Implement new MethodV2: Get-Parent-NS-Names-and-IPs #1475
Conversation
|
Can the new unit test file format introduced by #1467 be used in this case too? |
Alas, no, because MethodsV2 tests do not work quite the same way as test case tests do. I’d need to implement a slightly different DSL if we wanted a format similar to #1467. It would be nice to have that, but it didn’t feel urgent to me because we are much less likely to touch MethodsV2 unit tests than test case tests. |
5faaa92 to
d6e9c1a
Compare
matsduf
left a comment
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 fine. Besides reviewing I rely on the scenarios/unit tests having passed.
d6e9c1a to
72cf62b
Compare
|
Just two small comments on the language. Else this looks good. Since the unit tests pass I see no issues. |
Implement the new method Get-Parent-NS-Names-and-IPs as per the specification. And make sure that it is memoized properly.
Somehow, introducing Get-Parent-NS-Names-and-IPs, then redefining Get-Parent-NS-IPs in terms of Get-Parent-NS-Names-and-IPs, has had side effects on some unit tests that perform tests against live zones: suddenly, they tried to perform queries to a variety of name servers (among which M-root). I haven’t fully investigated the reason why the tests failed, but it might be because the order of the servers being queried has changed. I also suspect some of the name servers have changed IP addresses since recording. The offending .t files are t/Test.t, t/Test-dnssec.t and t/Test-connectivity.t. Rerecording the corresponding data files is enough to fix everything, except for t/Test-dnssec.data where it was necessary to splice part of the newly recorded data into the existing data so that everything continues to work. It is rather inelegant, but it gets the job done until the affected tests are migrated to the new scenario-based framework.
72cf62b to
e24a21e
Compare
|
Tag change to |
Purpose
This PR provides an implementation of Get-Parent-NS-Names-and-IPs.
Context
See zonemaster/zonemaster#1418.
Changes
t/*.datafiles where needed.How to test this PR
Unit tests should pass.