diff options
Diffstat (limited to 'tests/libzscanner')
-rw-r--r-- | tests/libzscanner/TESTS | 1 | ||||
-rw-r--r-- | tests/libzscanner/data/57_SVCB.in | 9 | ||||
-rw-r--r-- | tests/libzscanner/data/57_SVCB.out | 28 | ||||
-rw-r--r-- | tests/libzscanner/data/59_WALLET.in | 14 | ||||
-rw-r--r-- | tests/libzscanner/data/59_WALLET.out | 32 | ||||
-rw-r--r-- | tests/libzscanner/test_zscanner.in | 2 |
6 files changed, 83 insertions, 3 deletions
diff --git a/tests/libzscanner/TESTS b/tests/libzscanner/TESTS index 227cdb4..1ac5755 100644 --- a/tests/libzscanner/TESTS +++ b/tests/libzscanner/TESTS @@ -84,3 +84,4 @@ 56_ZONEMD 57_SVCB 58_HTTPS +59_WALLET diff --git a/tests/libzscanner/data/57_SVCB.in b/tests/libzscanner/data/57_SVCB.in index 78c07a6..e726aa4 100644 --- a/tests/libzscanner/data/57_SVCB.in +++ b/tests/libzscanner/data/57_SVCB.in @@ -20,7 +20,10 @@ $TTL 1 @ SVCB 1 . ech="Zm9vYg==" @ SVCB 1 . ipv6hint=::1 @ SVCB 1 . ipv6hint="::1" -@ SVCB 1 . key7 +@ SVCB 1 . dohpath=/q{?dns} +@ SVCB 1 . dohpath="/dns-query{?dns}" +@ SVCB 1 . ohttp +@ SVCB 1 . key707 @ SVCB 1 . key65535 @ SVCB 1 . key65535=a @ SVCB 1 . key65535="a" @@ -90,6 +93,10 @@ example.com. SVCB 16 foo.example.org. alpn=f\\\092oo\092,bar,h2 @ SVCB 1 . ipv6hint= @ SVCB 1 . ipv6hint=::1,,::2 @ SVCB 1 . ipv6hint=::W +@ SVCB 1 . dohpath +@ SVCB 1 . dohpath= +@ SVCB 1 . ohttp= +@ SVCB 1 . ohttp=x ; RFC KO examples example.com. SVCB 1 foo.example.com. ( diff --git a/tests/libzscanner/data/57_SVCB.out b/tests/libzscanner/data/57_SVCB.out index 3b701d2..33e1ffb 100644 --- a/tests/libzscanner/data/57_SVCB.out +++ b/tests/libzscanner/data/57_SVCB.out @@ -110,7 +110,25 @@ OWNER=00 CLASS=0001 RRTTL=00000001 RTYPE=0040 -RDATA=00010000070000 +RDATA=000100000700082F717B3F646E737D +------ +OWNER=00 +CLASS=0001 +RRTTL=00000001 +RTYPE=0040 +RDATA=000100000700102F646E732D71756572797B3F646E737D +------ +OWNER=00 +CLASS=0001 +RRTTL=00000001 +RTYPE=0040 +RDATA=00010000080000 +------ +OWNER=00 +CLASS=0001 +RRTTL=00000001 +RTYPE=0040 +RDATA=00010002C30000 ------ OWNER=00 CLASS=0001 @@ -300,6 +318,14 @@ WARNG=ZS_BAD_ADDRESS_CHAR ------ WARNG=ZS_BAD_ADDRESS_CHAR ------ +WARNG=ZS_BAD_SVCB_PARAM +------ +WARNG=ZS_BAD_SVCB_PARAM +------ +WARNG=ZS_BAD_SVCB_PARAM +------ +WARNG=ZS_BAD_SVCB_PARAM +------ WARNG=ZS_DUPLICATE_SVCB_KEY ------ WARNG=ZS_BAD_SVCB_PARAM diff --git a/tests/libzscanner/data/59_WALLET.in b/tests/libzscanner/data/59_WALLET.in new file mode 100644 index 0000000..9767506 --- /dev/null +++ b/tests/libzscanner/data/59_WALLET.in @@ -0,0 +1,14 @@ +$ORIGIN . +$TTL 1 + +; The WALLET is the same as the TXT, so there are the differences and basics only. + +; OK +@ WALLET "" "test1" "\255" test2 ; Array of text strings +@ WALLET \# 1 00 ; Hexadecimal rdata +@ TYPE262 \# 1 00 ; TYPE + Hexadecimal rdata +@ TYPE262 "" ; TYPE +@ wallet "" ; Type in lower-case + +; KO +@ WALLET diff --git a/tests/libzscanner/data/59_WALLET.out b/tests/libzscanner/data/59_WALLET.out new file mode 100644 index 0000000..11e6425 --- /dev/null +++ b/tests/libzscanner/data/59_WALLET.out @@ -0,0 +1,32 @@ +OWNER=00 +CLASS=0001 +RRTTL=00000001 +RTYPE=0106 +RDATA=0005746573743101FF057465737432 +------ +OWNER=00 +CLASS=0001 +RRTTL=00000001 +RTYPE=0106 +RDATA=00 +------ +OWNER=00 +CLASS=0001 +RRTTL=00000001 +RTYPE=0106 +RDATA=00 +------ +OWNER=00 +CLASS=0001 +RRTTL=00000001 +RTYPE=0106 +RDATA=00 +------ +OWNER=00 +CLASS=0001 +RRTTL=00000001 +RTYPE=0106 +RDATA=00 +------ +WARNG=ZS_BAD_RDATA +------ diff --git a/tests/libzscanner/test_zscanner.in b/tests/libzscanner/test_zscanner.in index 10d2b5c..8cc9008 100644 --- a/tests/libzscanner/test_zscanner.in +++ b/tests/libzscanner/test_zscanner.in @@ -11,7 +11,7 @@ TMPDIR=$(test_tmpdir) TESTS_DIR="$SOURCE"/data ZSCANNER_TOOL="$BUILD"/zscanner-tool -plan 86 +plan 87 mkdir -p "$TMPDIR"/includes/ for a in 1 2 3 4 5 6; do |