]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
mash results into a string
authorAlan T. DeKok <aland@freeradius.org>
Fri, 5 Jan 2024 15:29:31 +0000 (10:29 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 5 Jan 2024 15:29:31 +0000 (10:29 -0500)
as we can't do list comparisons.  Perhaps we need to add that.

src/tests/modules/unbound/dns.unlang

index bee7dc199cbbde9260980d667a28d04501065181..b7cd921891feb5180db6216e3c4776c415ae6e8c 100644 (file)
@@ -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")) {