From: Alan T. DeKok Date: Wed, 8 Sep 2021 15:39:23 +0000 (-0400) Subject: tests for local templates X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34ee09d3922eb89161636007cf601a9e4e8d85d5;p=thirdparty%2Ffreeradius-server.git tests for local templates --- diff --git a/src/tests/keywords/radius.conf b/src/tests/keywords/radius.conf index 14fa4de67da..c2bd2522032 100644 --- a/src/tests/keywords/radius.conf +++ b/src/tests/keywords/radius.conf @@ -52,6 +52,18 @@ modules { mschap { } + + # + # Tests for in-line templates + # + template foo { + rcode = ok + } + + always template_test { +$TEMPLATE foo + } + } policy { diff --git a/src/tests/keywords/template_test b/src/tests/keywords/template_test new file mode 100644 index 00000000000..edea67129cf --- /dev/null +++ b/src/tests/keywords/template_test @@ -0,0 +1,9 @@ +# +# PRE: update +# +template_test +if (!ok) { + test_fail +} + +success