1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2026-01-28 20:56:03 +00:00

test: Add TLS tracking integration test

This patch adds a new test, which verifies the TLS tracking.

Because we need to simulate SPF records, and Go does not support fully
intercepting DNS lookups yet, this test relies on dnsmasq to provide a
DNS resolver.

In the future, once Go supports DNS lookup interception, we can get rid
of this additional dependency.
This commit is contained in:
Alberto Bertogli
2018-06-02 11:30:17 +01:00
parent 4373f56a82
commit 029bca7013
14 changed files with 203 additions and 3 deletions

View File

@@ -0,0 +1,24 @@
# Configuration for dnsmasq, for testing purposes.
interface=lo
port=9053
no-resolv
no-poll
no-hosts
log-queries
# Note we need both ipv4 and ipv6 A record because some test environments may
# not support one or the other.
# srv-a zone
address=/srv-a/::1
address=/srv-a/127.0.0.1
mx-host=srv-a,srv-a,10
txt-record=srv-a,"v=spf1 a"
# srv-b zone
address=/srv-b/::1
address=/srv-b/127.0.0.1
mx-host=srv-b,srv-b,10
txt-record=srv-b,"v=spf1 a"