From 297fd027e70964df05e69234d0c8a2ed9f933884 Mon Sep 17 00:00:00 2001 From: George Thessalonikefs Date: Tue, 4 Oct 2022 13:30:03 +0200 Subject: [PATCH] - Update fetch_glue_cname.rpl test for possible outstanding queries. --- testdata/fetch_glue.rpl | 2 +- testdata/fetch_glue_cname.rpl | 65 ++++++++++++++++++----------------- 2 files changed, 35 insertions(+), 32 deletions(-) diff --git a/testdata/fetch_glue.rpl b/testdata/fetch_glue.rpl index 0edfcf569..8860d85b0 100644 --- a/testdata/fetch_glue.rpl +++ b/testdata/fetch_glue.rpl @@ -176,7 +176,7 @@ SECTION ADDITIONAL ns.example.com. IN A 1.2.3.4 ENTRY_END -; let possible outstanding queries finish resolving +; let (possible) outstanding queries finish resolving STEP 21 TRAFFIC SCENARIO_END diff --git a/testdata/fetch_glue_cname.rpl b/testdata/fetch_glue_cname.rpl index 4a86afa50..feda40a52 100644 --- a/testdata/fetch_glue_cname.rpl +++ b/testdata/fetch_glue_cname.rpl @@ -109,6 +109,16 @@ ns.example.com. IN AAAA SECTION AUTHORITY example.com. IN NS ns.example.com. ENTRY_END + +ENTRY_BEGIN +MATCH opcode qtype qname +ADJUST copy_id +REPLY QR NOERROR +SECTION QUESTION +ns2.example.com. IN AAAA +SECTION AUTHORITY +example.com. IN NS ns.example.com. +ENTRY_END RANGE_END ; ns.example.com. @@ -164,6 +174,28 @@ SECTION ADDITIONAL ns.example.com. IN A 1.2.3.4 ENTRY_END +ENTRY_BEGIN +MATCH opcode qtype qname +ADJUST copy_id +REPLY AA QR NOERROR +SECTION QUESTION +ns2.example.com. IN A +SECTION ANSWER +ns2.example.com. IN A 1.2.3.4 +SECTION AUTHORITY +example.com. IN NS ns.example.com. +ENTRY_END + +ENTRY_BEGIN +MATCH opcode qtype qname +ADJUST copy_id +REPLY QR NOERROR +SECTION QUESTION +ns2.example.com. IN AAAA +SECTION AUTHORITY +example.com. IN NS ns.example.com. +ENTRY_END + RANGE_END STEP 1 QUERY @@ -188,36 +220,7 @@ SECTION ADDITIONAL ns.example.com. IN A 1.2.3.4 ENTRY_END -; due to ordering of answer packets, this is still outstanding, remove it -STEP 21 CHECK_OUT_QUERY -ENTRY_BEGIN -ADJUST copy_id -MATCH qname qtype -REPLY QR -SECTION QUESTION -ns.example.com IN AAAA -ENTRY_END - -; some more recursion needed. -; to finish the NS query -STEP 40 QUERY -ENTRY_BEGIN -REPLY RD -SECTION QUESTION -. IN NS -ENTRY_END - -STEP 41 CHECK_ANSWER -ENTRY_BEGIN -MATCH all -REPLY QR RD RA NOERROR -SECTION QUESTION -. IN NS -SECTION ANSWER -. IN NS K.ROOT-SERVERS.NET. -SECTION AUTHORITY -SECTION ADDITIONAL -K.ROOT-SERVERS.NET. IN A 193.0.14.129 -ENTRY_END +; let (possible) outstanding queries finish resolving +STEP 21 TRAFFIC SCENARIO_END