]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add PROXYv2 related tests for TLS DNS transport
authorArtem Boldariev <artem@boldariev.com>
Tue, 9 May 2023 17:49:38 +0000 (20:49 +0300)
committerArtem Boldariev <artem@boldariev.com>
Wed, 6 Dec 2023 13:15:24 +0000 (15:15 +0200)
This commit adds a set of PROXYv2 related tests to ensure that Stream
DNS over TLS supports this mode.

tests/isc/tlsdns_test.c

index d238c831c166e33a5b7a6952c88e9ebb5eca7a3f..9f98ed3ebcfc53893c88d105a43c5d0e4e746ff8 100644 (file)
@@ -138,6 +138,24 @@ ISC_LOOP_TEST_IMPL(tlsdns_recv_send) {
        }
 }
 
+/* PROXY tests */
+
+ISC_LOOP_TEST_IMPL(proxy_tlsdns_noop) { loop_test_tlsdns_noop(arg); }
+
+ISC_LOOP_TEST_IMPL(proxy_tlsdns_noresponse) {
+       loop_test_tlsdns_noresponse(arg);
+}
+
+ISC_LOOP_TEST_IMPL(proxy_tlsdns_timeout_recovery) {
+       loop_test_tlsdns_timeout_recovery(arg);
+}
+
+ISC_LOOP_TEST_IMPL(proxy_tlsdns_recv_one) { loop_test_tlsdns_recv_one(arg); }
+
+ISC_LOOP_TEST_IMPL(proxy_tlsdns_recv_two) { loop_test_tlsdns_recv_two(arg); }
+
+ISC_LOOP_TEST_IMPL(proxy_tlsdns_recv_send) { loop_test_tlsdns_recv_send(arg); }
+
 ISC_TEST_LIST_START
 
 ISC_TEST_ENTRY_CUSTOM(tlsdns_noop, stream_noop_setup, stream_noop_teardown)
@@ -154,6 +172,22 @@ ISC_TEST_ENTRY_CUSTOM(tlsdns_recv_send, stream_recv_send_setup,
 
 /* FIXME: Re-add the noalpn tests */
 
+/* PROXY */
+
+ISC_TEST_ENTRY_CUSTOM(proxy_tlsdns_noop, proxystream_noop_setup,
+                     proxystream_noop_teardown)
+ISC_TEST_ENTRY_CUSTOM(proxy_tlsdns_noresponse, proxystream_noresponse_setup,
+                     proxystream_noresponse_teardown)
+ISC_TEST_ENTRY_CUSTOM(proxy_tlsdns_timeout_recovery,
+                     proxystream_timeout_recovery_setup,
+                     proxystream_timeout_recovery_teardown)
+ISC_TEST_ENTRY_CUSTOM(proxy_tlsdns_recv_one, proxystream_recv_one_setup,
+                     proxystream_recv_one_teardown)
+ISC_TEST_ENTRY_CUSTOM(proxy_tlsdns_recv_two, proxystream_recv_two_setup,
+                     proxystream_recv_two_teardown)
+ISC_TEST_ENTRY_CUSTOM(proxy_tlsdns_recv_send, proxystream_recv_send_setup,
+                     proxystream_recv_send_teardown)
+
 ISC_TEST_LIST_END
 
 static int