From: Alan T. DeKok Date: Wed, 13 Sep 2017 14:10:32 +0000 (-0400) Subject: add "success" policy X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ecb625d51a5d26e877af2e65dc1ef6a8b34bb9ca;p=thirdparty%2Ffreeradius-server.git add "success" policy --- diff --git a/src/tests/keywords/unit_test_module.conf b/src/tests/keywords/unit_test_module.conf index 14483dff01c..dd73d94b897 100644 --- a/src/tests/keywords/unit_test_module.conf +++ b/src/tests/keywords/unit_test_module.conf @@ -78,6 +78,17 @@ policy { with.dots { ok } + + # + # Set the test to successful, but only if there are no failures. + # + success { + if (!&reply:Filter-Id) { + update reply { + Filter-Id := "filter" + } + } + } } instantiate {