]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
parse pairs from a string
authorAlan T. DeKok <aland@freeradius.org>
Sat, 30 Sep 2023 14:08:16 +0000 (10:08 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 30 Sep 2023 14:08:16 +0000 (10:08 -0400)
src/tests/keywords/pairs

index 19a4adbbf69b226c961f41a41e507e36c1a30542..494621399f855ee3b4604fe479f0daa6258d212a 100644 (file)
@@ -46,8 +46,17 @@ if !(&Tmp-String-6 == 'Tmp-Group-0 = { Tmp-String-0 = "This is a string", Tmp-St
        test_fail
 }
 
-&request -= &Tmp-Group-0
-
+&request -= &Tmp-Group-0[*]
+if (&request.Tmp-Group-0.Tmp-String-0) {
+       test_fail
+}
 
+#
+#  Parse pairs from a string!
+#
+&request += "%{Tmp-String-6}"
+if !(&request.Tmp-Group-0.Tmp-String-0 == 'This is a string') {
+       test_fail
+}
 
 success