]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Update the rdata unit test
authorAram Sargsyan <aram@isc.org>
Mon, 10 Feb 2025 13:27:44 +0000 (13:27 +0000)
committerArаm Sаrgsyаn <aram@isc.org>
Mon, 17 Feb 2025 17:33:43 +0000 (17:33 +0000)
Update the rdata unit test to accommodate the change in the default
represenation of the Service Parameter Keys (SvcParamKeys) for the
SVCB records.

tests/dns/rdata_test.c

index bed419a20e4b93848b608b77297e3463daf92038..85ed8056ed9a52cbacd9a3d31414e7952f66bd05 100644 (file)
@@ -2698,31 +2698,32 @@ ISC_RUN_TEST_IMPL(https_svcb) {
                             "key123=abc)"),
                /* dohpath tests */
                TEXT_VALID_LOOPCHG(1, "1 example.net. dohpath=/{dns}",
-                                  "1 example.net. key7=\"/{dns}\""),
+                                  "1 example.net. dohpath=\"/{dns}\""),
                TEXT_VALID_LOOPCHG(1, "1 example.net. dohpath=/{+dns}",
-                                  "1 example.net. key7=\"/{+dns}\""),
+                                  "1 example.net. dohpath=\"/{+dns}\""),
                TEXT_VALID_LOOPCHG(1, "1 example.net. dohpath=/{#dns}",
-                                  "1 example.net. key7=\"/{#dns}\""),
+                                  "1 example.net. dohpath=\"/{#dns}\""),
                TEXT_VALID_LOOPCHG(1, "1 example.net. dohpath=/{.dns}",
-                                  "1 example.net. key7=\"/{.dns}\""),
-               TEXT_VALID_LOOPCHG(1, "1 example.net. dohpath=\"/{;dns}\"",
-                                  "1 example.net. key7=\"/{;dns}\""),
+                                  "1 example.net. dohpath=\"/{.dns}\""),
+               TEXT_VALID_LOOP(1, "1 example.net. dohpath=\"/{;dns}\""),
                TEXT_VALID_LOOPCHG(1, "1 example.net. dohpath=/{?dns}",
-                                  "1 example.net. key7=\"/{?dns}\""),
+                                  "1 example.net. dohpath=\"/{?dns}\""),
                TEXT_VALID_LOOPCHG(1, "1 example.net. dohpath=/some/path{?dns}",
-                                  "1 example.net. key7=\"/some/path{?dns}\""),
+                                  "1 example.net. "
+                                  "dohpath=\"/some/path{?dns}\""),
                TEXT_VALID_LOOPCHG(1, "1 example.net. dohpath=/{dns:9999}",
-                                  "1 example.net. key7=\"/{dns:9999}\""),
+                                  "1 example.net. dohpath=\"/{dns:9999}\""),
                TEXT_VALID_LOOPCHG(1, "1 example.net. dohpath=/{dns*}",
-                                  "1 example.net. key7=\"/{dns*}\""),
+                                  "1 example.net. dohpath=\"/{dns*}\""),
                TEXT_VALID_LOOPCHG(
                        1, "1 example.net. dohpath=/some/path?key=value{&dns}",
-                       "1 example.net. key7=\"/some/path?key=value{&dns}\""),
+                       "1 example.net. "
+                       "dohpath=\"/some/path?key=value{&dns}\""),
                TEXT_VALID_LOOPCHG(1,
                                   "1 example.net. "
                                   "dohpath=/some/path?key=value{&dns,x*}",
                                   "1 example.net. "
-                                  "key7=\"/some/path?key=value{&dns,x*}\""),
+                                  "dohpath=\"/some/path?key=value{&dns,x*}\""),
                TEXT_INVALID("1 example.com. dohpath=not-relative"),
                TEXT_INVALID("1 example.com. dohpath=/{?no_dns_variable}"),
                TEXT_INVALID("1 example.com. dohpath=/novariable"),