]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Revert "add test looping over children of a TLV"
authorAlan T. DeKok <aland@freeradius.org>
Tue, 3 Sep 2024 20:18:18 +0000 (16:18 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 3 Sep 2024 20:19:10 +0000 (16:19 -0400)
This reverts commit c105db87995ecee180771bc55f4d43a37efed9bd.

apparently adding local tlvs breaks the wimax tests.

Error : src/tests/keywords/wimax[7]: Failed parsing attribute reference &26.24757.84.9.5.7 - Parent type of nested attribute 26 must be of type "struct", "tlv", "vendor", "vsa" or "group", got "octets"
Error : src/tests/keywords/wimax[7]: &26.24757.84.9.5.7
Error : src/tests/keywords/wimax[7]:     ^

arguably the error is correct.  but in the interest of making CI
pass, and not annoying others, we just disable the failing test
for now

src/tests/keywords/foreach-tlv-children [deleted file]
src/tests/keywords/radius.conf

diff --git a/src/tests/keywords/foreach-tlv-children b/src/tests/keywords/foreach-tlv-children
deleted file mode 100644 (file)
index 44f8b27..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-#
-#  PRE: foreach
-#
-#  Loop over children of a TLV.
-#
-#  Note that the only data types compatible with all data types are "string" or "octets"
-#
-string out
-
-&my-tlv := {
-       &a = 1
-       &b = 2
-       &c = "foo"
-       &d = 127.0.0.1
-}
-
-
-&out = ""
-
-#
-#  Home-brew concat!
-#
-foreach string child (&my-tlv.[*]) {
-       &out += &child
-       &out += " "
-}
-
-#
-#  Sad trailing space, but we can delete it!
-#
-&out -= ' '
-
-if (&out != '1 2 foo 127.0.0.1') {
-       test_fail
-}
-
-success
index 3fc1e844b0620963cae1741d5a2938bdc33882fb..0b219702800feef3a1cecabec58f68fb03b805d1 100644 (file)
@@ -135,15 +135,6 @@ server default {
                type = Access-Request
        }
 
-       dictionary {
-               tlv my-tlv {
-                       uint32 a
-                       uint32 b
-                       string c
-                       ipaddr d
-               }
-       }
-
        recv Access-Request {
                &control.Password.Cleartext := "hello"