From cad452cdb6d999f822fe11dc4fdd232cce30ff6a Mon Sep 17 00:00:00 2001 From: liamfallon Date: Tue, 6 Nov 2018 12:02:46 +0000 Subject: Refactor unit test data There were many copies of test policies and examples strewn through the Apex unit tests. This change cleans up the unit tests so that a single version of all example policies is used in all tests. Also added a new relative file root command line parameter to Apex to allow the root of relative paths in configuration files to be set. Apologies for the size of this review but unfortunately all of this must be done in one shot. Issue-ID: POLICY-1252 Change-Id: Ibbb18fbf18e3897a1c61301d0a65e62bc643a0e9 Signed-off-by: liamfallon (cherry picked from commit 53d8916cc60d97e2ce7ae345f8cc25f5602567da) --- .../src/test/resources/parameters/prodConsBadCTParClass.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'services/services-engine/src/test/resources/parameters/prodConsBadCTParClass.json') diff --git a/services/services-engine/src/test/resources/parameters/prodConsBadCTParClass.json b/services/services-engine/src/test/resources/parameters/prodConsBadCTParClass.json index bb431279e..48c2dc905 100644 --- a/services/services-engine/src/test/resources/parameters/prodConsBadCTParClass.json +++ b/services/services-engine/src/test/resources/parameters/prodConsBadCTParClass.json @@ -5,10 +5,10 @@ "id": 45, "instanceCount": 19, "deploymentPort": 65522, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "src/test/resources/policymodels/SmallModel.json", "engineParameters": { "executorParameters": { - "MVEL": { + "JAVASCRIPT": { "parameterClassName": "org.onap.policy.apex.service.engine.parameters.dummyclasses.SuperDooperExecutorParameters" } } @@ -19,7 +19,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/aaa.json" + "fileName": "target/aaa.json" } }, "eventProtocolParameters": { -- cgit 1.2.3-korg