]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
don't use "update"
authorAlan T. DeKok <aland@freeradius.org>
Fri, 14 Jul 2023 20:50:09 +0000 (16:50 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 14 Jul 2023 21:03:28 +0000 (17:03 -0400)
src/tests/modules/cache_rbtree/cache-xlat.unlang
src/tests/modules/dict/map.unlang
src/tests/modules/yubikey/yubikey_xlat.unlang

index de6fb7d10a3bde1fc9f8921cb64cdd58f3149554..cb1aa27ebab768d05e41ed193c6af92a4cdfca41 100644 (file)
@@ -1,30 +1,21 @@
 #
 #  PRE: cache-logic
 #
-update {
-        &request.Tmp-String-0 := 'testkey'
-}
-
-update control {
-        &Tmp-String-1 := 'cache me'
-}
+&Tmp-String-0 := 'testkey'
+&control.Tmp-String-1 := 'cache me'
 
 cache
 if (!ok) {
         test_fail
 }
 
-update request {
-        &Tmp-String-2 := "%(cache:request.Tmp-String-1)"
-}
+&request.Tmp-String-2 := "%(cache:request.Tmp-String-1)"
 
 if (&Tmp-String-2 != &control.Tmp-String-1) {
         test_fail
 }
 
-update request {
-        &Tmp-String-3 := "%(cache:request.Tmp-String-4)"
-}
+&Tmp-String-3 := "%(cache:request.Tmp-String-4)"
 
 if (&Tmp-String-3 != "") {
         test_fail
index a51728b148472c422fec79faf421c8d61326b621..da936386c63e0bd21e7ef919cf5d3a0ae97cff18 100644 (file)
@@ -1,6 +1,5 @@
-update request {
-       &Vendor-Specific.FreeRADIUS.Proxied-To := 127.0.0.1
-}
+&Vendor-Specific.FreeRADIUS.Proxied-To := 127.0.0.1
+
 &Reply-Message := 'foo'
 
 if ("%(attr_by_num:1)" != 'User-Name') {
index edb76e55e7c1a6322af09a75b753ddaa724c06b8..f97d493f42e77ecae3aec2eb3887fc68b2780568 100644 (file)
@@ -8,9 +8,7 @@ if (&Tmp-String-1 != "ffc1e0d3d260") {
 #  Invalid modhex string - not even length
 &Tmp-String-0 := "vvrbuctetdh"
 
-update request {
-       &Tmp-String-1 := "%{modhextohex:%{Tmp-String-0}}"
-}
+&Tmp-String-1 := "%{modhextohex:%{Tmp-String-0}}"
 
 if (ok) {
        test_fail
@@ -25,13 +23,9 @@ if (&Module-Failure-Message != "Modhex string invalid") {
 }
 
 #  Invalid modhex string - invalid characters
-update request {
-       &Tmp-String-0 := "vxrbmctetdhc"
-}
+&Tmp-String-0 := "vxrbmctetdhc"
 
-update request {
-       &Tmp-String-1 := "%{modhextohex:%{Tmp-String-0}}"
-}
+&Tmp-String-1 := "%{modhextohex:%{Tmp-String-0}}"
 
 if (ok) {
        test_fail