From 7afc43ab35e3701ba95c728a1d43e76a191929de Mon Sep 17 00:00:00 2001 From: Ian Bashford Date: Sat, 2 Jan 2021 12:11:26 +0000 Subject: [PATCH] add tests for statics (#1569) --- .ci/ci-test.sh | 11 +++++++++++ .ci/test3-dnscrypt-proxy.toml | 21 +++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 .ci/test3-dnscrypt-proxy.toml diff --git a/.ci/ci-test.sh b/.ci/ci-test.sh index 7c21d2ca..42fe9268 100755 --- a/.ci/ci-test.sh +++ b/.ci/ci-test.sh @@ -135,3 +135,14 @@ if [ -s error.log ]; then cat *.log exit 1 fi + +section +../dnscrypt-proxy/dnscrypt-proxy -loglevel 3 -config test3-dnscrypt-proxy.toml -pidfile /tmp/dnscrypt-proxy.pidfile & +sleep 5 + +section +t || dig -p${DNS_PORT} A microsoft.com @127.0.0.1 | grep -Fq "NOERROR" || fail +t || dig -p${DNS_PORT} A MICROSOFT.COM @127.0.0.1 | grep -Fq "NOERROR" || fail + +kill $(cat /tmp/dnscrypt-proxy.pidfile) +sleep 5 \ No newline at end of file diff --git a/.ci/test3-dnscrypt-proxy.toml b/.ci/test3-dnscrypt-proxy.toml new file mode 100644 index 00000000..52228ab9 --- /dev/null +++ b/.ci/test3-dnscrypt-proxy.toml @@ -0,0 +1,21 @@ +server_names = ['myserver'] +listen_addresses = ['127.0.0.1:5300'] +require_dnssec = true +dnscrypt_ephemeral_keys = true +tls_disable_session_tickets = false +ignore_system_dns = false +lb_strategy = 'p12' +block_ipv6 = true +block_unqualified = true +block_undelegated = true +cache = true + +[query_log] +file = 'query.log' + + + +[static] + + [static.'myserver'] + stamp = 'sdns://AQcAAAAAAAAADjIxMi40Ny4yMjguMTM2IOgBuE6mBr-wusDOQ0RbsV66ZLAvo8SqMa4QY2oHkDJNHzIuZG5zY3J5cHQtY2VydC5mci5kbnNjcnlwdC5vcmc' \ No newline at end of file