Skip to content

Commit

Permalink
Start converting remaining unlang function calls to new syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
jejones3141 committed Jan 10, 2024
1 parent edda97e commit 838f9ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/tests/modules/ldap/groups_rfc2307bis.unlang
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,22 @@
#
# 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
}

#
# Resolve using group DN
#
if !(%(ldap.memberof:cn=foo,ou=groups,dc=example,dc=com) == true) {
if !(%ldap.memberof(cn=foo,ou=groups,dc=example,dc=com) == true) {
test_fail
}

if !(%(ldap.memberof:cn=baz,ou=groups,dc=example,dc=com) == false) {
if !(%ldap.memberof(cn=baz,ou=groups,dc=example,dc=com) == false) {
test_fail
}

Expand Down
4 changes: 2 additions & 2 deletions src/tests/modules/redis_ippool/pool_tool_static.unlang
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ if !(&reply.Framed-IP-Address == 192.168.0.10) {
#
# Check the ZSCORE hasn't changed
#
if !(%(redis:ZSCORE {%{control.IP-Pool.Name}}:pool %{reply.Framed-IP-Address}) == %{zscore}) {
if !(%redis(ZSCORE, {%{control.IP-Pool.Name}}:pool, %{reply.Framed-IP-Address}) == %{zscore}) {
test_fail
}

Expand Down Expand Up @@ -98,7 +98,7 @@ if !(%redis(GET, {%{control.IP-Pool.Name}}:device:11:22:33:44:55:66) == '192.168
test_fail
}

&zscore := %(redis:ZSCORE {%{control.IP-Pool.Name}}:pool 192.168.0.1)
&zscore := %redis(ZSCORE, {%{control.IP-Pool.Name}}:pool, 192.168.0.1)
if !(&zscore < (uint64)0x10000000000000) {
test_fail
}
Expand Down

0 comments on commit 838f9ed

Please sign in to comment.