Skip to content

Commit

Permalink
Merge pull request PowerDNS#12279 from Habbie/auth-test-ordername
Browse files Browse the repository at this point in the history
auth: add ordername testing
  • Loading branch information
Habbie authored Dec 6, 2022
2 parents 1f901d1 + a241e63 commit d76c991
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 7 deletions.
5 changes: 4 additions & 1 deletion regression-tests/tests/ent-axfr/expected_result
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
*.a.b.c.test.com. 3600 IN NSEC counter.test.com. A RRSIG NSEC
*.test.test.com. 3600 IN NSEC sub.test.test.com. CNAME RRSIG NSEC
10.order.test.com. 3600 IN NSEC 100.order.test.com. A RRSIG NSEC
100.order.test.com. 3600 IN NSEC 15.order.test.com. A RRSIG NSEC
15.order.test.com. 3600 IN NSEC server1.test.com. A RRSIG NSEC
_double._tcp.dc.test.com. 3600 IN NSEC _ldap._tcp.dc.test.com. SRV RRSIG NSEC
_ldap._tcp.dc.test.com. 3600 IN NSEC _root._tcp.dc.test.com. SRV RRSIG NSEC
_root._tcp.dc.test.com. 3600 IN NSEC enum.test.com. SRV RRSIG NSEC
Expand All @@ -13,7 +16,7 @@ enum.test.com. 3600 IN NSEC hightxt.test.com. NAPTR RRSIG NSEC
hightxt.test.com. 3600 IN NSEC interrupted-rrset.test.com. TXT RRSIG NSEC SPF
interrupted-rrset.test.com. 3600 IN NSEC ns1.test.com. A TXT RRSIG NSEC
ns1.test.com. 3600 IN NSEC ns2.test.com. A RRSIG NSEC
ns2.test.com. 3600 IN NSEC server1.test.com. A RRSIG NSEC
ns2.test.com. 3600 IN NSEC 10.order.test.com. A RRSIG NSEC
server1.test.com. 3600 IN NSEC *.test.test.com. A RP RRSIG NSEC
sub.test.test.com. 3600 IN NSEC www.test.test.com. NS RRSIG NSEC
test.com. 3600 IN NSEC _underscore.test.com. NS SOA MX RRSIG NSEC DNSKEY
Expand Down
10 changes: 7 additions & 3 deletions regression-tests/tests/ent-axfr/expected_result.nsec3
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
0bh8di769i8vvtkdds8efjda19abigo5.test.com. 3600 IN NSEC3 1 0 1 abcd 2EU2GULBU53H9UVHFALSHPBO2A83T6L2 TXT RRSIG SPF
0bh8di769i8vvtkdds8efjda19abigo5.test.com. 3600 IN NSEC3 1 0 1 abcd 23E9S542JEHG7KBKNCNJPJHPHUPCD1JE TXT RRSIG SPF
23e9s542jehg7kbkncnjpjhphupcd1je.test.com. 3600 IN NSEC3 1 0 1 abcd 2EU2GULBU53H9UVHFALSHPBO2A83T6L2 A RRSIG
2eu2gulbu53h9uvhfalshpbo2a83t6l2.test.com. 3600 IN NSEC3 1 0 1 abcd 2GKS2N3JPQF62QOHAVFQ1PHOLM3HR7RA NS SOA MX RRSIG DNSKEY NSEC3PARAM
2gks2n3jpqf62qohavfq1pholm3hr7ra.test.com. 3600 IN NSEC3 1 0 1 abcd 4UL8F3M96VCONEA85U93DH9SG570J4FU TXT RRSIG
4ul8f3m96vconea85u93dh9sg570j4fu.test.com. 3600 IN NSEC3 1 0 1 abcd 53L445R26RG1CSBI4TS1K3I3EL1F30VM DNAME RRSIG
53l445r26rg1csbi4ts1k3i3el1f30vm.test.com. 3600 IN NSEC3 1 0 1 abcd 53LJH1SKI76U8MVC0TPOA423TDUR0KL8 SRV RRSIG
53ljh1ski76u8mvc0tpoa423tdur0kl8.test.com. 3600 IN NSEC3 1 0 1 abcd 79RA8K3G5KAI1HG9JLHBR6P0TP933M7V RRSIG TYPE65226
53ljh1ski76u8mvc0tpoa423tdur0kl8.test.com. 3600 IN NSEC3 1 0 1 abcd 5VE0V7KDJ5BSD70O75FC4GTF8T2QJRB8 RRSIG TYPE65226
5ve0v7kdj5bsd70o75fc4gtf8t2qjrb8.test.com. 3600 IN NSEC3 1 0 1 abcd 79RA8K3G5KAI1HG9JLHBR6P0TP933M7V A RRSIG
79ra8k3g5kai1hg9jlhbr6p0tp933m7v.test.com. 3600 IN NSEC3 1 0 1 abcd 79U3DAS6UCCTNS1BR3TVD8QKANNI351L A RRSIG
79u3das6ucctns1br3tvd8qkanni351l.test.com. 3600 IN NSEC3 1 0 1 abcd 7MMURA8H40BE5N4KOAN7RNMKURSAMH99
7mmura8h40be5n4koan7rnmkursamh99.test.com. 3600 IN NSEC3 1 0 1 abcd 88F1BQRB2ISCVFEL2SQQCKSVFLNEKAP6
88f1bqrb2iscvfel2sqqcksvflnekap6.test.com. 3600 IN NSEC3 1 0 1 abcd A5LABAGJJEVR86GH0HF3JG7NUFHGA5AR CNAME RRSIG
a5labagjjevr86gh0hf3jg7nufhga5ar.test.com. 3600 IN NSEC3 1 0 1 abcd AOVP95MR44HQEFRQUS6NOMSD944BM3VB A RRSIG
aovp95mr44hqefrqus6nomsd944bm3vb.test.com. 3600 IN NSEC3 1 0 1 abcd B022O9DKSAJ737FH77E7KQQTJ3OM56KI A RRSIG
b022o9dksaj737fh77e7kqqtj3om56ki.test.com. 3600 IN NSEC3 1 0 1 abcd DAFC69CV5N2TFCF6OVBVTV94DRGMQJO5
b022o9dksaj737fh77e7kqqtj3om56ki.test.com. 3600 IN NSEC3 1 0 1 abcd BAE1G74DOIMCDKG03DAFHMGRLH2L19TU
bae1g74doimcdkg03dafhmgrlh2l19tu.test.com. 3600 IN NSEC3 1 0 1 abcd CGFU8T55L510A9K688GBO9UACMBBS2AB
cgfu8t55l510a9k688gbo9uacmbbs2ab.test.com. 3600 IN NSEC3 1 0 1 abcd DAFC69CV5N2TFCF6OVBVTV94DRGMQJO5 A RRSIG
dafc69cv5n2tfcf6ovbvtv94drgmqjo5.test.com. 3600 IN NSEC3 1 0 1 abcd DE592K86U3HEVDJ57JPBT7J5KV7DOO78 TXT RRSIG
de592k86u3hevdj57jpbt7j5kv7doo78.test.com. 3600 IN NSEC3 1 0 1 abcd EBAN51BJGUGORB20UNP5PEEC7S5D2EKA NS
eban51bjgugorb20unp5peec7s5d2eka.test.com. 3600 IN NSEC3 1 0 1 abcd ENG6HBK77VJMQFVG6S04HAJOA2201LII SRV RRSIG
Expand Down
10 changes: 7 additions & 3 deletions regression-tests/tests/ent-axfr/expected_result.nsec3-optout
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
0bh8di769i8vvtkdds8efjda19abigo5.test.com. 3600 IN NSEC3 1 1 1 abcd 2EU2GULBU53H9UVHFALSHPBO2A83T6L2 TXT RRSIG SPF
0bh8di769i8vvtkdds8efjda19abigo5.test.com. 3600 IN NSEC3 1 1 1 abcd 23E9S542JEHG7KBKNCNJPJHPHUPCD1JE TXT RRSIG SPF
23e9s542jehg7kbkncnjpjhphupcd1je.test.com. 3600 IN NSEC3 1 1 1 abcd 2EU2GULBU53H9UVHFALSHPBO2A83T6L2 A RRSIG
2eu2gulbu53h9uvhfalshpbo2a83t6l2.test.com. 3600 IN NSEC3 1 1 1 abcd 2GKS2N3JPQF62QOHAVFQ1PHOLM3HR7RA NS SOA MX RRSIG DNSKEY NSEC3PARAM
2gks2n3jpqf62qohavfq1pholm3hr7ra.test.com. 3600 IN NSEC3 1 1 1 abcd 4UL8F3M96VCONEA85U93DH9SG570J4FU TXT RRSIG
4ul8f3m96vconea85u93dh9sg570j4fu.test.com. 3600 IN NSEC3 1 1 1 abcd 53L445R26RG1CSBI4TS1K3I3EL1F30VM DNAME RRSIG
53l445r26rg1csbi4ts1k3i3el1f30vm.test.com. 3600 IN NSEC3 1 1 1 abcd 53LJH1SKI76U8MVC0TPOA423TDUR0KL8 SRV RRSIG
53ljh1ski76u8mvc0tpoa423tdur0kl8.test.com. 3600 IN NSEC3 1 1 1 abcd 79RA8K3G5KAI1HG9JLHBR6P0TP933M7V RRSIG TYPE65226
53ljh1ski76u8mvc0tpoa423tdur0kl8.test.com. 3600 IN NSEC3 1 1 1 abcd 5VE0V7KDJ5BSD70O75FC4GTF8T2QJRB8 RRSIG TYPE65226
5ve0v7kdj5bsd70o75fc4gtf8t2qjrb8.test.com. 3600 IN NSEC3 1 1 1 abcd 79RA8K3G5KAI1HG9JLHBR6P0TP933M7V A RRSIG
79ra8k3g5kai1hg9jlhbr6p0tp933m7v.test.com. 3600 IN NSEC3 1 1 1 abcd 79U3DAS6UCCTNS1BR3TVD8QKANNI351L A RRSIG
79u3das6ucctns1br3tvd8qkanni351l.test.com. 3600 IN NSEC3 1 1 1 abcd 7MMURA8H40BE5N4KOAN7RNMKURSAMH99
7mmura8h40be5n4koan7rnmkursamh99.test.com. 3600 IN NSEC3 1 1 1 abcd 88F1BQRB2ISCVFEL2SQQCKSVFLNEKAP6
88f1bqrb2iscvfel2sqqcksvflnekap6.test.com. 3600 IN NSEC3 1 1 1 abcd A5LABAGJJEVR86GH0HF3JG7NUFHGA5AR CNAME RRSIG
a5labagjjevr86gh0hf3jg7nufhga5ar.test.com. 3600 IN NSEC3 1 1 1 abcd AOVP95MR44HQEFRQUS6NOMSD944BM3VB A RRSIG
aovp95mr44hqefrqus6nomsd944bm3vb.test.com. 3600 IN NSEC3 1 1 1 abcd B022O9DKSAJ737FH77E7KQQTJ3OM56KI A RRSIG
b022o9dksaj737fh77e7kqqtj3om56ki.test.com. 3600 IN NSEC3 1 1 1 abcd DAFC69CV5N2TFCF6OVBVTV94DRGMQJO5
b022o9dksaj737fh77e7kqqtj3om56ki.test.com. 3600 IN NSEC3 1 1 1 abcd BAE1G74DOIMCDKG03DAFHMGRLH2L19TU
bae1g74doimcdkg03dafhmgrlh2l19tu.test.com. 3600 IN NSEC3 1 1 1 abcd CGFU8T55L510A9K688GBO9UACMBBS2AB
cgfu8t55l510a9k688gbo9uacmbbs2ab.test.com. 3600 IN NSEC3 1 1 1 abcd DAFC69CV5N2TFCF6OVBVTV94DRGMQJO5 A RRSIG
dafc69cv5n2tfcf6ovbvtv94drgmqjo5.test.com. 3600 IN NSEC3 1 1 1 abcd EBAN51BJGUGORB20UNP5PEEC7S5D2EKA TXT RRSIG
eban51bjgugorb20unp5peec7s5d2eka.test.com. 3600 IN NSEC3 1 1 1 abcd ENG6HBK77VJMQFVG6S04HAJOA2201LII SRV RRSIG
eng6hbk77vjmqfvg6s04hajoa2201lii.test.com. 3600 IN NSEC3 1 1 1 abcd H5855RVON2AASM8QV1NK49I1B2MKBEJP A TXT RRSIG
Expand Down
5 changes: 5 additions & 0 deletions regression-tests/zones/test.com
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,8 @@ urc65226 IN TYPE65226 \# 3 414243
interrupted-rrset IN A 1.1.1.1
interrupted-rrset IN TXT "check AXFR signpipe"
interrupted-rrset IN A 2.2.2.2

; ordername sorting
10.order IN A 192.168.0.1
15.order IN A 192.168.0.1
100.order IN A 192.168.0.1

0 comments on commit d76c991

Please sign in to comment.