From: Nick Porter Date: Wed, 18 Jan 2023 14:15:15 +0000 (+0000) Subject: Minor changes in test output with list_as_attr = true X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=770c4be700d863ec3c4cee2b3715b66b0b15e866;p=thirdparty%2Ffreeradius-server.git Minor changes in test output with list_as_attr = true --- diff --git a/src/tests/unit/condition/base.txt b/src/tests/unit/condition/base.txt index da3fb2eb601..ac43d6c80aa 100644 --- a/src/tests/unit/condition/base.txt +++ b/src/tests/unit/condition/base.txt @@ -600,7 +600,7 @@ match &NAS-IP-Address < 192.168.0.0/24 # This is allowed and means "the list is not empty" # condition (&reply.) -match &reply +match &reply. # # Expansions of environment variables diff --git a/src/tests/unit/xlat/cond_base.txt b/src/tests/unit/xlat/cond_base.txt index 258e4c76858..041fb6a3cf6 100644 --- a/src/tests/unit/xlat/cond_base.txt +++ b/src/tests/unit/xlat/cond_base.txt @@ -236,10 +236,8 @@ match (&Session-Timeout == '10') # Except for dates, which can be humanly readable! # This one is be an expansion, so it's left as-is. # -# @todo - yuck. Suppress full path? -# xlat_purify &Event-Timestamp == "January 1, 2012 %{User-Name}" -match (&Event-Timestamp == %(cast:string "January 1, 2012 %{request[0].User-Name}")) +match (&Event-Timestamp == %(cast:string "January 1, 2012 %{User-Name}")) # This one is NOT an expansion, so it's parsed into normal form xlat_purify &Event-Timestamp == 'January 1 2012' @@ -276,9 +274,8 @@ match false xlat_purify 127.0.0.1 == %{md4:127.0.0.1} match NULL -# @todo - yuck, don't print full path? xlat_purify 127.0.0.1 == %{md4: SELECT user FROM table WHERE user='%{User-Name}'} -match (127.0.0.1 == %{md4: SELECT user FROM table WHERE user='%{request[0].User-Name}'}) +match (127.0.0.1 == %{md4: SELECT user FROM table WHERE user='%{User-Name}'}) xlat_purify 00:11:22:33:44:55 == "00:11:22:33:44:55" match true @@ -522,7 +519,7 @@ match (&User-Name[n] == "bob") #match &Foo-Bar xlat_purify &Acct-Input-Octets > "%{Session-Timeout}" -match (&Acct-Input-Octets > %(cast:string "%{request[0].Session-Timeout}")) +match (&Acct-Input-Octets > %(cast:string "%{Session-Timeout}")) xlat_purify &Acct-Input-Octets > &Session-Timeout match (&Acct-Input-Octets > &Session-Timeout)