diff options
author | Daniel Salzman <daniel.salzman@nic.cz> | 2024-07-06 13:15:05 +0200 |
---|---|---|
committer | Daniel Salzman <daniel.salzman@nic.cz> | 2024-07-11 12:01:35 +0200 |
commit | af767a6d245f22c1ecc8e1c83433892cb5153ae9 (patch) | |
tree | 2be69ce2d29311511ea74293184e179b245c3352 /tests/libzscanner | |
parent | Merge branch 'dohpath' into 'master' (diff) | |
download | knot-af767a6d245f22c1ecc8e1c83433892cb5153ae9.tar.xz knot-af767a6d245f22c1ecc8e1c83433892cb5153ae9.zip |
libzscanner: add WALLET rrtype
Diffstat (limited to '')
-rw-r--r-- | tests/libzscanner/TESTS | 1 | ||||
-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 |
4 files changed, 48 insertions, 1 deletions
diff --git a/tests/libzscanner/TESTS b/tests/libzscanner/TESTS index 227cdb4c1..1ac5755b6 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/59_WALLET.in b/tests/libzscanner/data/59_WALLET.in new file mode 100644 index 000000000..976750659 --- /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 000000000..11e642559 --- /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 10d2b5ce8..8cc9008e6 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 |