From: Alan T. DeKok Date: Tue, 28 May 2024 12:23:52 +0000 (-0400) Subject: more tests and notes on what we want to do X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c1973cc9288cd6ad864c6cff0ce83764eb53df59;p=thirdparty%2Ffreeradius-server.git more tests and notes on what we want to do --- diff --git a/src/tests/keywords/edit-multivalue b/src/tests/keywords/edit-multivalue index 0c5a626526d..ca947561087 100644 --- a/src/tests/keywords/edit-multivalue +++ b/src/tests/keywords/edit-multivalue @@ -31,6 +31,9 @@ if !(&foo[#] == 1) { &Reply-Message += { "a", "b", "c" } +# +# This seems wrong and inconsistent with Filter-Id below??? +# if !(&Reply-Message == "fooabc") { test_fail } @@ -49,4 +52,27 @@ if !(&foo == "abc") { test_fail } +&request -= &Reply-Message + +# +# Attribute references in in-place lists work. +# +&Reply-Message := { &Filter-ID[2], &Filter-ID[1], &Filter-ID[0] } +if !(&Reply-Message[#] == 3) { + test_fail +} + +if (&Reply-Message[0] != 'c') { + test_fail +} + +# +# This would make sense, but it doesn't work. Instead it says: +# +# Missing attribute value +# Failed creating map from '&Reply-Message = (null)' +# +#&Tmp-Group-0 := { &Reply-Message, &Filter-Id } + + success