aboutsummaryrefslogtreecommitdiffstats
path: root/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileFilteredInJsonEvent.json
diff options
context:
space:
mode:
authorliamfallon <liam.fallon@ericsson.com>2018-11-06 12:02:46 +0000
committerLiam Fallon <liam.fallon@ericsson.com>2018-11-08 17:54:13 +0000
commitcad452cdb6d999f822fe11dc4fdd232cce30ff6a (patch)
treea2fdfb5a689d7c2a6f045424a9f078a44ea36f4d /testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileFilteredInJsonEvent.json
parentad6efc439440e991df30694ef2da17d640f20bdf (diff)
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 <liam.fallon@ericsson.com> (cherry picked from commit 53d8916cc60d97e2ce7ae345f8cc25f5602567da)
Diffstat (limited to 'testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileFilteredInJsonEvent.json')
-rw-r--r--testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileFilteredInJsonEvent.json44
1 files changed, 44 insertions, 0 deletions
diff --git a/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileFilteredInJsonEvent.json b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileFilteredInJsonEvent.json
new file mode 100644
index 000000000..9b621b70f
--- /dev/null
+++ b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileFilteredInJsonEvent.json
@@ -0,0 +1,44 @@
+{
+ "engineServiceParameters": {
+ "name": "MyApexEngine",
+ "version": "0.0.1",
+ "id": 45,
+ "instanceCount": 4,
+ "deploymentPort": 12545,
+ "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.json",
+ "engineParameters": {
+ "executorParameters": {
+ "JAVASCRIPT": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
+ }
+ }
+ }
+ },
+ "eventInputParameters": {
+ "inputZero": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "fileName": "examples/events/SampleDomain/EventsIn.json"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "eventNameFilter": "^E[Vv][Ee][Nn][Tt][0-9]000$"
+ }
+ },
+ "eventOutputParameters": {
+ "outputZero": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "fileName": "examples/events/SampleDomain/Events0004Out.json"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ }
+}