From: Alan T. DeKok Date: Fri, 3 Dec 2021 15:27:20 +0000 (-0500) Subject: check for existence, not for value X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3490b499ca96d867796d9120fe33808a2c852d1;p=thirdparty%2Ffreeradius-server.git check for existence, not for value --- diff --git a/src/tests/keywords/update-attr-ref-null b/src/tests/keywords/update-attr-ref-null index 2284efe89b7..24c5c6a02c4 100644 --- a/src/tests/keywords/update-attr-ref-null +++ b/src/tests/keywords/update-attr-ref-null @@ -10,6 +10,10 @@ update request { &control !* ANY } +if ("%{Tmp-String-0[#]}" != 2) { + test_fail +} + if (&Tmp-String-0[0] != 'foo') { fail } @@ -24,7 +28,8 @@ if (&Tmp-String-0[0] != 'foo') { fail } -if (&Tmp-String-0[1] != 'baz') { +# Nothing should exist for this attribute. +if (&Tmp-String-0[1]) { fail }