]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
filter code in v4 works differently than v3
authorAlan T. DeKok <aland@freeradius.org>
Wed, 4 Jan 2017 22:14:45 +0000 (17:14 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 4 Jan 2017 22:14:45 +0000 (17:14 -0500)
src/tests/keywords/update-operator [deleted file]

diff --git a/src/tests/keywords/update-operator b/src/tests/keywords/update-operator
deleted file mode 100644 (file)
index 31a2bdd..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-#
-#  PRE: update
-#
-update request {
-       NAS-Port := 1000
-}
-
-#
-#  Filtering
-#
-update request {
-       NAS-Port == 1000
-}
-
-if (NAS-Port != 1000) {
-       update reply {
-               Filter-Id += "fail 1"
-       }
-}
-
-update request {
-       NAS-Port <= 500
-}
-
-if (NAS-Port != 500) {
-       update reply {
-               Filter-Id += "fail 2"
-       }
-}
-
-update request {
-       NAS-Port >= 2000
-}
-
-if (NAS-Port != 2000) {
-       update reply {
-               Filter-Id += "fail 3"
-       }
-}
-
-# non-existent attribute
-update request {
-       Class -= 0xabcdef
-}
-
-update request {
-       Class -= &Class
-}
-
-update request {
-       NAS-Port -= &NAS-Port
-}
-
-if (!reply:Filter-Id) {
-       update control {
-               Cleartext-Password := 'hello'
-       }
-
-       update reply {
-               Filter-Id := "filter"
-       }
-}