]> git.ipfire.org Git - thirdparty/systemd.git/commit
test: introduce a dummy DNS test server
authorFrantisek Sumsal <frantisek@sumsal.cz>
Mon, 8 Jan 2024 13:20:30 +0000 (14:20 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 10 Jan 2024 17:13:29 +0000 (02:13 +0900)
commitf1caa5d6e7770fef7fa033f9eb68a580e8555f42
treede47148463958f1b22a535580c5f0ec4adcbd8b2
parented6c51781f1cd319875ff413538d30a46ed64bb4
test: introduce a dummy DNS test server

Introduce a _very_ simple DNS server using our internal DNS-related
code, that responds to queries with specifically crafted packets, to
cover scenarios that are difficult to reproduce with well-behaving DNS
servers.

Also, hide the test DNS server behind Knot using the dnsproxy module, so
we don't have to switch DNS servers during tests.
src/resolve/meson.build
src/resolve/test-resolved-dummy-server.c [new file with mode: 0644]
test/knot-data/knot.conf
test/units/testsuite-75.sh