diff options
author | Libor Peltan <libor.peltan@nic.cz> | 2024-07-11 13:48:48 +0200 |
---|---|---|
committer | Libor Peltan <libor.peltan@nic.cz> | 2024-07-11 13:48:48 +0200 |
commit | 0a4bc6009d8e18f2669cb08ea6ca15d293f8e30a (patch) | |
tree | 076566a573a5f5562aeb3efca0977301a41e6fca /tests | |
parent | Merge branch 'dohpath' into 'master' (diff) | |
parent | libknot: add WALLET rrtype (diff) | |
download | knot-0a4bc6009d8e18f2669cb08ea6ca15d293f8e30a.tar.xz knot-0a4bc6009d8e18f2669cb08ea6ca15d293f8e30a.zip |
Merge branch 'rrtype_wallet' into 'master'
Add support for WALLET rrtype
See merge request knot/knot-dns!1684
Diffstat (limited to 'tests')
-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 |