From ef4198b40ee5108cf8c549c09a0a04b09e3f959a Mon Sep 17 00:00:00 2001 From: jhh Date: Wed, 10 Feb 2021 16:20:35 -0600 Subject: support transaction reports in engine Issue-ID: POLICY-3033 Signed-off-by: jhh Change-Id: Id1f02c86be491d5145e74725f76953e294e2975c Signed-off-by: jhh --- .../policy/drools/system/PolicyEngineManagerTest.json | 14 +++++++++++++- .../onap/policy/drools/system/PolicyEngineTestAdd.json | 15 ++++++++++++++- .../onap/policy/drools/system/PolicyEngineTestConfig.json | 15 ++++++++++++++- 3 files changed, 41 insertions(+), 3 deletions(-) (limited to 'policy-management/src/test/resources') diff --git a/policy-management/src/test/resources/org/onap/policy/drools/system/PolicyEngineManagerTest.json b/policy-management/src/test/resources/org/onap/policy/drools/system/PolicyEngineManagerTest.json index db50e53c..d2d2075e 100644 --- a/policy-management/src/test/resources/org/onap/policy/drools/system/PolicyEngineManagerTest.json +++ b/policy-management/src/test/resources/org/onap/policy/drools/system/PolicyEngineManagerTest.json @@ -20,5 +20,17 @@ "sources": [ { "name": "source1-topic" }, { "name": "source2-topic" } - ] + ], + "stats": { + "groupStat": { + "averageExecutionTime":0.0, + "birthTime": 0, + "lastExecutionTime":0, + "lastStart":0, + "policyExecutedCount":0, + "policyExecutedFailCount":0, + "policyExecutedSuccessCount":0, + "totalElapsedTime": 0.0 + },"subgroupStats":{} + } } diff --git a/policy-management/src/test/resources/org/onap/policy/drools/system/PolicyEngineTestAdd.json b/policy-management/src/test/resources/org/onap/policy/drools/system/PolicyEngineTestAdd.json index 7a247d32..cbd696da 100644 --- a/policy-management/src/test/resources/org/onap/policy/drools/system/PolicyEngineTestAdd.json +++ b/policy-management/src/test/resources/org/onap/policy/drools/system/PolicyEngineTestAdd.json @@ -16,5 +16,18 @@ "features": [], "controllers": [ "foo" - ] + ], + "stats": { + "groupStat": { + "averageExecutionTime": 0.0, + "birthTime": 0, + "lastExecutionTime": 0, + "lastStart": 0, + "policyExecutedCount": 0, + "policyExecutedFailCount": 0, + "policyExecutedSuccessCount": 0, + "totalElapsedTime": 0.0 + }, + "subgroupStats": {} + } } diff --git a/policy-management/src/test/resources/org/onap/policy/drools/system/PolicyEngineTestConfig.json b/policy-management/src/test/resources/org/onap/policy/drools/system/PolicyEngineTestConfig.json index 7f06f5a0..68c52da4 100644 --- a/policy-management/src/test/resources/org/onap/policy/drools/system/PolicyEngineTestConfig.json +++ b/policy-management/src/test/resources/org/onap/policy/drools/system/PolicyEngineTestConfig.json @@ -14,5 +14,18 @@ } ], "features": [], - "controllers": [] + "controllers": [], + "stats": { + "groupStat": { + "averageExecutionTime": 0.0, + "birthTime": 0, + "lastExecutionTime": 0, + "lastStart": 0, + "policyExecutedCount": 0, + "policyExecutedFailCount": 0, + "policyExecutedSuccessCount": 0, + "totalElapsedTime": 0.0 + }, + "subgroupStats": {} + } } -- cgit 1.2.3-korg