From c663e0061b92542d961db5f88039151acb7f63df Mon Sep 17 00:00:00 2001 From: Pamela Dragosh Date: Tue, 18 Aug 2020 12:24:04 -0400 Subject: Fix sonar issue and add code coverage Fixing too much complexity for GuardPolicyRequest by breaking it up into methods. Added more code coverage to guard translator. Added missing code coverage for coordination guard, it was below 66% and there were some trivial fixes that were needed. Seems that a test resource was never really used, or perhaps got omitted in a previous review. Issue-ID: POLICY-2590 Change-Id: I1be4ff166e6c43c1c4ea54fdf7e761e22adcaa2d Signed-off-by: Pamela Dragosh --- applications/guard/src/test/resources/test-directive.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'applications/guard/src/test/resources/test-directive.yaml') diff --git a/applications/guard/src/test/resources/test-directive.yaml b/applications/guard/src/test/resources/test-directive.yaml index 44dfa74b..1f477766 100644 --- a/applications/guard/src/test/resources/test-directive.yaml +++ b/applications/guard/src/test/resources/test-directive.yaml @@ -1,4 +1,4 @@ controlLoop: - cl1 - cl2 -directive: whatisthisvaluesupposedtobe +coordinationFunction: whatisthisvaluesupposedtobe -- cgit 1.2.3-korg