]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix dsync unit test
authorMark Andrews <marka@isc.org>
Fri, 23 Jan 2026 02:38:16 +0000 (13:38 +1100)
committerMark Andrews (GitLab job 6764530) <marka@isc.org>
Fri, 23 Jan 2026 14:24:32 +0000 (14:24 +0000)
The dsync unit test was not being run and the domain names in
the test data should have been fully qualified.

(cherry picked from commit 2159f74a1f3b7498a59516375be928109ec847e2)

tests/dns/rdata_test.c

index 51c56ac63bf95f9a61f442607ff72b496526d1d2..e95cf5cc8fbfee790d1a87b693a94a7eb00c042b 100644 (file)
@@ -1790,43 +1790,43 @@ ISC_RUN_TEST_IMPL(dsync) {
                /*
                 * Known type and known scheme.
                 */
-               TEXT_VALID("CDS NOTIFY 0 example.com"),
+               TEXT_VALID("CDS NOTIFY 0 example.com."),
                /*
                 * Known type and unknown scheme.
                 */
-               TEXT_VALID("CDS 3 0 example.com"),
+               TEXT_VALID("CDS 3 0 example.com."),
                /*
                 * Unknown type and known scheme.
                 */
-               TEXT_VALID("TYPE1000 NOTIFY 0 example.com"),
+               TEXT_VALID("TYPE1000 NOTIFY 0 example.com."),
                /*
                 * Unknown type and unknown scheme.
                 */
-               TEXT_VALID("TYPE1000 3 0 example.com"),
+               TEXT_VALID("TYPE1000 3 0 example.com."),
                /*
                 * Unknown type and unknown scheme, max port.
                 */
-               TEXT_VALID("TYPE1000 3 65535 example.com"),
+               TEXT_VALID("TYPE1000 3 65535 example.com."),
                /*
                 * Unknown type and max scheme, max port.
                 */
-               TEXT_VALID("TYPE64000 255 65535 example.com"),
+               TEXT_VALID("TYPE64000 255 65535 example.com."),
                /*
                 * Invalid type and max scheme, max port.
                 */
-               TEXT_INVALID("INVALID 255 65536 example.com"),
+               TEXT_INVALID("INVALID 255 65536 example.com."),
                /*
                 * Unknown type and too big scheme, max port.
                 */
-               TEXT_INVALID("TYPE1000 256 65536 example.com"),
+               TEXT_INVALID("TYPE1000 256 65536 example.com."),
                /*
                 * Unknown type and unknown scheme, port too big.
                 */
-               TEXT_INVALID("TYPE1000 3 65536 example.com"),
+               TEXT_INVALID("TYPE1000 3 65536 example.com."),
                /*
                 * Unknown type and bad scheme, max port.
                 */
-               TEXT_INVALID("TYPE1000 UNKNOWN 65535 example.com"),
+               TEXT_INVALID("TYPE1000 UNKNOWN 65535 example.com."),
                /*
                 * Sentinel.
                 */
@@ -3285,6 +3285,7 @@ ISC_TEST_ENTRY(csync)
 ISC_TEST_ENTRY(dnskey)
 ISC_TEST_ENTRY(doa)
 ISC_TEST_ENTRY(ds)
+ISC_TEST_ENTRY(dsync)
 ISC_TEST_ENTRY(eid)
 ISC_TEST_ENTRY(hip)
 ISC_TEST_ENTRY(https_svcb)