]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
move SQL-Group ==... to %{sql.group:...}
authorAlan T. DeKok <aland@freeradius.org>
Wed, 23 Aug 2023 13:50:57 +0000 (09:50 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 23 Aug 2023 13:50:57 +0000 (09:50 -0400)
src/tests/modules/sql/groups.unlang

index 6f03ee19f1f8944bfa2b7249b128c7383479357a..b2f3382b2bf4bd92280ae8e1cd1e3da5fba27a99 100644 (file)
@@ -54,21 +54,21 @@ else {
 #
 #  Test paircmp group comparisons
 #
-if (&SQL-Group != 'groups_group_a') {
+if (!%{sql.group:groups_group_a}) {
        test_pass
 }
 else {
        test_fail
 }
 
-if (&SQL-Group == 'groups_group_b') {
+if (%{sql.roup:groups_group_b}) {
        test_pass
 }
 else {
        test_fail
 }
 
-if (&SQL-Group == 'groups_group_c') {
+if (%{sql.group:groups_group_c}) {
        test_pass
 }
 else {
@@ -76,7 +76,7 @@ else {
 }
 
 # Non-existent group
-if (&SQL-Group != 'groups_group_d') {
+if (!%{sql.group:groups_group_d}) {
        test_pass
 }
 else {
@@ -88,7 +88,7 @@ else {
 #
 &Tmp-String-0 := 'groups_group_b'
 
-if (&SQL-Group == "%{Tmp-String-0}") {
+if (%{sql.group:%{Tmp-String-0}}) {
        test_pass
 }
 else {