From 9d441c93d042a1d2e9ce9a0b8b47f8d578af111d Mon Sep 17 00:00:00 2001 From: Aram Sargsyan Date: Mon, 10 Feb 2025 13:27:44 +0000 Subject: [PATCH] Update the rdata unit test 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 | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/tests/dns/rdata_test.c b/tests/dns/rdata_test.c index bed419a20e..85ed8056ed 100644 --- a/tests/dns/rdata_test.c +++ b/tests/dns/rdata_test.c @@ -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"),