Skip to content

Commit

Permalink
Fun with quotation
Browse files Browse the repository at this point in the history
  • Loading branch information
jejones3141 committed Jan 10, 2024
1 parent 838f9ed commit 7decaf2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/tests/modules/ldap/groups_rfc2307bis.unlang
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
4 changes: 2 additions & 2 deletions src/tests/modules/unbound/dns.unlang
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7decaf2

Please sign in to comment.