From: Alan T. DeKok Date: Fri, 5 Jan 2024 15:29:31 +0000 (-0500) Subject: mash results into a string X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cef9cdaee8921a11ce34e215a663eaf9d49ab79c;p=thirdparty%2Ffreeradius-server.git mash results into a string as we can't do list comparisons. Perhaps we need to add that. --- diff --git a/src/tests/modules/unbound/dns.unlang b/src/tests/modules/unbound/dns.unlang index bee7dc199cb..b7cd921891f 100644 --- a/src/tests/modules/unbound/dns.unlang +++ b/src/tests/modules/unbound/dns.unlang @@ -52,7 +52,10 @@ if (&Module-Failure-Message != "Can't resolve zero length host") { test_fail } -&Tmp-String-1 := %dns('example.com', 'MX') +# +# Mash all of the results into a string +# +&Tmp-String-1 := "%dns('example.com', 'MX')" # Until we can handle multiple boxes in xlat expansion, the results # are concatenated into a single string @@ -69,7 +72,7 @@ if ((&Tmp-String-1 != '10mail.example.com') && (&Tmp-String-1 != '20mail2.exampl test_fail } -&Tmp-String-1 := %dns(n0nex1stent.d0ma1n,A) +&Tmp-String-1 := %dns('n0nex1stent.d0ma1n', 'A') # Running this on macOS produces a timeout due to the nonexistent TLD if ((&Module-Failure-Message != "dns - Nonexistent domain name") && (&Module-Failure-Message != "Timeout waiting for DNS resolution")) {