From: Alan T. DeKok Date: Fri, 14 Jul 2023 20:50:09 +0000 (-0400) Subject: don't use "update" X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61427a3cf68f1de8eb2795e0b2ad635beddf96dc;p=thirdparty%2Ffreeradius-server.git don't use "update" --- diff --git a/src/tests/modules/cache_rbtree/cache-xlat.unlang b/src/tests/modules/cache_rbtree/cache-xlat.unlang index de6fb7d10a3..cb1aa27ebab 100644 --- a/src/tests/modules/cache_rbtree/cache-xlat.unlang +++ b/src/tests/modules/cache_rbtree/cache-xlat.unlang @@ -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 diff --git a/src/tests/modules/dict/map.unlang b/src/tests/modules/dict/map.unlang index a51728b1484..da936386c63 100644 --- a/src/tests/modules/dict/map.unlang +++ b/src/tests/modules/dict/map.unlang @@ -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') { diff --git a/src/tests/modules/yubikey/yubikey_xlat.unlang b/src/tests/modules/yubikey/yubikey_xlat.unlang index edb76e55e7c..f97d493f42e 100644 --- a/src/tests/modules/yubikey/yubikey_xlat.unlang +++ b/src/tests/modules/yubikey/yubikey_xlat.unlang @@ -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