aboutsummaryrefslogtreecommitdiff
path: root/testdata/ede_cache_snoop_noth_auth.rpl
diff options
context:
space:
mode:
Diffstat (limited to 'testdata/ede_cache_snoop_noth_auth.rpl')
-rw-r--r--testdata/ede_cache_snoop_noth_auth.rpl33
1 files changed, 33 insertions, 0 deletions
diff --git a/testdata/ede_cache_snoop_noth_auth.rpl b/testdata/ede_cache_snoop_noth_auth.rpl
new file mode 100644
index 000000000000..d243fdde00ac
--- /dev/null
+++ b/testdata/ede_cache_snoop_noth_auth.rpl
@@ -0,0 +1,33 @@
+; config options
+server:
+ ede: yes
+CONFIG_END
+
+SCENARIO_BEGIN Test ede-cache-snoop-not-authoritative
+; Scenario overview:
+; - query for example.com. A record with EDNS without the RD bit
+; - check that we get a refused answer with EDE (RFC8914) code 20 - Not Authoritative
+
+; Query without RD flag
+STEP 1 QUERY
+ENTRY_BEGIN
+ SECTION QUESTION
+ example.com. IN A
+ SECTION ADDITIONAL
+ HEX_EDNSDATA_BEGIN
+ HEX_EDNSDATA_END
+ENTRY_END
+
+; Check that we got ede 20
+STEP 10 CHECK_ANSWER
+ENTRY_BEGIN
+ MATCH all ede=20
+ REPLY QR RA REFUSED
+ SECTION QUESTION
+ example.com. IN A
+ SECTION ADDITIONAL
+ HEX_EDNSDATA_BEGIN
+ HEX_EDNSDATA_END
+ENTRY_END
+
+SCENARIO_END