Fix Consistency06 test scenario MULT-SOA-MNAMES-NO-DEL-UNDEL-2#1414
Conversation
Another rewrite of a unit test that led me to uncover a typo in the original unit test. Actually, this time, the specification was incorrect (see zonemaster/zonemaster#1414).
|
The specification says ns1 and ns2, seems to use ns3 and ns4. The specification needs an update. |
|
Yes indeed, there is another problem in that scenario specification. The first bullet point says “NS are out-of-bailiwick, "ns3.mult-soa-mnames-no-del-undel-2.consistency06.xb" and "ns4.mult-soa-mnames-no-del-undel-2.consistency06.xb"”. But the next bullet points talk about “ns1” and “ns2”. All we really need is for ns3 and ns4 to return SOA records that differ in their MNAME fields. |
In the specification for test scenarios for Consistency06, scenario MULT-SOA-MNAMES-NO-DEL-UNDEL-2 erroneously lists ns3.mult-soa-mnames-no-del-undel-2.consistency06.xb twice in the undelegated data. The second occurrence should be ns4, not ns3. Right above, the description of what SOA MNAME field values appear mention name servers named ns1 and ns2, where ns3 and ns4 was probably meant. Unfortunately for us, fixing the first discrepancy does not fix the underlying problem: it instead underscores that there is a bug in the current implementation of Consistency06.
5b0d94b to
aef6a7d
Compare
|
After checking the implementation (i.e. the test zone files and CoreDNS configuration), I’ve brought the spec in line with how it was actually implemented. It doesn’t change the core idea of the scenario, however. |
Another rewrite of a unit test that led me to uncover a typo in the original unit test. Actually, this time, the specification was incorrect (see zonemaster/zonemaster#1414).
Another rewrite of a unit test that led me to uncover a typo in the original unit test. Actually, this time, the specification was incorrect (see zonemaster/zonemaster#1414).
Another rewrite of a unit test that led me to uncover a typo in the original unit test. Actually, this time, the specification was incorrect (see zonemaster/zonemaster#1414).
|
I noticed another oddity: in the CoreDNS configuration for this scenario, there are Shouldn’t these I’m not sure if this is an error, because making the changes on my local setup does not change the messages that my runs of |
|
All is well. It turns out I needed to hunt down typos in more places that I thought. Now the scenario works again. I’ll make a PR that rerecords |
Scenario MULT-SOA-MNAMES-NO-DEL-UNDEL-2 was marked as not testable, but it turned out that it was due to errors in the test scenario implementation (i.e. the zone files and CoreDNS configuration). After fixing the problem (see zonemaster/zonemaster#1414), we can enable the scenario in Zonemaster-Engine’s test suite. The test data is also rerecorded.
No. "ns1" and "ns2" are IB names in the thought delegation not present in the undelegated zone. Note NXDOMAIN. "ns3" and "ns4" are OOB and cannot belong to the zone. |
Looking carefully at the logs generated by CoreDNS shows that there were some issues with the zone files and the configuration that prevented that scenario from actually working correctly. Fortunately, fixing these typos now fixes the zonemaster-cli run.
Caught a few more typos in Consistency06 test scenario specifications.
b3b7dbf to
f383f69
Compare
Scenario MULT-SOA-MNAMES-NO-DEL-UNDEL-2 was marked as not testable, but it turned out that it was due to errors both in the test scenario implementation (i.e. the zone files and CoreDNS configuration: see zonemaster/zonemaster#1414) and a small typo in the .t file. In the .t file, scenario MULT-SOA-MNAMES-NO-DEL-UNDEL-2 erroneously listed ns3.mult-soa-mnames-no-del-undel-2.consistency06.xb twice in its undelegated data. The second instance should be ns4, not ns3. After fixing these problems, we can enable the scenario in Zonemaster-Engine’s test suite and rerecord the test data.
Another rewrite of a unit test that led me to uncover a typo in the original unit test. Actually, this time, the specification was incorrect (see zonemaster/zonemaster#1414).
Another rewrite of a unit test that led me to uncover a typo in the original unit test. Actually, this time, the specification was incorrect (see zonemaster/zonemaster#1414).
Another rewrite of a unit test that led me to uncover a typo in the original unit test. Actually, this time, the specification was incorrect (see zonemaster/zonemaster#1414).
Another rewrite of a unit test that led me to uncover a typo in the original unit test. Actually, this time, the specification was incorrect (see zonemaster/zonemaster#1414).
Another rewrite of a unit test that led me to uncover a typo in the original unit test. Actually, this time, the specification was incorrect (see zonemaster/zonemaster#1414).
Purpose
This PR fixes a handful of minor errors in a test scenario for Consistency06, in the specification and the configuration files that implement it. Together, they prevented the correct operation of scenario MULT-SOA-MNAMES-NO-DEL-UNDEL-2.
Context
Refactoring of Zonemaster-Engine unit tests.
Changes
zonemaster-clioutput.How to test this PR
N/A.