Prepare to release 1.5.2-2
d/tests: Make stubby daemon listen on an unknown port and test 10 times
Roger Shimizu
3 years ago
|
0 |
getdns (1.5.2-2) unstable; urgency=medium
|
|
1 |
|
|
2 |
* Team upload.
|
|
3 |
* d/tests: Make stubby daemon listen on an unknown port and test
|
|
4 |
10 times.
|
|
5 |
|
|
6 |
-- Roger Shimizu <rosh@debian.org> Wed, 27 May 2020 22:30:25 +0900
|
|
7 |
|
0 | 8 |
getdns (1.5.2-1) unstable; urgency=medium
|
1 | 9 |
|
2 | 10 |
* Team upload.
|
0 | 0 |
Tests: stubby
|
1 | 1 |
Depends: stubby, knot-dnsutils
|
|
2 |
Restrictions: allow-stderr, needs-internet
|
0 | 0 |
#!/bin/bash
|
1 | 1 |
set -e
|
2 | 2 |
|
|
3 |
stubby -C $(dirname $0)/stubby.yml &
|
|
4 |
port=5533
|
|
5 |
error=0
|
|
6 |
counter=0
|
|
7 |
|
3 | 8 |
# a simple smoke test just make sure that at least one query can go through:
|
4 | |
diff -u <(kdig +short @127.0.0.1 getdnsapi.net) <(echo 185.49.141.37)
|
|
9 |
sleep 0.1
|
|
10 |
PID=$(ps x|grep stubby.yml|grep -v grep|cut -d" " -f1)
|
|
11 |
echo PID of stubby: $PID
|
|
12 |
time for i in {0..9}; do
|
|
13 |
if diff -u <(kdig +short @::1@$port getdnsapi.net) <(echo 185.49.141.37); then
|
|
14 |
printf .
|
|
15 |
else
|
|
16 |
printf !
|
|
17 |
error=$((error+1))
|
|
18 |
fi
|
|
19 |
counter=$((counter+1))
|
|
20 |
done
|
|
21 |
|
|
22 |
[ -n "$PID" ] && kill $PID
|
|
23 |
echo $error "time(s) error out of $counter times run."
|
|
24 |
exit $error
|
5 | 25 |
|
6 | 26 |
# more ideas for better tests? we want them! send them to the BTS, please.
|
|
0 |
resolution_type: GETDNS_RESOLUTION_STUB
|
|
1 |
dns_transport_list:
|
|
2 |
- GETDNS_TRANSPORT_TLS
|
|
3 |
tls_authentication: GETDNS_AUTHENTICATION_REQUIRED
|
|
4 |
tls_query_padding_blocksize: 128
|
|
5 |
edns_client_subnet_private : 1
|
|
6 |
round_robin_upstreams: 1
|
|
7 |
idle_timeout: 10000
|
|
8 |
listen_addresses:
|
|
9 |
- 127.0.0.1@5533
|
|
10 |
- 0::1@5533
|
|
11 |
upstream_recursive_servers:
|
|
12 |
- address_data: 8.8.8.8
|
|
13 |
tls_auth_name: "dns.google"
|
|
14 |
- address_data: 8.8.4.4
|
|
15 |
tls_auth_name: "dns.google"
|
|
16 |
- address_data: 2001:4860:4860::8888
|
|
17 |
tls_auth_name: "dns.google"
|
|
18 |
- address_data: 2001:4860:4860::8844
|
|
19 |
tls_auth_name: "dns.google"
|