From: Moritz Schneider Date: Wed, 12 Jun 2019 16:44:21 +0000 (+0200) Subject: Add unit test for check the configuration of outbound max retries X-Git-Tag: release-1.14.0rc1~51^2^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78fa3fcb070b3101af3de27b2708c040142cc110;p=thirdparty%2Funbound.git Add unit test for check the configuration of outbound max retries --- diff --git a/testdata/fwd_error_retries.rpl b/testdata/fwd_error_retries.rpl new file mode 100644 index 000000000..b63086c0f --- /dev/null +++ b/testdata/fwd_error_retries.rpl @@ -0,0 +1,27 @@ +; config options +server: + outbound-msg-retry: 1 + +forward-zone: + name: "." + forward-addr: 216.0.0.1 +CONFIG_END +SCENARIO_BEGIN Test basic forwarding with servfail and retry of 1 +STEP 1 QUERY +ENTRY_BEGIN +REPLY RD +SECTION QUESTION +www.example.com. IN A +ENTRY_END +; query fails with servfail, now we make only outgoing-msg-retry=1 retries +STEP 2 ERROR +; returns servfail +STEP 14 CHECK_ANSWER +ENTRY_BEGIN +MATCH opcode qname qtype +SECTION QUESTION +REPLY SERVFAIL QR RD RA +MATCH all +www.example.com. IN A +ENTRY_END +SCENARIO_END