From: Arran Cudbard-Bell Date: Wed, 30 Jul 2025 19:51:56 +0000 (-0700) Subject: Add simplified redundant test X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=653645b8c38cad58b0cfe4b0be4a74c3d20d1a00;p=thirdparty%2Ffreeradius-server.git Add simplified redundant test --- diff --git a/src/tests/keywords/redundant-load-balance-no-dups b/src/tests/keywords/redundant-load-balance-no-dups new file mode 100644 index 0000000000..e8e918626d --- /dev/null +++ b/src/tests/keywords/redundant-load-balance-no-dups @@ -0,0 +1,30 @@ +# PRE: if foreach +# +# Redundant blocks. +# +# Verify that only a single redundant child executes for redundant-load-balance +# +# This is a regression test, where we saw multiple children execute. This should +# in theory be caught by redundant-load-balance, but this is a simpler test to +# understand. +# +redundant-load-balance { + group { + request += { + Reply-Message = "A thing" + } + ok + } + group { + request += { + Reply-Message = "A second thing" + } + ok + } +} + +if (!(%{Reply-Message[#]} == 1)) { + test_fail +} + +success