From 7decaf27a9cb1d000ca306131cb45d8d922bd1e8 Mon Sep 17 00:00:00 2001 From: James Jones Date: Wed, 10 Jan 2024 10:26:06 -0600 Subject: [PATCH] Fun with quotation --- src/tests/modules/ldap/groups_rfc2307bis.unlang | 4 ++-- src/tests/modules/unbound/dns.unlang | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tests/modules/ldap/groups_rfc2307bis.unlang b/src/tests/modules/ldap/groups_rfc2307bis.unlang index 7928111cc26a8..f79f5b1695cd1 100644 --- a/src/tests/modules/ldap/groups_rfc2307bis.unlang +++ b/src/tests/modules/ldap/groups_rfc2307bis.unlang @@ -6,11 +6,11 @@ # # Resolve using group name attribute # -if !(%ldap.memberof(foo) == true) { +if !(%ldap.memberof("foo") == true) { test_fail } -if !(%ldap.memberof(baz) == false) { +if !(%ldap.memberof("baz") == false) { test_fail } diff --git a/src/tests/modules/unbound/dns.unlang b/src/tests/modules/unbound/dns.unlang index 05d70f0c83898..6512777d7c46d 100644 --- a/src/tests/modules/unbound/dns.unlang +++ b/src/tests/modules/unbound/dns.unlang @@ -27,7 +27,7 @@ if (&result_ipaddr != 192.168.1.1) { test_fail } -&result_string := %dns('1.1.168.192.in-addr.arpa',PTR) +&result_string := %dns('1.1.168.192.in-addr.arpa', 'PTR') if (&result_string != 'www.example.com') { test_fail @@ -57,7 +57,7 @@ if (&Module-Failure-Message != "Can't resolve zero length host") { # Will return multiple records, though not in a defined sequence. # Each returned record is a pair of priority and host values. -&Filter-Id := %dns(example.com,MX) +&Filter-Id := %dns(example.com, 'MX') if !(((&Filter-Id[0] == '10') && (&Filter-Id[1] == 'mail.example.com') && (&Filter-Id[2] == '20') && (&Filter-Id[3] == 'mail2.example.com')) || ((&Filter-Id[2] == '10') && (&Filter-Id[3] == 'mail.example.com') && (&Filter-Id[0] == '20') && (&Filter-Id[1] == 'mail2.example.com'))) { test_fail