]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
we don't need these tests any more
authorAlan T. DeKok <aland@freeradius.org>
Sat, 23 Nov 2024 14:26:36 +0000 (09:26 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 23 Nov 2024 14:26:36 +0000 (09:26 -0500)
src/tests/keywords/update-exec-error.ignore [deleted file]
src/tests/keywords/update-exec.ignore [deleted file]

diff --git a/src/tests/keywords/update-exec-error.ignore b/src/tests/keywords/update-exec-error.ignore
deleted file mode 100644 (file)
index 4ff2f8b..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-#
-#  PRE: update-exec
-#
-
-#
-#  Malformed expansion should be a parse error.
-#
-update request {
-       &Tmp-String-0 = `/bin/sh -c %{User-Name`        # ERROR
-}
diff --git a/src/tests/keywords/update-exec.ignore b/src/tests/keywords/update-exec.ignore
deleted file mode 100644 (file)
index adb54ce..0000000
+++ /dev/null
@@ -1,79 +0,0 @@
-#
-#  PRE: update update-remove-any if redundant
-#
-
-#
-# Exec with script output to attribute
-#
-update request {
-       &Tmp-String-0 = `/bin/sh -c "echo 'foo bar baz'"`
-}
-
-if (!&Tmp-String-0 || (!(&Tmp-String-0 == "foo bar baz"))) {
-       test_fail
-}
-
-#
-# Exec with output to list (single attribute)
-#
-update {
-       &request = `/bin/sh -c "echo Tmp-String-0 := foo"`
-}
-
-if (!&Tmp-String-0 || (!(&Tmp-String-0 == 'foo'))) {
-       test_fail
-}
-
-#
-# Exec with output to list (multiple attributes)
-#
-update {
-       &request = `/bin/sh -c 'echo Tmp-String-0 := foo, Tmp-String-1 := bar'`
-}
-
-if (!&Tmp-String-0 || !&Tmp-String-1 || (!(&Tmp-String-0 == 'foo')) || (!(&Tmp-String-1 == 'bar'))) {
-       test_fail
-}
-
-#
-# Failed exec (malformed attributes) - check no attributes are added
-#
-update request {
-       &Tmp-String-0 !* ANY
-       &Tmp-String-1 !* ANY
-}
-
-redundant {
-       group {
-               update {
-                       &request = `/bin/sh -c 'echo Tmp-String-0 := foo, Tmp-String-1 ?= bar'`
-               }
-       }
-       ok
-}
-if (&Tmp-String-0 || &Tmp-String-1) {
-       test_fail
-}
-
-#
-# Exec with output to list - error code
-#
-update request {
-       &Tmp-String-0 !* ANY
-       &Tmp-String-1 !* ANY
-}
-
-redundant {
-       group {
-               update {
-                       &request = `/bin/sh -c 'echo Tmp-String-0 := foo; exit 64'`
-               }
-       }
-       ok
-}
-if (&Tmp-String-0) {
-       test_fail
-}
-
-accept
-success