From 8a1bd0d8ee600ffe06b9a832a876d8a9f58f2f8c Mon Sep 17 00:00:00 2001 From: liamfallon Date: Tue, 6 Feb 2018 14:17:36 +0000 Subject: Add JUnit and Remove Technical Debt in Guard Unit test for guard added and technical debt removed. Issue-ID: POLICY-455 Change-Id: I440766660ddae078013e21b1991ee49c8e488bb3 Signed-off-by: liamfallon --- .../test/resources/frequency_limiter_template.xml | 58 ++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 controlloop/common/guard/src/test/resources/frequency_limiter_template.xml (limited to 'controlloop/common/guard/src/test/resources/frequency_limiter_template.xml') diff --git a/controlloop/common/guard/src/test/resources/frequency_limiter_template.xml b/controlloop/common/guard/src/test/resources/frequency_limiter_template.xml new file mode 100644 index 000000000..2d73a1e6d --- /dev/null +++ b/controlloop/common/guard/src/test/resources/frequency_limiter_template.xml @@ -0,0 +1,58 @@ + + + Policy for frequency limiter. + + + + + + + ${clname} + + + + + + ${actor} + + + + ${recipe} + + + + + ${targets} + + + + + + + + DENY - only if number of operations performed in the past is larger than the limit and the Guard is active. + + + + + + + + + + + + + ${guardActiveStart} + ${guardActiveEnd} + + + + + + + + ${limit} + + + -- cgit 1.2.3-korg