From 2816ea6b7672a5519628a5134a5ef719166b27f7 Mon Sep 17 00:00:00 2001 From: "waqas.ikram" Date: Wed, 27 Jun 2018 16:16:42 +0100 Subject: Adding integration test module Change-Id: If94ff28724a31269cf20b32c43fa0790c3b2dac3 Issue-ID: POLICY-865 Signed-off-by: waqas.ikram --- .../test/common/model/EvalDomainModelFactory.java | 501 ++++ .../common/model/SampleDomainModelFactory.java | 717 ++++++ .../test/common/model/SampleDomainModelSaver.java | 82 + .../test/common/model/java/DefaultState_Logic.java | 43 + .../test/common/model/java/DefaultTask_Logic.java | 71 + .../test/common/model/java/EvalState_Logic.java | 42 + .../test/common/model/java/EvalTask_Logic.java | 55 + .../apex/test/common/model/java/package-info.java | 26 + .../apex/test/common/model/package-info.java | 26 + .../examples/events/SampleDomain/EventsIn.jsons | 1100 +++++++++ .../examples/events/SampleDomain/EventsIn.xmlfile | 2422 ++++++++++++++++++++ .../events/SampleDomain/EventsInMulti0.jsons | 1100 +++++++++ .../events/SampleDomain/EventsInMulti1.jsons | 1100 +++++++++ .../events/SampleDomain/EventsInMulti2.jsons | 1100 +++++++++ .../model/javascript/DefaultState_Logic.javascript | 27 + .../model/javascript/DefaultTask_Logic.javascript | 34 + .../model/javascript/EvalState_Logic.javascript | 25 + .../model/javascript/EvalTask_Logic.javascript | 29 + .../common/model/jruby/DefaultState_Logic.jruby | 24 + .../common/model/jruby/DefaultTask_Logic.jruby | 33 + .../test/common/model/jruby/EvalState_Logic.jruby | 23 + .../test/common/model/jruby/EvalTask_Logic.jruby | 32 + .../common/model/jython/DefaultState_Logic.jython | 27 + .../common/model/jython/DefaultTask_Logic.jython | 35 + .../common/model/jython/EvalState_Logic.jython | 25 + .../test/common/model/jython/EvalTask_Logic.jython | 36 + .../test/common/model/mvel/DefaultState_Logic.mvel | 23 + .../test/common/model/mvel/DefaultTask_Logic.mvel | 30 + .../test/common/model/mvel/EvalState_Logic.mvel | 23 + .../test/common/model/mvel/EvalTask_Logic.mvel | 26 + 30 files changed, 8837 insertions(+) create mode 100644 testsuites/integration/integration-common/src/main/java/org/onap/policy/apex/test/common/model/EvalDomainModelFactory.java create mode 100644 testsuites/integration/integration-common/src/main/java/org/onap/policy/apex/test/common/model/SampleDomainModelFactory.java create mode 100644 testsuites/integration/integration-common/src/main/java/org/onap/policy/apex/test/common/model/SampleDomainModelSaver.java create mode 100644 testsuites/integration/integration-common/src/main/java/org/onap/policy/apex/test/common/model/java/DefaultState_Logic.java create mode 100644 testsuites/integration/integration-common/src/main/java/org/onap/policy/apex/test/common/model/java/DefaultTask_Logic.java create mode 100644 testsuites/integration/integration-common/src/main/java/org/onap/policy/apex/test/common/model/java/EvalState_Logic.java create mode 100644 testsuites/integration/integration-common/src/main/java/org/onap/policy/apex/test/common/model/java/EvalTask_Logic.java create mode 100644 testsuites/integration/integration-common/src/main/java/org/onap/policy/apex/test/common/model/java/package-info.java create mode 100644 testsuites/integration/integration-common/src/main/java/org/onap/policy/apex/test/common/model/package-info.java create mode 100644 testsuites/integration/integration-common/src/main/resources/examples/events/SampleDomain/EventsIn.jsons create mode 100644 testsuites/integration/integration-common/src/main/resources/examples/events/SampleDomain/EventsIn.xmlfile create mode 100644 testsuites/integration/integration-common/src/main/resources/examples/events/SampleDomain/EventsInMulti0.jsons create mode 100644 testsuites/integration/integration-common/src/main/resources/examples/events/SampleDomain/EventsInMulti1.jsons create mode 100644 testsuites/integration/integration-common/src/main/resources/examples/events/SampleDomain/EventsInMulti2.jsons create mode 100644 testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/javascript/DefaultState_Logic.javascript create mode 100644 testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/javascript/DefaultTask_Logic.javascript create mode 100644 testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/javascript/EvalState_Logic.javascript create mode 100644 testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/javascript/EvalTask_Logic.javascript create mode 100644 testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/jruby/DefaultState_Logic.jruby create mode 100644 testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/jruby/DefaultTask_Logic.jruby create mode 100644 testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/jruby/EvalState_Logic.jruby create mode 100644 testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/jruby/EvalTask_Logic.jruby create mode 100644 testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/jython/DefaultState_Logic.jython create mode 100644 testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/jython/DefaultTask_Logic.jython create mode 100644 testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/jython/EvalState_Logic.jython create mode 100644 testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/jython/EvalTask_Logic.jython create mode 100644 testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/mvel/DefaultState_Logic.mvel create mode 100644 testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/mvel/DefaultTask_Logic.mvel create mode 100644 testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/mvel/EvalState_Logic.mvel create mode 100644 testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/mvel/EvalTask_Logic.mvel (limited to 'testsuites/integration/integration-common/src/main') diff --git a/testsuites/integration/integration-common/src/main/java/org/onap/policy/apex/test/common/model/EvalDomainModelFactory.java b/testsuites/integration/integration-common/src/main/java/org/onap/policy/apex/test/common/model/EvalDomainModelFactory.java new file mode 100644 index 000000000..65d49f026 --- /dev/null +++ b/testsuites/integration/integration-common/src/main/java/org/onap/policy/apex/test/common/model/EvalDomainModelFactory.java @@ -0,0 +1,501 @@ +/*- + * ============LICENSE_START======================================================= + * Copyright (C) 2016-2018 Ericsson. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + * ============LICENSE_END========================================================= + */ + +package org.onap.policy.apex.test.common.model; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.Set; +import java.util.TreeMap; +import java.util.TreeSet; + +import org.onap.policy.apex.model.basicmodel.concepts.ApexRuntimeException; +import org.onap.policy.apex.model.basicmodel.concepts.AxArtifactKey; +import org.onap.policy.apex.model.basicmodel.concepts.AxKeyInformation; +import org.onap.policy.apex.model.basicmodel.concepts.AxReferenceKey; +import org.onap.policy.apex.model.basicmodel.concepts.AxValidationResult; +import org.onap.policy.apex.model.contextmodel.concepts.AxContextAlbums; +import org.onap.policy.apex.model.contextmodel.concepts.AxContextSchema; +import org.onap.policy.apex.model.contextmodel.concepts.AxContextSchemas; +import org.onap.policy.apex.model.eventmodel.concepts.AxEvent; +import org.onap.policy.apex.model.eventmodel.concepts.AxEvents; +import org.onap.policy.apex.model.eventmodel.concepts.AxField; +import org.onap.policy.apex.model.policymodel.concepts.AxLogicReader; +import org.onap.policy.apex.model.policymodel.concepts.AxPolicies; +import org.onap.policy.apex.model.policymodel.concepts.AxPolicy; +import org.onap.policy.apex.model.policymodel.concepts.AxPolicyModel; +import org.onap.policy.apex.model.policymodel.concepts.AxState; +import org.onap.policy.apex.model.policymodel.concepts.AxStateOutput; +import org.onap.policy.apex.model.policymodel.concepts.AxStateTaskOutputType; +import org.onap.policy.apex.model.policymodel.concepts.AxStateTaskReference; +import org.onap.policy.apex.model.policymodel.concepts.AxTask; +import org.onap.policy.apex.model.policymodel.concepts.AxTaskLogic; +import org.onap.policy.apex.model.policymodel.concepts.AxTaskSelectionLogic; +import org.onap.policy.apex.model.policymodel.concepts.AxTasks; +import org.onap.policy.apex.model.policymodel.handling.PolicyLogicReader; + +/** + * This class creates sample evaluation Policy Models. + * + * @author John Keeney (john.keeney@ericsson.com) + */ +public class EvalDomainModelFactory { + private static final int THIRD_MEMBER = 3; + + private static final String PACKAGE = EvalDomainModelFactory.class.getPackage().getName(); + + private String justOneLang = null; + + private final AxContextSchema typeTimestamp; + private final AxContextSchema typeDouble; + private final AxContextSchema typeCounter; + private final AxContextSchemas schemas; + private final AxEvent event0000; + private final AxEvent event0001; + private final AxEvent event0002; + private final AxEvent event0003; + private final AxEvent event0004; + private final AxEvents events; + + /** + * The Constructor for the factory. + */ + public EvalDomainModelFactory() { + this(null); + } + + /** + * The Constructor for the factory that creates models for a single executor language flavour. + * + * @param justOneLang the just one lang + */ + public EvalDomainModelFactory(final String justOneLang) { + this.justOneLang = justOneLang; + + typeTimestamp = new AxContextSchema(new AxArtifactKey("TestTimestamp", "0.0.1"), "Java", "java.lang.Long"); + typeDouble = new AxContextSchema(new AxArtifactKey("TestTemperature", "0.0.1"), "Java", "java.lang.Double"); + typeCounter = new AxContextSchema(new AxArtifactKey("TestTimestamp", "0.0.1"), "Java", "java.lang.Long"); + + schemas = new AxContextSchemas(new AxArtifactKey("TestDatatypes", "0.0.1")); + schemas.getSchemasMap().put(typeTimestamp.getKey(), typeTimestamp); + schemas.getSchemasMap().put(typeDouble.getKey(), typeDouble); + schemas.getSchemasMap().put(typeCounter.getKey(), typeCounter); + + event0000 = new AxEvent(new AxArtifactKey("Event0000", "0.0.1"), PACKAGE + ".events"); + event0000.getParameterMap().put("SentTimestamp", new AxField(new AxReferenceKey(event0000.getKey(), "SentTimestamp"), typeTimestamp.getKey())); + event0000.getParameterMap().put("TestTemperature", new AxField(new AxReferenceKey(event0000.getKey(), "TestTemperature"), typeDouble.getKey())); + event0000.getParameterMap().put("FirstEventTimestamp", + new AxField(new AxReferenceKey(event0000.getKey(), "FirstEventTimestamp"), typeTimestamp.getKey())); + event0000.getParameterMap().put("EventNumber", new AxField(new AxReferenceKey(event0000.getKey(), "EventNumber"), typeCounter.getKey())); + + event0001 = new AxEvent(new AxArtifactKey("Event0001", "0.0.1"), PACKAGE + ".events"); + event0001.getParameterMap().put("SentTimestamp", new AxField(new AxReferenceKey(event0001.getKey(), "SentTimestamp"), typeTimestamp.getKey())); + event0001.getParameterMap().put("State1Timestamp", new AxField(new AxReferenceKey(event0001.getKey(), "State1Timestamp"), typeTimestamp.getKey())); + event0001.getParameterMap().put("TestTemperature", new AxField(new AxReferenceKey(event0001.getKey(), "TestTemperature"), typeDouble.getKey())); + event0001.getParameterMap().put("FirstEventTimestamp", + new AxField(new AxReferenceKey(event0001.getKey(), "FirstEventTimestamp"), typeTimestamp.getKey())); + event0001.getParameterMap().put("EventNumber", new AxField(new AxReferenceKey(event0001.getKey(), "EventNumber"), typeCounter.getKey())); + + event0002 = new AxEvent(new AxArtifactKey("Event0002", "0.0.1"), PACKAGE + ".events"); + event0002.getParameterMap().put("SentTimestamp", new AxField(new AxReferenceKey(event0002.getKey(), "SentTimestamp"), typeTimestamp.getKey())); + event0002.getParameterMap().put("State1Timestamp", new AxField(new AxReferenceKey(event0002.getKey(), "State1Timestamp"), typeTimestamp.getKey())); + event0002.getParameterMap().put("State2Timestamp", new AxField(new AxReferenceKey(event0002.getKey(), "State2Timestamp"), typeTimestamp.getKey())); + event0002.getParameterMap().put("TestTemperature", new AxField(new AxReferenceKey(event0002.getKey(), "TestTemperature"), typeDouble.getKey())); + event0002.getParameterMap().put("FirstEventTimestamp", + new AxField(new AxReferenceKey(event0002.getKey(), "FirstEventTimestamp"), typeTimestamp.getKey())); + event0002.getParameterMap().put("EventNumber", new AxField(new AxReferenceKey(event0002.getKey(), "EventNumber"), typeCounter.getKey())); + + event0003 = new AxEvent(new AxArtifactKey("Event0003", "0.0.1"), PACKAGE + ".events"); + event0003.getParameterMap().put("SentTimestamp", new AxField(new AxReferenceKey(event0003.getKey(), "SentTimestamp"), typeTimestamp.getKey())); + event0003.getParameterMap().put("State1Timestamp", new AxField(new AxReferenceKey(event0003.getKey(), "State1Timestamp"), typeTimestamp.getKey())); + event0003.getParameterMap().put("State2Timestamp", new AxField(new AxReferenceKey(event0003.getKey(), "State2Timestamp"), typeTimestamp.getKey())); + event0003.getParameterMap().put("State3Timestamp", new AxField(new AxReferenceKey(event0003.getKey(), "State3Timestamp"), typeTimestamp.getKey())); + event0003.getParameterMap().put("TestTemperature", new AxField(new AxReferenceKey(event0003.getKey(), "TestTemperature"), typeDouble.getKey())); + event0003.getParameterMap().put("FirstEventTimestamp", + new AxField(new AxReferenceKey(event0003.getKey(), "FirstEventTimestamp"), typeTimestamp.getKey())); + event0003.getParameterMap().put("EventNumber", new AxField(new AxReferenceKey(event0003.getKey(), "EventNumber"), typeCounter.getKey())); + + event0004 = new AxEvent(new AxArtifactKey("Event0004", "0.0.1"), PACKAGE + ".events"); + event0004.getParameterMap().put("SentTimestamp", new AxField(new AxReferenceKey(event0004.getKey(), "SentTimestamp"), typeTimestamp.getKey())); + event0004.getParameterMap().put("State1Timestamp", new AxField(new AxReferenceKey(event0004.getKey(), "State1Timestamp"), typeTimestamp.getKey())); + event0004.getParameterMap().put("State2Timestamp", new AxField(new AxReferenceKey(event0004.getKey(), "State2Timestamp"), typeTimestamp.getKey())); + event0004.getParameterMap().put("State3Timestamp", new AxField(new AxReferenceKey(event0004.getKey(), "State3Timestamp"), typeTimestamp.getKey())); + event0004.getParameterMap().put("State4Timestamp", new AxField(new AxReferenceKey(event0004.getKey(), "State4Timestamp"), typeTimestamp.getKey())); + event0004.getParameterMap().put("TestTemperature", new AxField(new AxReferenceKey(event0004.getKey(), "TestTemperature"), typeDouble.getKey())); + event0004.getParameterMap().put("FirstEventTimestamp", + new AxField(new AxReferenceKey(event0004.getKey(), "FirstEventTimestamp"), typeTimestamp.getKey())); + event0004.getParameterMap().put("EventNumber", new AxField(new AxReferenceKey(event0004.getKey(), "EventNumber"), typeCounter.getKey())); + + events = new AxEvents(new AxArtifactKey("Events", "0.0.1")); + events.getEventMap().put(event0000.getKey(), event0000); + events.getEventMap().put(event0001.getKey(), event0001); + events.getEventMap().put(event0002.getKey(), event0002); + events.getEventMap().put(event0003.getKey(), event0003); + events.getEventMap().put(event0004.getKey(), event0004); + } + + /** + * Get a sample OODA policy model. + * + * @return the sample policy model + */ + public AxPolicyModel getOODAPolicyModel() { + final AxTasks tasks = new AxTasks(new AxArtifactKey("Tasks", "0.0.1")); + + final AxLogicReader logicReader = new PolicyLogicReader().setLogicPackage(PACKAGE).setDefaultLogic("EvalTask_Logic"); + + final AxTask obTask = new AxTask(new AxArtifactKey("Task_Observe_0", "0.0.1")); + obTask.duplicateInputFields(event0000.getParameterMap()); + obTask.duplicateOutputFields(event0001.getParameterMap()); + final AxTaskLogic obAxLogic = new AxTaskLogic(obTask.getKey(), "TaskLogic", (justOneLang == null ? "JRUBY" : justOneLang), logicReader); + obAxLogic.setLogic(obAxLogic.getLogic().replaceAll("", "Observe").replaceAll("", obTask.getKey().getName()) + .replaceAll("", "1")); + obTask.setTaskLogic(obAxLogic); + + final AxTask orTask = new AxTask(new AxArtifactKey("Task_Orient_0", "0.0.1")); + orTask.duplicateInputFields(event0001.getParameterMap()); + orTask.duplicateOutputFields(event0002.getParameterMap()); + final AxTaskLogic orAxLogic = new AxTaskLogic(orTask.getKey(), "TaskLogic", (justOneLang == null ? "JAVASCRIPT" : justOneLang), logicReader); + orAxLogic.setLogic(orAxLogic.getLogic().replaceAll("", "Orient").replaceAll("", orTask.getKey().getName()) + .replaceAll("", "2")); + orTask.setTaskLogic(orAxLogic); + + final AxTask dTask = new AxTask(new AxArtifactKey("Task_Decide_0", "0.0.1")); + dTask.duplicateInputFields(event0002.getParameterMap()); + dTask.duplicateOutputFields(event0003.getParameterMap()); + final AxTaskLogic dAxLogic = new AxTaskLogic(dTask.getKey(), "TaskLogic", (justOneLang == null ? "MVEL" : justOneLang), logicReader); + dAxLogic.setLogic( + dAxLogic.getLogic().replaceAll("", "Orient").replaceAll("", dTask.getKey().getName()).replaceAll("", "3")); + dTask.setTaskLogic(dAxLogic); + + final AxTask aTask = new AxTask(new AxArtifactKey("Task_Act_0", "0.0.1")); + aTask.duplicateInputFields(event0003.getParameterMap()); + aTask.duplicateOutputFields(event0004.getParameterMap()); + final AxTaskLogic aAxLogic = new AxTaskLogic(aTask.getKey(), "TaskLogic", (justOneLang == null ? "JAVA" : justOneLang), logicReader); + aAxLogic.setLogic( + aAxLogic.getLogic().replaceAll("", "Act").replaceAll("", aTask.getKey().getName()).replaceAll("", "4")); + aTask.setTaskLogic(aAxLogic); + + tasks.getTaskMap().put(obTask.getKey(), obTask); + tasks.getTaskMap().put(orTask.getKey(), orTask); + tasks.getTaskMap().put(dTask.getKey(), dTask); + tasks.getTaskMap().put(aTask.getKey(), aTask); + + final Set obTasks = new TreeSet<>(); + final Set orTasks = new TreeSet<>(); + final Set decTasks = new TreeSet<>(); + final Set actTasks = new TreeSet<>(); + + for (final AxTask task : tasks.getTaskMap().values()) { + if (task.getKey().getName().contains("Observe")) { + obTasks.add(task.getKey()); + } + if (task.getKey().getName().contains("Orient")) { + orTasks.add(task.getKey()); + } + if (task.getKey().getName().contains("Decide")) { + decTasks.add(task.getKey()); + } + if (task.getKey().getName().contains("Act")) { + actTasks.add(task.getKey()); + } + } + final List> taskReferenceList = new ArrayList<>(); + taskReferenceList.add(obTasks); + taskReferenceList.add(orTasks); + taskReferenceList.add(decTasks); + taskReferenceList.add(actTasks); + + final List p0InEventList = new ArrayList<>(); + p0InEventList.add(event0000.getKey()); + p0InEventList.add(event0001.getKey()); + p0InEventList.add(event0002.getKey()); + p0InEventList.add(event0003.getKey()); + + final List p0OutEventList = new ArrayList<>(); + p0OutEventList.add(event0001.getKey()); + p0OutEventList.add(event0002.getKey()); + p0OutEventList.add(event0003.getKey()); + p0OutEventList.add(event0004.getKey()); + + final List p0defaultTaskList = new ArrayList<>(); + p0defaultTaskList.add(tasks.get("Task_Observe_0").getKey()); + p0defaultTaskList.add(tasks.get("Task_Orient_0").getKey()); + p0defaultTaskList.add(tasks.get("Task_Decide_0").getKey()); + p0defaultTaskList.add(tasks.get("Task_Act_0").getKey()); + + final AxPolicy policy0 = new AxPolicy(new AxArtifactKey("OODAPolicy_0", "0.0.1")); + final List axLogicExecutorTypeList = Arrays.asList((justOneLang == null ? "JAVASCRIPT" : justOneLang), + (justOneLang == null ? "MVEL" : justOneLang), (justOneLang == null ? "JYTHON" : justOneLang), (justOneLang == null ? "JRUBY" : justOneLang)); + policy0.setStateMap(getOODAStateMap(policy0.getKey(), p0InEventList, p0OutEventList, axLogicExecutorTypeList, p0defaultTaskList, taskReferenceList)); + policy0.setFirstState(policy0.getStateMap().get("Observe").getKey().getLocalName()); + + final AxPolicies policies = new AxPolicies(new AxArtifactKey("OODAPolicies", "0.0.1")); + policies.getPolicyMap().put(policy0.getKey(), policy0); + + final AxKeyInformation keyInformation = new AxKeyInformation(new AxArtifactKey("KeyInformation", "0.0.1")); + final AxPolicyModel policyModel = new AxPolicyModel(new AxArtifactKey("EvaluationPolicyModel_OODA", "0.0.1")); + policyModel.setPolicies(policies); + policyModel.setEvents(events); + policyModel.setTasks(tasks); + policyModel.setAlbums(new AxContextAlbums(new AxArtifactKey("Albums", "0.0.1"))); + policyModel.setSchemas(schemas); + policyModel.setKeyInformation(keyInformation); + policyModel.getKeyInformation().generateKeyInfo(policyModel); + + final AxValidationResult result = policyModel.validate(new AxValidationResult()); + if (!result.isOK()) { + throw new ApexRuntimeException("model " + policyModel.getID() + " is not valid" + result); + } + return policyModel; + } + + /** + * Gets the OODA state map. + * + * @param policyKey the policy key + * @param inEventKeyList the in event key list + * @param outEventKeyList the out event key list + * @param axLogicExecutorTypeList the ax logic executor type list + * @param defaultTaskList the default task list + * @param taskKeySetList the task key set list + * @return the OODA state map + */ + private Map getOODAStateMap(final AxArtifactKey policyKey, final List inEventKeyList, + final List outEventKeyList, final List axLogicExecutorTypeList, final List defaultTaskList, + final List> taskKeySetList) { + final AxLogicReader logicReader = new PolicyLogicReader().setLogicPackage(PACKAGE).setDefaultLogic("EvalState_Logic"); + + final AxState actState = new AxState(new AxReferenceKey(policyKey, "Act")); + actState.setTrigger(inEventKeyList.get(THIRD_MEMBER)); + final AxStateOutput act2Out = new AxStateOutput(new AxReferenceKey(actState.getKey(), "Act2Out"), outEventKeyList.get(THIRD_MEMBER), + AxReferenceKey.getNullKey()); + actState.getStateOutputs().put(act2Out.getKey().getLocalName(), act2Out); + actState.setTaskSelectionLogic( + new AxTaskSelectionLogic(actState.getKey(), "TaskSelectionLogic", axLogicExecutorTypeList.get(THIRD_MEMBER), logicReader)); + actState.setDefaultTask(defaultTaskList.get(THIRD_MEMBER)); + for (final AxArtifactKey taskKey : taskKeySetList.get(THIRD_MEMBER)) { + actState.getTaskReferences().put(taskKey, + new AxStateTaskReference(new AxReferenceKey(actState.getKey(), taskKey.getName()), AxStateTaskOutputType.DIRECT, act2Out.getKey())); + } + + final AxState decState = new AxState(new AxReferenceKey(policyKey, "Decide")); + decState.setTrigger(inEventKeyList.get(2)); + final AxStateOutput dec2Act = new AxStateOutput(new AxReferenceKey(decState.getKey(), "Dec2Act"), outEventKeyList.get(2), actState.getKey()); + decState.getStateOutputs().put(dec2Act.getKey().getLocalName(), dec2Act); + decState.setTaskSelectionLogic(new AxTaskSelectionLogic(decState.getKey(), "TaskSelectionLogic", axLogicExecutorTypeList.get(2), logicReader)); + decState.setDefaultTask(defaultTaskList.get(2)); + for (final AxArtifactKey taskKey : taskKeySetList.get(2)) { + decState.getTaskReferences().put(taskKey, + new AxStateTaskReference(new AxReferenceKey(decState.getKey(), taskKey.getName()), AxStateTaskOutputType.DIRECT, dec2Act.getKey())); + } + + final AxState orState = new AxState(new AxReferenceKey(policyKey, "Orient")); + orState.setTrigger(inEventKeyList.get(1)); + final AxStateOutput or2Dec = new AxStateOutput(new AxReferenceKey(orState.getKey(), "Or2Dec"), outEventKeyList.get(1), decState.getKey()); + orState.getStateOutputs().put(or2Dec.getKey().getLocalName(), or2Dec); + orState.setTaskSelectionLogic(new AxTaskSelectionLogic(orState.getKey(), "TaskSelectionLogic", axLogicExecutorTypeList.get(1), logicReader)); + orState.setDefaultTask(defaultTaskList.get(1)); + for (final AxArtifactKey taskKey : taskKeySetList.get(1)) { + orState.getTaskReferences().put(taskKey, + new AxStateTaskReference(new AxReferenceKey(orState.getKey(), taskKey.getName()), AxStateTaskOutputType.DIRECT, or2Dec.getKey())); + } + + final AxState obState = new AxState(new AxReferenceKey(policyKey, "Observe")); + obState.setTrigger(inEventKeyList.get(0)); + final AxStateOutput ob2Or = new AxStateOutput(new AxReferenceKey(obState.getKey(), "Ob2Or"), outEventKeyList.get(0), orState.getKey()); + obState.getStateOutputs().put(ob2Or.getKey().getLocalName(), ob2Or); + obState.setTaskSelectionLogic(new AxTaskSelectionLogic(obState.getKey(), "TaskSelectionLogic", axLogicExecutorTypeList.get(0), logicReader)); + obState.setDefaultTask(defaultTaskList.get(0)); + for (final AxArtifactKey taskKey : taskKeySetList.get(0)) { + obState.getTaskReferences().put(taskKey, + new AxStateTaskReference(new AxReferenceKey(obState.getKey(), taskKey.getName()), AxStateTaskOutputType.DIRECT, ob2Or.getKey())); + } + + final Map stateMap = new TreeMap<>(); + stateMap.put(obState.getKey().getLocalName(), obState); + stateMap.put(orState.getKey().getLocalName(), orState); + stateMap.put(decState.getKey().getLocalName(), decState); + stateMap.put(actState.getKey().getLocalName(), actState); + + return stateMap; + } + + /** + * Get a sample ECA policy model. + * + * @return the sample policy model + */ + public AxPolicyModel getECAPolicyModel() { + + final AxTasks tasks = new AxTasks(new AxArtifactKey("Tasks", "0.0.1")); + + final AxLogicReader logicReader = new PolicyLogicReader().setLogicPackage(PACKAGE).setDefaultLogic("EvalTask_Logic"); + + final AxTask eTask = new AxTask(new AxArtifactKey("Task_Event_0", "0.0.1")); + eTask.duplicateInputFields(event0000.getParameterMap()); + eTask.duplicateOutputFields(event0001.getParameterMap()); + final AxTaskLogic eAxLogic = new AxTaskLogic(eTask.getKey(), "TaskLogic", (justOneLang == null ? "JRUBY" : justOneLang), logicReader); + eAxLogic.setLogic( + eAxLogic.getLogic().replaceAll("", "Event").replaceAll("", eTask.getKey().getName()).replaceAll("", "1")); + eTask.setTaskLogic(eAxLogic); + + final AxTask cTask = new AxTask(new AxArtifactKey("Task_Condition_0", "0.0.1")); + cTask.duplicateInputFields(event0001.getParameterMap()); + cTask.duplicateOutputFields(event0002.getParameterMap()); + final AxTaskLogic cAxLogic = new AxTaskLogic(cTask.getKey(), "TaskLogic", (justOneLang == null ? "JAVASCRIPT" : justOneLang), logicReader); + cAxLogic.setLogic(cAxLogic.getLogic().replaceAll("", "Condition").replaceAll("", cTask.getKey().getName()) + .replaceAll("", "2")); + cTask.setTaskLogic(cAxLogic); + + final AxTask aTask = new AxTask(new AxArtifactKey("Task_Action_0", "0.0.1")); + aTask.duplicateInputFields(event0002.getParameterMap()); + aTask.duplicateOutputFields(event0003.getParameterMap()); + final AxTaskLogic aAxLogic = new AxTaskLogic(aTask.getKey(), "TaskLogic", (justOneLang == null ? "JAVA" : justOneLang), logicReader); + aAxLogic.setLogic( + aAxLogic.getLogic().replaceAll("", "Action").replaceAll("", aTask.getKey().getName()).replaceAll("", "3")); + aTask.setTaskLogic(aAxLogic); + + tasks.getTaskMap().put(eTask.getKey(), eTask); + tasks.getTaskMap().put(cTask.getKey(), cTask); + tasks.getTaskMap().put(aTask.getKey(), aTask); + + final Set eventTasks = new TreeSet<>(); + final Set conditionTasks = new TreeSet<>(); + final Set actionTasks = new TreeSet<>(); + + for (final AxTask task : tasks.getTaskMap().values()) { + if (task.getKey().getName().contains("Event")) { + eventTasks.add(task.getKey()); + } + if (task.getKey().getName().contains("Condition")) { + conditionTasks.add(task.getKey()); + } + if (task.getKey().getName().contains("Action")) { + actionTasks.add(task.getKey()); + } + } + final List> taskReferenceList = new ArrayList<>(); + taskReferenceList.add(eventTasks); + taskReferenceList.add(conditionTasks); + taskReferenceList.add(actionTasks); + + final List p0InEventList = new ArrayList<>(); + p0InEventList.add(event0000.getKey()); + p0InEventList.add(event0001.getKey()); + p0InEventList.add(event0002.getKey()); + + final List p0OutEventList = new ArrayList<>(); + p0OutEventList.add(event0001.getKey()); + p0OutEventList.add(event0002.getKey()); + p0OutEventList.add(event0003.getKey()); + + final List p0defaultTaskList = new ArrayList<>(); + p0defaultTaskList.add(tasks.get("Task_Event_0").getKey()); + p0defaultTaskList.add(tasks.get("Task_Condition_0").getKey()); + p0defaultTaskList.add(tasks.get("Task_Action_0").getKey()); + + final AxPolicy policy0 = new AxPolicy(new AxArtifactKey("ECAPolicy_0", "0.0.1")); + final List axLogicExecutorTypeList = Arrays.asList((justOneLang == null ? "JAVASCRIPT" : justOneLang), + (justOneLang == null ? "MVEL" : justOneLang), (justOneLang == null ? "JYTHON" : justOneLang)); + policy0.setStateMap(getECAStateMap(policy0.getKey(), p0InEventList, p0OutEventList, axLogicExecutorTypeList, p0defaultTaskList, taskReferenceList)); + policy0.setFirstState(policy0.getStateMap().get("Event").getKey().getLocalName()); + + final AxPolicies policies = new AxPolicies(new AxArtifactKey("ECAPolicies", "0.0.1")); + policies.getPolicyMap().put(policy0.getKey(), policy0); + + final AxKeyInformation keyInformation = new AxKeyInformation(new AxArtifactKey("KeyInformation", "0.0.1")); + final AxPolicyModel policyModel = new AxPolicyModel(new AxArtifactKey("EvaluationPolicyModel_ECA", "0.0.1")); + policyModel.setPolicies(policies); + policyModel.setEvents(events); + policyModel.setTasks(tasks); + policyModel.setAlbums(new AxContextAlbums(new AxArtifactKey("Albums", "0.0.1"))); + policyModel.setSchemas(schemas); + policyModel.setKeyInformation(keyInformation); + policyModel.getKeyInformation().generateKeyInfo(policyModel); + + final AxValidationResult result = policyModel.validate(new AxValidationResult()); + if (!result.isOK()) { + throw new ApexRuntimeException("model " + policyModel.getID() + " is not valid" + result); + } + return policyModel; + } + + /** + * Gets the ECA state map. + * + * @param policyKey the policy key + * @param inEventKeyList the in event key list + * @param outEventKeyList the out event key list + * @param axLogicExecutorTypeList the ax logic executor type list + * @param defaultTaskList the default task list + * @param taskKeySetList the task key set list + * @return the ECA state map + */ + private Map getECAStateMap(final AxArtifactKey policyKey, final List inEventKeyList, + final List outEventKeyList, final List axLogicExecutorTypeList, final List defaultTaskList, + final List> taskKeySetList) { + final AxLogicReader logicReader = new PolicyLogicReader().setLogicPackage(PACKAGE).setDefaultLogic("EvalState_Logic"); + + final AxState actionState = new AxState(new AxReferenceKey(policyKey, "Action")); + actionState.setTrigger(inEventKeyList.get(2)); + final AxStateOutput action2Out = new AxStateOutput(actionState.getKey(), AxReferenceKey.getNullKey(), outEventKeyList.get(2)); + actionState.getStateOutputs().put(action2Out.getKey().getLocalName(), action2Out); + actionState.setTaskSelectionLogic(new AxTaskSelectionLogic(actionState.getKey(), "TaskSelectionLogic", axLogicExecutorTypeList.get(2), logicReader)); + actionState.setDefaultTask(defaultTaskList.get(2)); + for (final AxArtifactKey taskKey : taskKeySetList.get(2)) { + actionState.getTaskReferences().put(taskKey, + new AxStateTaskReference(new AxReferenceKey(actionState.getKey(), taskKey.getName()), AxStateTaskOutputType.DIRECT, action2Out.getKey())); + } + + final AxState conditionState = new AxState(new AxReferenceKey(policyKey, "Condition")); + conditionState.setTrigger(inEventKeyList.get(1)); + final AxStateOutput condition2Action = new AxStateOutput(conditionState.getKey(), actionState.getKey(), outEventKeyList.get(1)); + conditionState.getStateOutputs().put(condition2Action.getKey().getLocalName(), condition2Action); + conditionState + .setTaskSelectionLogic(new AxTaskSelectionLogic(conditionState.getKey(), "TaskSelectionLogic", axLogicExecutorTypeList.get(1), logicReader)); + conditionState.setDefaultTask(defaultTaskList.get(1)); + for (final AxArtifactKey taskKey : taskKeySetList.get(1)) { + conditionState.getTaskReferences().put(taskKey, new AxStateTaskReference(new AxReferenceKey(conditionState.getKey(), taskKey.getName()), + AxStateTaskOutputType.DIRECT, condition2Action.getKey())); + } + + final AxState eventState = new AxState(new AxReferenceKey(policyKey, "Event")); + eventState.setTrigger(inEventKeyList.get(0)); + final AxStateOutput event2Condition = new AxStateOutput(eventState.getKey(), conditionState.getKey(), outEventKeyList.get(0)); + eventState.getStateOutputs().put(event2Condition.getKey().getLocalName(), event2Condition); + eventState.setTaskSelectionLogic(new AxTaskSelectionLogic(eventState.getKey(), "TaskSelectionLogic", axLogicExecutorTypeList.get(0), logicReader)); + eventState.setDefaultTask(defaultTaskList.get(0)); + for (final AxArtifactKey taskKey : taskKeySetList.get(0)) { + eventState.getTaskReferences().put(taskKey, new AxStateTaskReference(new AxReferenceKey(eventState.getKey(), taskKey.getName()), + AxStateTaskOutputType.DIRECT, event2Condition.getKey())); + } + + final Map stateMap = new TreeMap<>(); + stateMap.put(eventState.getKey().getLocalName(), eventState); + stateMap.put(conditionState.getKey().getLocalName(), conditionState); + stateMap.put(actionState.getKey().getLocalName(), actionState); + + return stateMap; + } + +} diff --git a/testsuites/integration/integration-common/src/main/java/org/onap/policy/apex/test/common/model/SampleDomainModelFactory.java b/testsuites/integration/integration-common/src/main/java/org/onap/policy/apex/test/common/model/SampleDomainModelFactory.java new file mode 100644 index 000000000..24993674c --- /dev/null +++ b/testsuites/integration/integration-common/src/main/java/org/onap/policy/apex/test/common/model/SampleDomainModelFactory.java @@ -0,0 +1,717 @@ +/*- + * ============LICENSE_START======================================================= + * Copyright (C) 2016-2018 Ericsson. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + * ============LICENSE_END========================================================= + */ + +package org.onap.policy.apex.test.common.model; + +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Set; +import java.util.TreeMap; +import java.util.TreeSet; + +import org.onap.policy.apex.model.basicmodel.concepts.ApexRuntimeException; +import org.onap.policy.apex.model.basicmodel.concepts.AxArtifactKey; +import org.onap.policy.apex.model.basicmodel.concepts.AxKeyInformation; +import org.onap.policy.apex.model.basicmodel.concepts.AxReferenceKey; +import org.onap.policy.apex.model.basicmodel.concepts.AxValidationResult; +import org.onap.policy.apex.model.contextmodel.concepts.AxContextAlbum; +import org.onap.policy.apex.model.contextmodel.concepts.AxContextAlbums; +import org.onap.policy.apex.model.contextmodel.concepts.AxContextSchema; +import org.onap.policy.apex.model.contextmodel.concepts.AxContextSchemas; +import org.onap.policy.apex.model.eventmodel.concepts.AxEvent; +import org.onap.policy.apex.model.eventmodel.concepts.AxEvents; +import org.onap.policy.apex.model.eventmodel.concepts.AxField; +import org.onap.policy.apex.model.policymodel.concepts.AxLogicReader; +import org.onap.policy.apex.model.policymodel.concepts.AxPolicies; +import org.onap.policy.apex.model.policymodel.concepts.AxPolicy; +import org.onap.policy.apex.model.policymodel.concepts.AxPolicyModel; +import org.onap.policy.apex.model.policymodel.concepts.AxState; +import org.onap.policy.apex.model.policymodel.concepts.AxStateOutput; +import org.onap.policy.apex.model.policymodel.concepts.AxStateTaskOutputType; +import org.onap.policy.apex.model.policymodel.concepts.AxStateTaskReference; +import org.onap.policy.apex.model.policymodel.concepts.AxTask; +import org.onap.policy.apex.model.policymodel.concepts.AxTaskLogic; +import org.onap.policy.apex.model.policymodel.concepts.AxTaskParameter; +import org.onap.policy.apex.model.policymodel.concepts.AxTaskSelectionLogic; +import org.onap.policy.apex.model.policymodel.concepts.AxTasks; +import org.onap.policy.apex.model.policymodel.handling.PolicyLogicReader; + +/** + * This class creates sample Policy Models. + * + * @author Liam Fallon (liam.fallon@ericsson.com) + */ +public class SampleDomainModelFactory { + private static final int THIRD_ENTRY = 3; + + /** + * Get a sample policy model. + * + * @param axLogicExecutorType The type of logic executor, the scripting language being used + * @return the sample policy model + */ + // CHECKSTYLE:OFF: checkstyle:maximumMethodLength + public AxPolicyModel getSamplePolicyModel(final String axLogicExecutorType) { + AxContextSchema testSlogan = + new AxContextSchema(new AxArtifactKey("TestSlogan", "0.0.1"), "Java", "java.lang.String"); + AxContextSchema testCase = + new AxContextSchema(new AxArtifactKey("TestCase", "0.0.1"), "Java", "java.lang.Byte"); + AxContextSchema testTimestamp = + new AxContextSchema(new AxArtifactKey("TestTimestamp", "0.0.1"), "Java", "java.lang.Long"); + AxContextSchema testTemperature = + new AxContextSchema(new AxArtifactKey("TestTemperature", "0.0.1"), "Java", "java.lang.Double"); + + AxContextSchema testContextItem000 = new AxContextSchema(new AxArtifactKey("TestContextItem000", "0.0.1"), + "Java", "org.onap.policy.apex.context.test.concepts.TestContextItem000"); + AxContextSchema testContextItem001 = new AxContextSchema(new AxArtifactKey("TestContextItem001", "0.0.1"), + "Java", "org.onap.policy.apex.context.test.concepts.TestContextItem001"); + AxContextSchema testContextItem002 = new AxContextSchema(new AxArtifactKey("TestContextItem002", "0.0.1"), + "Java", "org.onap.policy.apex.context.test.concepts.TestContextItem002"); + AxContextSchema testContextItem003 = new AxContextSchema(new AxArtifactKey("TestContextItem003", "0.0.1"), + "Java", "org.onap.policy.apex.context.test.concepts.TestContextItem003"); + AxContextSchema testContextItem004 = new AxContextSchema(new AxArtifactKey("TestContextItem004", "0.0.1"), + "Java", "org.onap.policy.apex.context.test.concepts.TestContextItem004"); + AxContextSchema testContextItem005 = new AxContextSchema(new AxArtifactKey("TestContextItem005", "0.0.1"), + "Java", "org.onap.policy.apex.context.test.concepts.TestContextItem005"); + AxContextSchema testContextItem006 = new AxContextSchema(new AxArtifactKey("TestContextItem006", "0.0.1"), + "Java", "org.onap.policy.apex.context.test.concepts.TestContextItem006"); + AxContextSchema testContextItem007 = new AxContextSchema(new AxArtifactKey("TestContextItem007", "0.0.1"), + "Java", "org.onap.policy.apex.context.test.concepts.TestContextItem007"); + AxContextSchema testContextItem008 = new AxContextSchema(new AxArtifactKey("TestContextItem008", "0.0.1"), + "Java", "org.onap.policy.apex.context.test.concepts.TestContextItem008"); + AxContextSchema testContextItem009 = new AxContextSchema(new AxArtifactKey("TestContextItem009", "0.0.1"), + "Java", "org.onap.policy.apex.context.test.concepts.TestContextItem009"); + AxContextSchema testContextItem00A = new AxContextSchema(new AxArtifactKey("TestContextItem00A", "0.0.1"), + "Java", "org.onap.policy.apex.context.test.concepts.TestContextItem00A"); + AxContextSchema testContextItem00B = new AxContextSchema(new AxArtifactKey("TestContextItem00B", "0.0.1"), + "Java", "org.onap.policy.apex.context.test.concepts.TestContextItem00B"); + AxContextSchema testContextItem00C = new AxContextSchema(new AxArtifactKey("TestContextItem00C", "0.0.1"), + "Java", "org.onap.policy.apex.context.test.concepts.TestContextItem00C"); + + AxContextSchema testPolicyContextItem = new AxContextSchema(new AxArtifactKey("TestPolicyContextItem", "0.0.1"), + "Java", "org.onap.policy.apex.context.test.concepts.TestPolicyContextItem"); + AxContextSchema testGlobalContextItem = new AxContextSchema(new AxArtifactKey("TestGlobalContextItem", "0.0.1"), + "Java", "org.onap.policy.apex.context.test.concepts.TestGlobalContextItem"); + AxContextSchema testExternalContextItem = + new AxContextSchema(new AxArtifactKey("TestExternalContextItem", "0.0.1"), "Java", + "org.onap.policy.apex.context.test.concepts.TestExternalContextItem"); + + AxContextSchemas axContextSchemas = new AxContextSchemas(new AxArtifactKey("TestDatatypes", "0.0.1")); + axContextSchemas.getSchemasMap().put(testSlogan.getKey(), testSlogan); + axContextSchemas.getSchemasMap().put(testCase.getKey(), testCase); + axContextSchemas.getSchemasMap().put(testTimestamp.getKey(), testTimestamp); + axContextSchemas.getSchemasMap().put(testTemperature.getKey(), testTemperature); + + axContextSchemas.getSchemasMap().put(testContextItem000.getKey(), testContextItem000); + axContextSchemas.getSchemasMap().put(testContextItem001.getKey(), testContextItem001); + axContextSchemas.getSchemasMap().put(testContextItem002.getKey(), testContextItem002); + axContextSchemas.getSchemasMap().put(testContextItem003.getKey(), testContextItem003); + axContextSchemas.getSchemasMap().put(testContextItem004.getKey(), testContextItem004); + axContextSchemas.getSchemasMap().put(testContextItem005.getKey(), testContextItem005); + axContextSchemas.getSchemasMap().put(testContextItem006.getKey(), testContextItem006); + axContextSchemas.getSchemasMap().put(testContextItem007.getKey(), testContextItem007); + axContextSchemas.getSchemasMap().put(testContextItem008.getKey(), testContextItem008); + axContextSchemas.getSchemasMap().put(testContextItem009.getKey(), testContextItem009); + axContextSchemas.getSchemasMap().put(testContextItem00A.getKey(), testContextItem00A); + axContextSchemas.getSchemasMap().put(testContextItem00B.getKey(), testContextItem00B); + axContextSchemas.getSchemasMap().put(testContextItem00C.getKey(), testContextItem00C); + + axContextSchemas.getSchemasMap().put(testPolicyContextItem.getKey(), testPolicyContextItem); + axContextSchemas.getSchemasMap().put(testGlobalContextItem.getKey(), testGlobalContextItem); + axContextSchemas.getSchemasMap().put(testExternalContextItem.getKey(), testExternalContextItem); + + AxEvent event0000 = new AxEvent(new AxArtifactKey("Event0000", "0.0.1"), "org.onap.policy.apex.sample.events"); + event0000.setSource("Outside"); + event0000.setTarget("Match"); + event0000.getParameterMap().put("TestSlogan", + new AxField(new AxReferenceKey(event0000.getKey(), "TestSlogan"), testSlogan.getKey())); + event0000.getParameterMap().put("TestMatchCase", + new AxField(new AxReferenceKey(event0000.getKey(), "TestMatchCase"), testCase.getKey())); + event0000.getParameterMap().put("TestTimestamp", + new AxField(new AxReferenceKey(event0000.getKey(), "TestTimestamp"), testTimestamp.getKey())); + event0000.getParameterMap().put("TestTemperature", + new AxField(new AxReferenceKey(event0000.getKey(), "TestTemperature"), testTemperature.getKey())); + + AxEvent event0001 = new AxEvent(new AxArtifactKey("Event0001", "0.0.1"), "org.onap.policy.apex.sample.events"); + event0001.setSource("Match"); + event0001.setTarget("Establish"); + event0001.getParameterMap().put("TestSlogan", + new AxField(new AxReferenceKey(event0001.getKey(), "TestSlogan"), testSlogan.getKey())); + event0001.getParameterMap().put("TestMatchCase", + new AxField(new AxReferenceKey(event0001.getKey(), "TestMatchCase"), testCase.getKey())); + event0001.getParameterMap().put("TestTimestamp", + new AxField(new AxReferenceKey(event0001.getKey(), "TestTimestamp"), testTimestamp.getKey())); + event0001.getParameterMap().put("TestTemperature", + new AxField(new AxReferenceKey(event0001.getKey(), "TestTemperature"), testTemperature.getKey())); + event0001.getParameterMap().put("TestMatchCaseSelected", + new AxField(new AxReferenceKey(event0001.getKey(), "TestMatchCaseSelected"), testCase.getKey())); + event0001.getParameterMap().put("TestMatchStateTime", + new AxField(new AxReferenceKey(event0001.getKey(), "TestMatchStateTime"), testTimestamp.getKey())); + + AxEvent event0002 = new AxEvent(new AxArtifactKey("Event0002", "0.0.1"), "org.onap.policy.apex.sample.events"); + event0002.setSource("Establish"); + event0002.setTarget("Decide"); + event0002.getParameterMap().put("TestSlogan", + new AxField(new AxReferenceKey(event0002.getKey(), "TestSlogan"), testSlogan.getKey())); + event0002.getParameterMap().put("TestMatchCase", + new AxField(new AxReferenceKey(event0002.getKey(), "TestMatchCase"), testCase.getKey())); + event0002.getParameterMap().put("TestTimestamp", + new AxField(new AxReferenceKey(event0002.getKey(), "TestTimestamp"), testTimestamp.getKey())); + event0002.getParameterMap().put("TestTemperature", + new AxField(new AxReferenceKey(event0002.getKey(), "TestTemperature"), testTemperature.getKey())); + event0002.getParameterMap().put("TestMatchCaseSelected", + new AxField(new AxReferenceKey(event0002.getKey(), "TestMatchCaseSelected"), testCase.getKey())); + event0002.getParameterMap().put("TestMatchStateTime", + new AxField(new AxReferenceKey(event0002.getKey(), "TestMatchStateTime"), testTimestamp.getKey())); + event0002.getParameterMap().put("TestEstablishCaseSelected", + new AxField(new AxReferenceKey(event0002.getKey(), "TestEstablishCaseSelected"), testCase.getKey())); + event0002.getParameterMap().put("TestEstablishStateTime", + new AxField(new AxReferenceKey(event0002.getKey(), "TestEstablishStateTime"), testTimestamp.getKey())); + + AxEvent event0003 = new AxEvent(new AxArtifactKey("Event0003", "0.0.1"), "org.onap.policy.apex.sample.events"); + event0003.setSource("Decide"); + event0003.setTarget("Act"); + event0003.getParameterMap().put("TestSlogan", + new AxField(new AxReferenceKey(event0003.getKey(), "TestSlogan"), testSlogan.getKey())); + event0003.getParameterMap().put("TestMatchCase", + new AxField(new AxReferenceKey(event0003.getKey(), "TestMatchCase"), testCase.getKey())); + event0003.getParameterMap().put("TestTimestamp", + new AxField(new AxReferenceKey(event0003.getKey(), "TestTimestamp"), testTimestamp.getKey())); + event0003.getParameterMap().put("TestTemperature", + new AxField(new AxReferenceKey(event0003.getKey(), "TestTemperature"), testTemperature.getKey())); + event0003.getParameterMap().put("TestMatchCaseSelected", + new AxField(new AxReferenceKey(event0003.getKey(), "TestMatchCaseSelected"), testCase.getKey())); + event0003.getParameterMap().put("TestMatchStateTime", + new AxField(new AxReferenceKey(event0003.getKey(), "TestMatchStateTime"), testTimestamp.getKey())); + event0003.getParameterMap().put("TestEstablishCaseSelected", + new AxField(new AxReferenceKey(event0003.getKey(), "TestEstablishCaseSelected"), testCase.getKey())); + event0003.getParameterMap().put("TestEstablishStateTime", + new AxField(new AxReferenceKey(event0003.getKey(), "TestEstablishStateTime"), testTimestamp.getKey())); + event0003.getParameterMap().put("TestDecideCaseSelected", + new AxField(new AxReferenceKey(event0003.getKey(), "TestDecideCaseSelected"), testCase.getKey())); + event0003.getParameterMap().put("TestDecideStateTime", + new AxField(new AxReferenceKey(event0003.getKey(), "TestDecideStateTime"), testTimestamp.getKey())); + + AxEvent event0004 = new AxEvent(new AxArtifactKey("Event0004", "0.0.1"), "org.onap.policy.apex.sample.events"); + event0004.setSource("Act"); + event0004.setTarget("Outside"); + event0004.getParameterMap().put("TestSlogan", + new AxField(new AxReferenceKey(event0004.getKey(), "TestSlogan"), testSlogan.getKey())); + event0004.getParameterMap().put("TestMatchCase", + new AxField(new AxReferenceKey(event0004.getKey(), "TestMatchCase"), testCase.getKey())); + event0004.getParameterMap().put("TestTimestamp", + new AxField(new AxReferenceKey(event0004.getKey(), "TestTimestamp"), testTimestamp.getKey())); + event0004.getParameterMap().put("TestTemperature", + new AxField(new AxReferenceKey(event0004.getKey(), "TestTemperature"), testTemperature.getKey())); + event0004.getParameterMap().put("TestMatchCaseSelected", + new AxField(new AxReferenceKey(event0004.getKey(), "TestMatchCaseSelected"), testCase.getKey())); + event0004.getParameterMap().put("TestMatchStateTime", + new AxField(new AxReferenceKey(event0004.getKey(), "TestMatchStateTime"), testTimestamp.getKey())); + event0004.getParameterMap().put("TestEstablishCaseSelected", + new AxField(new AxReferenceKey(event0004.getKey(), "TestEstablishCaseSelected"), testCase.getKey())); + event0004.getParameterMap().put("TestEstablishStateTime", + new AxField(new AxReferenceKey(event0004.getKey(), "TestEstablishStateTime"), testTimestamp.getKey())); + event0004.getParameterMap().put("TestDecideCaseSelected", + new AxField(new AxReferenceKey(event0004.getKey(), "TestDecideCaseSelected"), testCase.getKey())); + event0004.getParameterMap().put("TestDecideStateTime", + new AxField(new AxReferenceKey(event0004.getKey(), "TestDecideStateTime"), testTimestamp.getKey())); + event0004.getParameterMap().put("TestActCaseSelected", + new AxField(new AxReferenceKey(event0004.getKey(), "TestActCaseSelected"), testCase.getKey())); + event0004.getParameterMap().put("TestActStateTime", + new AxField(new AxReferenceKey(event0004.getKey(), "TestActStateTime"), testTimestamp.getKey())); + + AxEvent event0100 = new AxEvent(new AxArtifactKey("Event0100", "0.0.1"), "org.onap.policy.apex.sample.events"); + event0100.setSource("Outside"); + event0100.setTarget("Match"); + event0100.getParameterMap().put("TestSlogan", + new AxField(new AxReferenceKey(event0100.getKey(), "TestSlogan"), testSlogan.getKey())); + event0100.getParameterMap().put("TestMatchCase", + new AxField(new AxReferenceKey(event0100.getKey(), "TestMatchCase"), testCase.getKey())); + event0100.getParameterMap().put("TestTimestamp", + new AxField(new AxReferenceKey(event0100.getKey(), "TestTimestamp"), testTimestamp.getKey())); + event0100.getParameterMap().put("TestTemperature", + new AxField(new AxReferenceKey(event0100.getKey(), "TestTemperature"), testTemperature.getKey())); + + AxEvent event0101 = new AxEvent(new AxArtifactKey("Event0101", "0.0.1"), "org.onap.policy.apex.sample.events"); + event0101.setSource("Match"); + event0101.setTarget("Establish"); + event0101.getParameterMap().put("TestSlogan", + new AxField(new AxReferenceKey(event0101.getKey(), "TestSlogan"), testSlogan.getKey())); + event0101.getParameterMap().put("TestMatchCase", + new AxField(new AxReferenceKey(event0101.getKey(), "TestMatchCase"), testCase.getKey())); + event0101.getParameterMap().put("TestTimestamp", + new AxField(new AxReferenceKey(event0101.getKey(), "TestTimestamp"), testTimestamp.getKey())); + event0101.getParameterMap().put("TestTemperature", + new AxField(new AxReferenceKey(event0101.getKey(), "TestTemperature"), testTemperature.getKey())); + event0101.getParameterMap().put("TestMatchCaseSelected", + new AxField(new AxReferenceKey(event0101.getKey(), "TestMatchCaseSelected"), testCase.getKey())); + event0101.getParameterMap().put("TestMatchStateTime", + new AxField(new AxReferenceKey(event0101.getKey(), "TestMatchStateTime"), testTimestamp.getKey())); + + AxEvent event0102 = new AxEvent(new AxArtifactKey("Event0102", "0.0.1"), "org.onap.policy.apex.sample.events"); + event0102.setSource("Establish"); + event0102.setTarget("Decide"); + event0102.getParameterMap().put("TestSlogan", + new AxField(new AxReferenceKey(event0102.getKey(), "TestSlogan"), testSlogan.getKey())); + event0102.getParameterMap().put("TestMatchCase", + new AxField(new AxReferenceKey(event0102.getKey(), "TestMatchCase"), testCase.getKey())); + event0102.getParameterMap().put("TestTimestamp", + new AxField(new AxReferenceKey(event0102.getKey(), "TestTimestamp"), testTimestamp.getKey())); + event0102.getParameterMap().put("TestTemperature", + new AxField(new AxReferenceKey(event0102.getKey(), "TestTemperature"), testTemperature.getKey())); + event0102.getParameterMap().put("TestMatchCaseSelected", + new AxField(new AxReferenceKey(event0102.getKey(), "TestMatchCaseSelected"), testCase.getKey())); + event0102.getParameterMap().put("TestMatchStateTime", + new AxField(new AxReferenceKey(event0102.getKey(), "TestMatchStateTime"), testTimestamp.getKey())); + event0102.getParameterMap().put("TestEstablishCaseSelected", + new AxField(new AxReferenceKey(event0102.getKey(), "TestEstablishCaseSelected"), testCase.getKey())); + event0102.getParameterMap().put("TestEstablishStateTime", + new AxField(new AxReferenceKey(event0102.getKey(), "TestEstablishStateTime"), testTimestamp.getKey())); + + AxEvent event0103 = new AxEvent(new AxArtifactKey("Event0103", "0.0.1"), "org.onap.policy.apex.sample.events"); + event0103.setSource("Decide"); + event0103.setTarget("Act"); + event0103.getParameterMap().put("TestSlogan", + new AxField(new AxReferenceKey(event0103.getKey(), "TestSlogan"), testSlogan.getKey())); + event0103.getParameterMap().put("TestMatchCase", + new AxField(new AxReferenceKey(event0103.getKey(), "TestMatchCase"), testCase.getKey())); + event0103.getParameterMap().put("TestTimestamp", + new AxField(new AxReferenceKey(event0103.getKey(), "TestTimestamp"), testTimestamp.getKey())); + event0103.getParameterMap().put("TestTemperature", + new AxField(new AxReferenceKey(event0103.getKey(), "TestTemperature"), testTemperature.getKey())); + event0103.getParameterMap().put("TestMatchCaseSelected", + new AxField(new AxReferenceKey(event0103.getKey(), "TestMatchCaseSelected"), testCase.getKey())); + event0103.getParameterMap().put("TestMatchStateTime", + new AxField(new AxReferenceKey(event0103.getKey(), "TestMatchStateTime"), testTimestamp.getKey())); + event0103.getParameterMap().put("TestEstablishCaseSelected", + new AxField(new AxReferenceKey(event0103.getKey(), "TestEstablishCaseSelected"), testCase.getKey())); + event0103.getParameterMap().put("TestEstablishStateTime", + new AxField(new AxReferenceKey(event0103.getKey(), "TestEstablishStateTime"), testTimestamp.getKey())); + event0103.getParameterMap().put("TestDecideCaseSelected", + new AxField(new AxReferenceKey(event0103.getKey(), "TestDecideCaseSelected"), testCase.getKey())); + event0103.getParameterMap().put("TestDecideStateTime", + new AxField(new AxReferenceKey(event0103.getKey(), "TestDecideStateTime"), testTimestamp.getKey())); + + AxEvent event0104 = new AxEvent(new AxArtifactKey("Event0104", "0.0.1"), "org.onap.policy.apex.sample.events"); + event0104.setSource("Act"); + event0104.setTarget("Outside"); + event0104.getParameterMap().put("TestSlogan", + new AxField(new AxReferenceKey(event0104.getKey(), "TestSlogan"), testSlogan.getKey())); + event0104.getParameterMap().put("TestMatchCase", + new AxField(new AxReferenceKey(event0104.getKey(), "TestMatchCase"), testCase.getKey())); + event0104.getParameterMap().put("TestTimestamp", + new AxField(new AxReferenceKey(event0104.getKey(), "TestTimestamp"), testTimestamp.getKey())); + event0104.getParameterMap().put("TestTemperature", + new AxField(new AxReferenceKey(event0104.getKey(), "TestTemperature"), testTemperature.getKey())); + event0104.getParameterMap().put("TestMatchCaseSelected", + new AxField(new AxReferenceKey(event0104.getKey(), "TestMatchCaseSelected"), testCase.getKey())); + event0104.getParameterMap().put("TestMatchStateTime", + new AxField(new AxReferenceKey(event0104.getKey(), "TestMatchStateTime"), testTimestamp.getKey())); + event0104.getParameterMap().put("TestEstablishCaseSelected", + new AxField(new AxReferenceKey(event0104.getKey(), "TestEstablishCaseSelected"), testCase.getKey())); + event0104.getParameterMap().put("TestEstablishStateTime", + new AxField(new AxReferenceKey(event0104.getKey(), "TestEstablishStateTime"), testTimestamp.getKey())); + event0104.getParameterMap().put("TestDecideCaseSelected", + new AxField(new AxReferenceKey(event0104.getKey(), "TestDecideCaseSelected"), testCase.getKey())); + event0104.getParameterMap().put("TestDecideStateTime", + new AxField(new AxReferenceKey(event0104.getKey(), "TestDecideStateTime"), testTimestamp.getKey())); + event0104.getParameterMap().put("TestActCaseSelected", + new AxField(new AxReferenceKey(event0104.getKey(), "TestActCaseSelected"), testCase.getKey())); + event0104.getParameterMap().put("TestActStateTime", + new AxField(new AxReferenceKey(event0104.getKey(), "TestActStateTime"), testTimestamp.getKey())); + + AxEvents events = new AxEvents(new AxArtifactKey("Events", "0.0.1")); + events.getEventMap().put(event0000.getKey(), event0000); + events.getEventMap().put(event0001.getKey(), event0001); + events.getEventMap().put(event0002.getKey(), event0002); + events.getEventMap().put(event0003.getKey(), event0003); + events.getEventMap().put(event0004.getKey(), event0004); + events.getEventMap().put(event0100.getKey(), event0100); + events.getEventMap().put(event0101.getKey(), event0101); + events.getEventMap().put(event0102.getKey(), event0102); + events.getEventMap().put(event0103.getKey(), event0103); + events.getEventMap().put(event0104.getKey(), event0104); + + AxContextAlbum externalContextAlbum = new AxContextAlbum(new AxArtifactKey("ExternalContextAlbum", "0.0.1"), + "EXTERNAL", false, testExternalContextItem.getKey()); + AxContextAlbum globalContextAlbum = new AxContextAlbum(new AxArtifactKey("GlobalContextAlbum", "0.0.1"), + "GLOBAL", true, testGlobalContextItem.getKey()); + AxContextAlbum policy0ContextAlbum = new AxContextAlbum(new AxArtifactKey("Policy0ContextAlbum", "0.0.1"), + "APPLICATION", true, testPolicyContextItem.getKey()); + AxContextAlbum policy1ContextAlbum = new AxContextAlbum(new AxArtifactKey("Policy1ContextAlbum", "0.0.1"), + "APPLICATION", true, testPolicyContextItem.getKey()); + + AxContextAlbums albums = new AxContextAlbums(new AxArtifactKey("Context", "0.0.1")); + albums.getAlbumsMap().put(externalContextAlbum.getKey(), externalContextAlbum); + albums.getAlbumsMap().put(globalContextAlbum.getKey(), globalContextAlbum); + albums.getAlbumsMap().put(policy0ContextAlbum.getKey(), policy0ContextAlbum); + albums.getAlbumsMap().put(policy1ContextAlbum.getKey(), policy1ContextAlbum); + + Set referenceKeySet0 = new TreeSet(); + referenceKeySet0.add(policy0ContextAlbum.getKey()); + referenceKeySet0.add(policy1ContextAlbum.getKey()); + referenceKeySet0.add(globalContextAlbum.getKey()); + referenceKeySet0.add(externalContextAlbum.getKey()); + + Set referenceKeySet1 = new TreeSet(); + referenceKeySet1.add(policy0ContextAlbum.getKey()); + referenceKeySet1.add(globalContextAlbum.getKey()); + + Set referenceKeySet2 = new TreeSet(); + referenceKeySet2.add(policy1ContextAlbum.getKey()); + referenceKeySet2.add(globalContextAlbum.getKey()); + + Set referenceKeySet3 = new TreeSet(); + referenceKeySet3.add(globalContextAlbum.getKey()); + referenceKeySet3.add(externalContextAlbum.getKey()); + + List> referenceKeySetList = new ArrayList>(); + referenceKeySetList.add(referenceKeySet0); + referenceKeySetList.add(referenceKeySet1); + referenceKeySetList.add(referenceKeySet2); + referenceKeySetList.add(referenceKeySet3); + + AxTasks tasks = new AxTasks(new AxArtifactKey("Tasks", "0.0.1")); + tasks.getTaskMap().putAll(getTaskMap("Match", event0000.getParameterMap(), event0001.getParameterMap(), + referenceKeySetList, axLogicExecutorType)); + tasks.getTaskMap().putAll(getTaskMap("Establish", event0001.getParameterMap(), event0002.getParameterMap(), + referenceKeySetList, axLogicExecutorType)); + tasks.getTaskMap().putAll(getTaskMap("Decide", event0002.getParameterMap(), event0003.getParameterMap(), + referenceKeySetList, axLogicExecutorType)); + tasks.getTaskMap().putAll(getTaskMap("Act", event0003.getParameterMap(), event0004.getParameterMap(), + referenceKeySetList, axLogicExecutorType)); + + Set matchTasks = new TreeSet(); + Set establishTasks = new TreeSet(); + Set decideTasks = new TreeSet(); + Set actTasks = new TreeSet(); + for (AxTask task : tasks.getTaskMap().values()) { + if (task.getKey().getName().contains("Match")) { + matchTasks.add(task.getKey()); + } + if (task.getKey().getName().contains("Establish")) { + establishTasks.add(task.getKey()); + } + if (task.getKey().getName().contains("Decide")) { + decideTasks.add(task.getKey()); + } + if (task.getKey().getName().contains("Act")) { + actTasks.add(task.getKey()); + } + } + List> taskReferenceList = new ArrayList>(); + taskReferenceList.add(matchTasks); + taskReferenceList.add(establishTasks); + taskReferenceList.add(decideTasks); + taskReferenceList.add(actTasks); + + List p0InEventList = new ArrayList(); + p0InEventList.add(event0000.getKey()); + p0InEventList.add(event0001.getKey()); + p0InEventList.add(event0002.getKey()); + p0InEventList.add(event0003.getKey()); + + List p0OutEventList = new ArrayList(); + p0OutEventList.add(event0001.getKey()); + p0OutEventList.add(event0002.getKey()); + p0OutEventList.add(event0003.getKey()); + p0OutEventList.add(event0004.getKey()); + + List p0defaultTaskList = new ArrayList(); + p0defaultTaskList.add(tasks.get("Task_Match0").getKey()); + p0defaultTaskList.add(tasks.get("Task_Establish2").getKey()); + p0defaultTaskList.add(tasks.get("Task_Decide3").getKey()); + p0defaultTaskList.add(tasks.get("Task_Act1").getKey()); + + List p1InEventList = new ArrayList(); + p1InEventList.add(event0100.getKey()); + p1InEventList.add(event0101.getKey()); + p1InEventList.add(event0102.getKey()); + p1InEventList.add(event0103.getKey()); + + List p1OutEventList = new ArrayList(); + p1OutEventList.add(event0101.getKey()); + p1OutEventList.add(event0102.getKey()); + p1OutEventList.add(event0103.getKey()); + p1OutEventList.add(event0104.getKey()); + + List p1defaultTaskList = new ArrayList(); + p1defaultTaskList.add(tasks.get("Task_Match3").getKey()); + p1defaultTaskList.add(tasks.get("Task_Establish1").getKey()); + p1defaultTaskList.add(tasks.get("Task_Decide3").getKey()); + p1defaultTaskList.add(tasks.get("Task_Act0").getKey()); + + Set p0ReferenceKeySet0 = new TreeSet(); + p0ReferenceKeySet0.add(policy0ContextAlbum.getKey()); + p0ReferenceKeySet0.add(globalContextAlbum.getKey()); + + Set p0ReferenceKeySet1 = new TreeSet(); + p0ReferenceKeySet1.add(policy1ContextAlbum.getKey()); + p0ReferenceKeySet1.add(globalContextAlbum.getKey()); + p0ReferenceKeySet1.add(externalContextAlbum.getKey()); + + Set p0ReferenceKeySet2 = new TreeSet(); + p0ReferenceKeySet2.add(policy0ContextAlbum.getKey()); + p0ReferenceKeySet2.add(globalContextAlbum.getKey()); + p0ReferenceKeySet2.add(externalContextAlbum.getKey()); + + Set p0ReferenceKeySet3 = new TreeSet(); + p0ReferenceKeySet3.add(globalContextAlbum.getKey()); + + List> p0ReferenceKeySetList = new ArrayList>(); + p0ReferenceKeySetList.add(p0ReferenceKeySet0); + p0ReferenceKeySetList.add(p0ReferenceKeySet1); + p0ReferenceKeySetList.add(p0ReferenceKeySet2); + p0ReferenceKeySetList.add(p0ReferenceKeySet3); + + AxPolicy policy0 = new AxPolicy(new AxArtifactKey("Policy0", "0.0.1")); + policy0.setTemplate("MEDA"); + policy0.setStateMap(getStateMap(policy0.getKey(), p0InEventList, p0OutEventList, p0ReferenceKeySetList, + axLogicExecutorType, p0defaultTaskList, taskReferenceList)); + policy0.setFirstState(policy0.getStateMap().get("Match").getKey().getLocalName()); + + Set p1ReferenceKeySet0 = new TreeSet(); + p1ReferenceKeySet0.add(policy1ContextAlbum.getKey()); + p1ReferenceKeySet0.add(globalContextAlbum.getKey()); + p1ReferenceKeySet0.add(externalContextAlbum.getKey()); + + Set p1ReferenceKeySet1 = new TreeSet(); + p1ReferenceKeySet1.add(policy1ContextAlbum.getKey()); + p1ReferenceKeySet1.add(globalContextAlbum.getKey()); + p1ReferenceKeySet1.add(externalContextAlbum.getKey()); + + Set p1ReferenceKeySet2 = new TreeSet(); + p1ReferenceKeySet2.add(policy1ContextAlbum.getKey()); + p1ReferenceKeySet2.add(globalContextAlbum.getKey()); + p1ReferenceKeySet2.add(externalContextAlbum.getKey()); + + Set p1ReferenceKeySet3 = new TreeSet(); + p1ReferenceKeySet3.add(globalContextAlbum.getKey()); + + List> p1ReferenceKeySetList = new ArrayList>(); + p1ReferenceKeySetList.add(p1ReferenceKeySet0); + p1ReferenceKeySetList.add(p1ReferenceKeySet1); + p1ReferenceKeySetList.add(p1ReferenceKeySet2); + p1ReferenceKeySetList.add(p1ReferenceKeySet3); + + AxPolicy policy1 = new AxPolicy(new AxArtifactKey("Policy1", "0.0.1")); + policy1.setTemplate("MEDA"); + policy1.setStateMap(getStateMap(policy1.getKey(), p1InEventList, p1OutEventList, p1ReferenceKeySetList, + axLogicExecutorType, p1defaultTaskList, taskReferenceList)); + policy1.setFirstState(policy1.getStateMap().get("Match").getKey().getLocalName()); + + AxPolicies policies = new AxPolicies(new AxArtifactKey("Policies", "0.0.1")); + policies.getPolicyMap().put(policy0.getKey(), policy0); + policies.getPolicyMap().put(policy1.getKey(), policy1); + + AxKeyInformation keyInformation = new AxKeyInformation(new AxArtifactKey("KeyInformation", "0.0.1")); + AxPolicyModel policyModel = + new AxPolicyModel(new AxArtifactKey("SamplePolicyModel" + axLogicExecutorType, "0.0.1")); + policyModel.setKeyInformation(keyInformation); + policyModel.setPolicies(policies); + policyModel.setEvents(events); + policyModel.setTasks(tasks); + policyModel.setAlbums(albums); + policyModel.setSchemas(axContextSchemas); + policyModel.getKeyInformation().generateKeyInfo(policyModel); + + AxValidationResult result = policyModel.validate(new AxValidationResult()); + if (!result.getValidationResult().equals(AxValidationResult.ValidationResult.VALID)) { + throw new ApexRuntimeException("model " + policyModel.getID() + " is not valid" + result); + } + return policyModel; + } + + /** + * Gets the state map. + * + * @param policyKey the policy key + * @param inEventKeyList the in event key list + * @param outEventKeyList the out event key list + * @param referenceKeySetList the reference key set list + * @param axLogicExecutorType the ax logic executor type + * @param defaultTaskList the default task list + * @param taskKeySetList the task key set list + * @return the state map + */ + private Map getStateMap(final AxArtifactKey policyKey, final List inEventKeyList, + final List outEventKeyList, final List> referenceKeySetList, + final String axLogicExecutorType, final List defaultTaskList, + final List> taskKeySetList) { + AxLogicReader logicReader = new PolicyLogicReader().setLogicPackage(this.getClass().getPackage().getName()) + .setDefaultLogic("DefaultState_Logic"); + + AxState actState = new AxState(new AxReferenceKey(policyKey, "Act")); + actState.setTrigger(inEventKeyList.get(3)); + AxStateOutput act2Out = + new AxStateOutput(actState.getKey(), AxReferenceKey.getNullKey(), outEventKeyList.get(3)); + actState.getStateOutputs().put(act2Out.getKey().getLocalName(), act2Out); + actState.setContextAlbumReferences(referenceKeySetList.get(3)); + actState.setTaskSelectionLogic( + new AxTaskSelectionLogic(actState.getKey(), "TaskSelectionLigic", axLogicExecutorType, logicReader)); + actState.setDefaultTask(defaultTaskList.get(3)); + for (AxArtifactKey taskKey : taskKeySetList.get(3)) { + actState.getTaskReferences().put(taskKey, new AxStateTaskReference(actState.getKey(), taskKey, + AxStateTaskOutputType.DIRECT, act2Out.getKey())); + } + + AxState decideState = new AxState(new AxReferenceKey(policyKey, "Decide")); + decideState.setTrigger(inEventKeyList.get(2)); + AxStateOutput decide2Act = new AxStateOutput(decideState.getKey(), actState.getKey(), outEventKeyList.get(2)); + decideState.getStateOutputs().put(decide2Act.getKey().getLocalName(), decide2Act); + decideState.setContextAlbumReferences(referenceKeySetList.get(2)); + decideState.setTaskSelectionLogic( + new AxTaskSelectionLogic(decideState.getKey(), "TaskSelectionLigic", axLogicExecutorType, logicReader)); + decideState.setDefaultTask(defaultTaskList.get(2)); + for (AxArtifactKey taskKey : taskKeySetList.get(2)) { + decideState.getTaskReferences().put(taskKey, new AxStateTaskReference(decideState.getKey(), taskKey, + AxStateTaskOutputType.DIRECT, decide2Act.getKey())); + } + + AxState establishState = new AxState(new AxReferenceKey(policyKey, "Establish")); + establishState.setTrigger(inEventKeyList.get(1)); + AxStateOutput establish2Decide = + new AxStateOutput(establishState.getKey(), decideState.getKey(), outEventKeyList.get(1)); + establishState.getStateOutputs().put(establish2Decide.getKey().getLocalName(), establish2Decide); + establishState.setContextAlbumReferences(referenceKeySetList.get(1)); + establishState.setTaskSelectionLogic(new AxTaskSelectionLogic(establishState.getKey(), "TaskSelectionLigic", + axLogicExecutorType, logicReader)); + establishState.setDefaultTask(defaultTaskList.get(1)); + for (AxArtifactKey taskKey : taskKeySetList.get(1)) { + establishState.getTaskReferences().put(taskKey, new AxStateTaskReference(establishState.getKey(), taskKey, + AxStateTaskOutputType.DIRECT, establish2Decide.getKey())); + } + + AxState matchState = new AxState(new AxReferenceKey(policyKey, "Match")); + matchState.setTrigger(inEventKeyList.get(0)); + AxStateOutput match2Establish = + new AxStateOutput(matchState.getKey(), establishState.getKey(), outEventKeyList.get(0)); + matchState.getStateOutputs().put(match2Establish.getKey().getLocalName(), match2Establish); + matchState.setContextAlbumReferences(referenceKeySetList.get(0)); + matchState.setTaskSelectionLogic( + new AxTaskSelectionLogic(matchState.getKey(), "TaskSelectionLigic", axLogicExecutorType, logicReader)); + matchState.setDefaultTask(defaultTaskList.get(0)); + for (AxArtifactKey taskKey : taskKeySetList.get(0)) { + matchState.getTaskReferences().put(taskKey, new AxStateTaskReference(matchState.getKey(), taskKey, + AxStateTaskOutputType.DIRECT, match2Establish.getKey())); + } + + Map stateMap = new TreeMap(); + stateMap.put(matchState.getKey().getLocalName(), matchState); + stateMap.put(establishState.getKey().getLocalName(), establishState); + stateMap.put(decideState.getKey().getLocalName(), decideState); + stateMap.put(actState.getKey().getLocalName(), actState); + + return stateMap; + } + // CHECKSTYLE:ON: checkstyle:maximumMethodLength + + /** + * Gets the task map. + * + * @param state the state + * @param inputFields the input fields + * @param outputFields the output fields + * @param referenceKeySetList the reference key set list + * @param axLogicExecutorType the ax logic executor type + * @return the task map + */ + private Map getTaskMap(final String state, final Map inputFields, + final Map outputFields, final List> referenceKeySetList, + final String axLogicExecutorType) { + AxLogicReader logicReader = new PolicyLogicReader().setLogicPackage(this.getClass().getPackage().getName()) + .setDefaultLogic("DefaultTask_Logic"); + + AxTask testTask0 = new AxTask(new AxArtifactKey("Task_" + state + "0", "0.0.1")); + testTask0.duplicateInputFields(inputFields); + testTask0.duplicateOutputFields(outputFields); + AxTaskParameter parameter00 = + new AxTaskParameter(new AxReferenceKey(testTask0.getKey(), "Parameter0"), "DefaultValue0"); + AxTaskParameter parameter01 = + new AxTaskParameter(new AxReferenceKey(testTask0.getKey(), "Parameter1"), "DefaultValue1"); + AxTaskParameter parameter02 = + new AxTaskParameter(new AxReferenceKey(testTask0.getKey(), "Parameter2"), "DefaultValue2"); + testTask0.getTaskParameters().put(parameter00.getKey().getLocalName(), parameter00); + testTask0.getTaskParameters().put(parameter01.getKey().getLocalName(), parameter01); + testTask0.getTaskParameters().put(parameter02.getKey().getLocalName(), parameter02); + testTask0.setContextAlbumReferences(referenceKeySetList.get(0)); + testTask0.setTaskLogic(getTaskLogic(testTask0, logicReader, axLogicExecutorType, state, "2")); + + AxTask testTask1 = new AxTask(new AxArtifactKey("Task_" + state + "1", "0.0.1")); + testTask1.duplicateInputFields(inputFields); + testTask1.duplicateOutputFields(outputFields); + AxTaskParameter parameter10 = + new AxTaskParameter(new AxReferenceKey(testTask1.getKey(), "Parameter0"), "DefaultValue0"); + AxTaskParameter parameter11 = + new AxTaskParameter(new AxReferenceKey(testTask1.getKey(), "Parameter1"), "DefaultValue1"); + testTask1.getTaskParameters().put(parameter10.getKey().getLocalName(), parameter10); + testTask1.getTaskParameters().put(parameter11.getKey().getLocalName(), parameter11); + testTask1.setContextAlbumReferences(referenceKeySetList.get(1)); + testTask1.setTaskLogic(getTaskLogic(testTask1, logicReader, axLogicExecutorType, state, "3")); + + AxTask testTask2 = new AxTask(new AxArtifactKey("Task_" + state + "2", "0.0.1")); + testTask2.duplicateInputFields(inputFields); + testTask2.duplicateOutputFields(outputFields); + AxTaskParameter parameter20 = + new AxTaskParameter(new AxReferenceKey(testTask2.getKey(), "Parameter0"), "DefaultValue0"); + testTask2.getTaskParameters().put(parameter20.getKey().getLocalName(), parameter20); + testTask2.setContextAlbumReferences(referenceKeySetList.get(2)); + testTask2.setTaskLogic(getTaskLogic(testTask2, logicReader, axLogicExecutorType, state, "0")); + + AxTask testTask3 = new AxTask(new AxArtifactKey("Task_" + state + "3", "0.0.1")); + testTask3.duplicateInputFields(inputFields); + testTask3.duplicateOutputFields(outputFields); + AxTaskParameter parameter30 = + new AxTaskParameter(new AxReferenceKey(testTask3.getKey(), "Parameter0"), "DefaultValue0"); + testTask3.getTaskParameters().put(parameter30.getKey().getLocalName(), parameter30); + testTask3.setContextAlbumReferences(referenceKeySetList.get(THIRD_ENTRY)); + testTask3.setTaskLogic(getTaskLogic(testTask3, logicReader, axLogicExecutorType, state, "1")); + + Map taskMap = new TreeMap(); + taskMap.put(testTask0.getKey(), testTask0); + taskMap.put(testTask1.getKey(), testTask1); + taskMap.put(testTask2.getKey(), testTask2); + taskMap.put(testTask3.getKey(), testTask3); + + return taskMap; + } + + /** + * Gets the task logic. + * + * @param task the task + * @param logicReader the logic reader + * @param logicFlavour the logic flavour + * @param stateName the state name + * @param caseToUse the case to use + * @return the task logic + */ + private AxTaskLogic getTaskLogic(final AxTask task, final AxLogicReader logicReader, final String logicFlavour, + final String stateName, final String caseToUse) { + AxTaskLogic axLogic = + new AxTaskLogic(new AxReferenceKey(task.getKey(), "_TaskLogic"), logicFlavour, logicReader); + + axLogic.setLogic(axLogic.getLogic().replaceAll("", stateName) + .replaceAll("", task.getKey().getName()).replaceAll("", caseToUse)); + + return axLogic; + } +} diff --git a/testsuites/integration/integration-common/src/main/java/org/onap/policy/apex/test/common/model/SampleDomainModelSaver.java b/testsuites/integration/integration-common/src/main/java/org/onap/policy/apex/test/common/model/SampleDomainModelSaver.java new file mode 100644 index 000000000..c346d94c0 --- /dev/null +++ b/testsuites/integration/integration-common/src/main/java/org/onap/policy/apex/test/common/model/SampleDomainModelSaver.java @@ -0,0 +1,82 @@ +/*- + * ============LICENSE_START======================================================= + * Copyright (C) 2016-2018 Ericsson. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + * ============LICENSE_END========================================================= + */ + +package org.onap.policy.apex.test.common.model; + +import org.onap.policy.apex.model.basicmodel.concepts.ApexException; +import org.onap.policy.apex.model.basicmodel.handling.ApexModelSaver; +import org.onap.policy.apex.model.policymodel.concepts.AxPolicyModel; + +/** + * This class saves sample domain models to disk in XML and JSON format. + * + * @author Liam Fallon (liam.fallon@ericsson.com) + */ +public final class SampleDomainModelSaver { + /** + * Private default constructor to prevent subclassing. + */ + private SampleDomainModelSaver() { + } + + /** + * Write the sample Models to args[0]. + * + * @param args Not used + * @throws ApexException the apex exception + */ + public static void main(final String[] args) throws ApexException { + if (args.length != 1) { + System.err.println("usage: " + SampleDomainModelSaver.class.getCanonicalName() + " modelDirectory"); + return; + } + + // Save Java model + final AxPolicyModel javaPolicyModel = new SampleDomainModelFactory().getSamplePolicyModel("JAVA"); + final ApexModelSaver javaModelSaver = new ApexModelSaver(AxPolicyModel.class, javaPolicyModel, args[0]); + javaModelSaver.apexModelWriteJSON(); + javaModelSaver.apexModelWriteXML(); + + // Save Javascript model + final AxPolicyModel javascriptPolicyModel = new SampleDomainModelFactory().getSamplePolicyModel("JAVASCRIPT"); + final ApexModelSaver javascriptModelSaver = new ApexModelSaver(AxPolicyModel.class, javascriptPolicyModel, args[0]); + javascriptModelSaver.apexModelWriteJSON(); + javascriptModelSaver.apexModelWriteXML(); + + // Save JRuby model + final AxPolicyModel jRubyPolicyModel = new SampleDomainModelFactory().getSamplePolicyModel("JRUBY"); + final ApexModelSaver jRubyModelSaver = new ApexModelSaver(AxPolicyModel.class, jRubyPolicyModel, args[0]); + jRubyModelSaver.apexModelWriteJSON(); + jRubyModelSaver.apexModelWriteXML(); + + // Save Jython model + final AxPolicyModel jythonPolicyModel = new SampleDomainModelFactory().getSamplePolicyModel("JYTHON"); + final ApexModelSaver jythonModelSaver = new ApexModelSaver(AxPolicyModel.class, jythonPolicyModel, args[0]); + jythonModelSaver.apexModelWriteJSON(); + jythonModelSaver.apexModelWriteXML(); + + // Save MVEL model + final AxPolicyModel mvelPolicyModel = new SampleDomainModelFactory().getSamplePolicyModel("MVEL"); + final ApexModelSaver mvelModelSaver = new ApexModelSaver(AxPolicyModel.class, mvelPolicyModel, args[0]); + mvelModelSaver.apexModelWriteJSON(); + mvelModelSaver.apexModelWriteXML(); + } + +} diff --git a/testsuites/integration/integration-common/src/main/java/org/onap/policy/apex/test/common/model/java/DefaultState_Logic.java b/testsuites/integration/integration-common/src/main/java/org/onap/policy/apex/test/common/model/java/DefaultState_Logic.java new file mode 100644 index 000000000..d970835d0 --- /dev/null +++ b/testsuites/integration/integration-common/src/main/java/org/onap/policy/apex/test/common/model/java/DefaultState_Logic.java @@ -0,0 +1,43 @@ +/*- + * ============LICENSE_START======================================================= + * Copyright (C) 2016-2018 Ericsson. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + * ============LICENSE_END========================================================= + */ + +package org.onap.policy.apex.test.common.model.java; + +import org.onap.policy.apex.core.engine.executor.context.TaskSelectionExecutionContext; + +/** + * The Class DefaultState_Logic is default task selection logic in Java. + */ +// CHECKSTYLE:OFF: checkstyle:typeNames +public class DefaultState_Logic { + // CHECKSTYLE:ON: checkstyle:typeNames + /** + * Gets the task. + * + * @param executor the executor + * @return the task + */ + public boolean getTask(final TaskSelectionExecutionContext executor) { + executor.logger.debug(executor.subject.getId()); + executor.logger.debug(executor.getContextAlbum("GlobalContextAlbum").getName()); + executor.subject.getDefaultTaskKey().copyTo(executor.selectedTask); + return true; + } +} diff --git a/testsuites/integration/integration-common/src/main/java/org/onap/policy/apex/test/common/model/java/DefaultTask_Logic.java b/testsuites/integration/integration-common/src/main/java/org/onap/policy/apex/test/common/model/java/DefaultTask_Logic.java new file mode 100644 index 000000000..b22f15d90 --- /dev/null +++ b/testsuites/integration/integration-common/src/main/java/org/onap/policy/apex/test/common/model/java/DefaultTask_Logic.java @@ -0,0 +1,71 @@ +/*- + * ============LICENSE_START======================================================= + * Copyright (C) 2016-2018 Ericsson. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + * ============LICENSE_END========================================================= + */ + +package org.onap.policy.apex.test.common.model.java; + +import java.util.Date; +import java.util.Random; + +import org.onap.policy.apex.core.engine.executor.context.TaskExecutionContext; +import org.onap.policy.apex.model.basicmodel.concepts.ApexException; + +/** + * The Class DefaultTask_Logic is default task logic in Java. + */ +//CHECKSTYLE:OFF: checkstyle:typeNames +public class DefaultTask_Logic { +// CHECKSTYLE:ON: checkstyle:typeNames + private static final int BOUND_FOR_RANDOM_INT = 4; + + /** + * Gets the event. + * + * @param executor the executor + * @return the event + * @throws ApexException the apex exception + */ + public boolean getEvent(final TaskExecutionContext executor) throws ApexException { + executor.logger.debug(executor.subject.getId()); + executor.logger.debug(executor.getContextAlbum("GlobalContextAlbum").getName()); + executor.logger.debug(executor.inFields.toString()); + + final Date timeNow = new Date(); + final Random rand = new Random(); + + if (executor.inFields.containsKey("TestDecideCaseSelected")) { + executor.outFields.put("TestActCaseSelected", new Byte((byte) rand.nextInt(BOUND_FOR_RANDOM_INT))); + executor.outFields.put("TestActStateTime", timeNow.getTime()); + } + else if (executor.inFields.containsKey("TestEstablishCaseSelected")) { + executor.outFields.put("TestDecideCaseSelected", new Byte((byte) rand.nextInt(BOUND_FOR_RANDOM_INT))); + executor.outFields.put("TestDecideStateTime", timeNow.getTime()); + } + else if (executor.inFields.containsKey("TestMatchCaseSelected")) { + executor.outFields.put("TestEstablishCaseSelected", new Byte((byte) rand.nextInt(BOUND_FOR_RANDOM_INT))); + executor.outFields.put("TestEstablishStateTime", timeNow.getTime()); + } + else { + executor.outFields.put("TestMatchCaseSelected", new Byte((byte) rand.nextInt(BOUND_FOR_RANDOM_INT))); + executor.outFields.put("TestMatchStateTime", timeNow.getTime()); + } + + return true; + } +} diff --git a/testsuites/integration/integration-common/src/main/java/org/onap/policy/apex/test/common/model/java/EvalState_Logic.java b/testsuites/integration/integration-common/src/main/java/org/onap/policy/apex/test/common/model/java/EvalState_Logic.java new file mode 100644 index 000000000..2180936ed --- /dev/null +++ b/testsuites/integration/integration-common/src/main/java/org/onap/policy/apex/test/common/model/java/EvalState_Logic.java @@ -0,0 +1,42 @@ +/*- + * ============LICENSE_START======================================================= + * Copyright (C) 2016-2018 Ericsson. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + * ============LICENSE_END========================================================= + */ + +package org.onap.policy.apex.test.common.model.java; + +import org.onap.policy.apex.core.engine.executor.context.TaskSelectionExecutionContext; + +/** + * The Class EvalState_Logic is default evaluation task selection logic in Java. + */ +//CHECKSTYLE:OFF: checkstyle:typeNames +public class EvalState_Logic { + // CHECKSTYLE:ON: checkstyle:typeNames + /** + * Gets the task. + * + * @param executor the executor + * @return the task + */ + public boolean getTask(final TaskSelectionExecutionContext executor) { + executor.logger.debug(executor.subject.getId()); + executor.subject.getDefaultTaskKey().copyTo(executor.selectedTask); + return true; + } +} diff --git a/testsuites/integration/integration-common/src/main/java/org/onap/policy/apex/test/common/model/java/EvalTask_Logic.java b/testsuites/integration/integration-common/src/main/java/org/onap/policy/apex/test/common/model/java/EvalTask_Logic.java new file mode 100644 index 000000000..f86107186 --- /dev/null +++ b/testsuites/integration/integration-common/src/main/java/org/onap/policy/apex/test/common/model/java/EvalTask_Logic.java @@ -0,0 +1,55 @@ +/*- + * ============LICENSE_START======================================================= + * Copyright (C) 2016-2018 Ericsson. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + * ============LICENSE_END========================================================= + */ + +package org.onap.policy.apex.test.common.model.java; + +import java.util.Date; + +import org.onap.policy.apex.core.engine.executor.context.TaskExecutionContext; +import org.onap.policy.apex.model.basicmodel.concepts.ApexException; + +/** + * The Class EvalTask_Logic is default evaluation task logic in Java. + */ +//CHECKSTYLE:OFF: checkstyle:typeNames +public class EvalTask_Logic { + // CHECKSTYLE:ON: checkstyle:typeNames + private static int stateNo = 0; + + /** + * Gets the event. + * + * @param executor the executor + * @return the event + * @throws ApexException the apex exception + */ + public boolean getEvent(final TaskExecutionContext executor) throws ApexException { + executor.logger.debug(executor.subject.getId()); + executor.logger.debug(executor.inFields.toString()); + System.err.println(executor.inFields); + executor.outFields.putAll(executor.inFields); + + final Date timeNow = new Date(); + executor.outFields.put("State" + (stateNo + 1) + "Timestamp", timeNow.getTime()); + executor.logger.debug(executor.outFields.toString()); + stateNo++; + return true; + } +} diff --git a/testsuites/integration/integration-common/src/main/java/org/onap/policy/apex/test/common/model/java/package-info.java b/testsuites/integration/integration-common/src/main/java/org/onap/policy/apex/test/common/model/java/package-info.java new file mode 100644 index 000000000..70c8452b5 --- /dev/null +++ b/testsuites/integration/integration-common/src/main/java/org/onap/policy/apex/test/common/model/java/package-info.java @@ -0,0 +1,26 @@ +/*- + * ============LICENSE_START======================================================= + * Copyright (C) 2016-2018 Ericsson. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + * ============LICENSE_END========================================================= + */ + +/** + * Contains the Javadomain specific logic for the test domain. + * + * @author Liam Fallon (liam.fallon@ericsson.com) + */ +package org.onap.policy.apex.test.common.model.java; diff --git a/testsuites/integration/integration-common/src/main/java/org/onap/policy/apex/test/common/model/package-info.java b/testsuites/integration/integration-common/src/main/java/org/onap/policy/apex/test/common/model/package-info.java new file mode 100644 index 000000000..9277bd43c --- /dev/null +++ b/testsuites/integration/integration-common/src/main/java/org/onap/policy/apex/test/common/model/package-info.java @@ -0,0 +1,26 @@ +/*- + * ============LICENSE_START======================================================= + * Copyright (C) 2016-2018 Ericsson. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + * ============LICENSE_END========================================================= + */ + +/** + * Executes tests using all the APEX executors on a test domain model. + * + * @author Liam Fallon (liam.fallon@ericsson.com) + */ +package org.onap.policy.apex.test.common.model; diff --git a/testsuites/integration/integration-common/src/main/resources/examples/events/SampleDomain/EventsIn.jsons b/testsuites/integration/integration-common/src/main/resources/examples/events/SampleDomain/EventsIn.jsons new file mode 100644 index 000000000..da11b2c94 --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/examples/events/SampleDomain/EventsIn.jsons @@ -0,0 +1,1100 @@ +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869268, + "TestTemperature": 8071.559 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869269, + "TestTemperature": 517.19727 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 0, + "TestTimestamp": 1469781869269, + "TestTemperature": 9080.866 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869269, + "TestTemperature": 4263.7085 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869269, + "TestTemperature": 2342.069 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869269, + "TestTemperature": 6400.4565 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869269, + "TestTemperature": 9495.611 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 1, + "TestTimestamp": 1469781869269, + "TestTemperature": 4872.2935 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 3, + "TestTimestamp": 1469781869269, + "TestTemperature": 8130.8086 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869269, + "TestTemperature": 2580.434 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 1, + "TestTimestamp": 1469781869269, + "TestTemperature": 3169.4663 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 1, + "TestTimestamp": 1469781869269, + "TestTemperature": 4517.7646 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 3, + "TestTimestamp": 1469781869269, + "TestTemperature": 9600.465 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 1, + "TestTimestamp": 1469781869269, + "TestTemperature": 8720.648 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 1, + "TestTimestamp": 1469781869269, + "TestTemperature": 1031.3821 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 3, + "TestTimestamp": 1469781869270, + "TestTemperature": 959.9608 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 3, + "TestTimestamp": 1469781869270, + "TestTemperature": 1483.7533 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869270, + "TestTemperature": 394.8325 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 1, + "TestTimestamp": 1469781869270, + "TestTemperature": 59.376953 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869270, + "TestTemperature": 862.1466 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869270, + "TestTemperature": 8557.394 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 0, + "TestTimestamp": 1469781869270, + "TestTemperature": 6732.3687 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 2, + "TestTimestamp": 1469781869270, + "TestTemperature": 7155.3843 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869270, + "TestTemperature": 4896.5264 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869270, + "TestTemperature": 8457.574 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869270, + "TestTemperature": 4085.176 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 1, + "TestTimestamp": 1469781869270, + "TestTemperature": 4198.338 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869270, + "TestTemperature": 105.033516 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 1, + "TestTimestamp": 1469781869270, + "TestTemperature": 8219.068 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 0, + "TestTimestamp": 1469781869270, + "TestTemperature": 8780.495 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869270, + "TestTemperature": 6224.9775 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 3, + "TestTimestamp": 1469781869270, + "TestTemperature": 4218.1353 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 1, + "TestTimestamp": 1469781869270, + "TestTemperature": 4719.9116 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 2, + "TestTimestamp": 1469781869270, + "TestTemperature": 4592.7275 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 1, + "TestTimestamp": 1469781869270, + "TestTemperature": 7874.2705 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 2, + "TestTimestamp": 1469781869270, + "TestTemperature": 9866.951 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 2, + "TestTimestamp": 1469781869270, + "TestTemperature": 7536.962 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 1, + "TestTimestamp": 1469781869270, + "TestTemperature": 2430.3843 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 2, + "TestTimestamp": 1469781869270, + "TestTemperature": 6369.2866 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 0, + "TestTimestamp": 1469781869270, + "TestTemperature": 7396.739 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 2, + "TestTimestamp": 1469781869270, + "TestTemperature": 6187.027 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869270, + "TestTemperature": 2216.0667 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 2, + "TestTimestamp": 1469781869270, + "TestTemperature": 4855.6562 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 2, + "TestTimestamp": 1469781869270, + "TestTemperature": 5205.6836 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 1, + "TestTimestamp": 1469781869270, + "TestTemperature": 418.89252 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 2, + "TestTimestamp": 1469781869270, + "TestTemperature": 5307.6343 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 1, + "TestTimestamp": 1469781869270, + "TestTemperature": 7034.2065 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869270, + "TestTemperature": 7784.3804 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869270, + "TestTemperature": 3656.007 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 0, + "TestTimestamp": 1469781869270, + "TestTemperature": 8538.289 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 2, + "TestTimestamp": 1469781869270, + "TestTemperature": 6515.7104 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 1, + "TestTimestamp": 1469781869270, + "TestTemperature": 4562.0537 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 0, + "TestTimestamp": 1469781869270, + "TestTemperature": 9030.76 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869270, + "TestTemperature": 9085.617 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869270, + "TestTemperature": 1244.1838 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 1, + "TestTimestamp": 1469781869270, + "TestTemperature": 9286.382 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869270, + "TestTemperature": 9573.472 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 2, + "TestTimestamp": 1469781869270, + "TestTemperature": 9994.268 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869271, + "TestTemperature": 3556.8076 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 1305.1998 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 6063.7573 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 8860.109 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 1599.9061 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869271, + "TestTemperature": 4316.625 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 1, + "TestTimestamp": 1469781869271, + "TestTemperature": 2753.6135 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869271, + "TestTemperature": 4469.7656 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 0, + "TestTimestamp": 1469781869271, + "TestTemperature": 4155.1416 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 0, + "TestTimestamp": 1469781869271, + "TestTemperature": 1627.2205 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 1, + "TestTimestamp": 1469781869271, + "TestTemperature": 5554.9585 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 5863.8896 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869271, + "TestTemperature": 9095.753 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 2, + "TestTimestamp": 1469781869271, + "TestTemperature": 5641.7603 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 1, + "TestTimestamp": 1469781869271, + "TestTemperature": 6120.2446 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869271, + "TestTemperature": 3478.2087 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 1807.8446 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 8476.179 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869271, + "TestTemperature": 7418.1934 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 2, + "TestTimestamp": 1469781869271, + "TestTemperature": 4800.719 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 1, + "TestTimestamp": 1469781869271, + "TestTemperature": 8741.285 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 2, + "TestTimestamp": 1469781869271, + "TestTemperature": 2099.0818 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 1, + "TestTimestamp": 1469781869271, + "TestTemperature": 138.22377 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 1, + "TestTimestamp": 1469781869271, + "TestTemperature": 272.6066 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 1, + "TestTimestamp": 1469781869271, + "TestTemperature": 2604.9036 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 540.5176 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 2, + "TestTimestamp": 1469781869271, + "TestTemperature": 1482.7478 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 1053.8315 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869271, + "TestTemperature": 6267.906 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 636.44586 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 902.7964 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 259.42923 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 6066.484 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 0, + "TestTimestamp": 1469781869271, + "TestTemperature": 2918.8723 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 2, + "TestTimestamp": 1469781869271, + "TestTemperature": 6470.262 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 2603.0845 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 0, + "TestTimestamp": 1469781869271, + "TestTemperature": 4435.378 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 0, + "TestTimestamp": 1469781869271, + "TestTemperature": 3989.0928 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 7657.731 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 2, + "TestTimestamp": 1469781869271, + "TestTemperature": 6677.433 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869271, + "TestTemperature": 9456.176 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 8723.999 +} diff --git a/testsuites/integration/integration-common/src/main/resources/examples/events/SampleDomain/EventsIn.xmlfile b/testsuites/integration/integration-common/src/main/resources/examples/events/SampleDomain/EventsIn.xmlfile new file mode 100644 index 000000000..21b9b1975 --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/examples/events/SampleDomain/EventsIn.xmlfile @@ -0,0 +1,2422 @@ + + + + + + + Event0100 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event1 + + + TestMatchCase + 3 + + + TestTimestamp + 1469787109829 + + + TestTemperature + 5029.0977 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 3 + + + TestTimestamp + 1469787109831 + + + TestTemperature + 9205.635 + + + + + Event0100 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event1 + + + TestMatchCase + 2 + + + TestTimestamp + 1469787109831 + + + TestTemperature + 745.0819 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 0 + + + TestTimestamp + 1469787109831 + + + TestTemperature + 5303.2686 + + + + + Event0100 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event1 + + + TestMatchCase + 0 + + + TestTimestamp + 1469787109831 + + + TestTemperature + 76.91979 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 2 + + + TestTimestamp + 1469787109831 + + + TestTemperature + 2514.586 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 1 + + + TestTimestamp + 1469787109831 + + + TestTemperature + 5762.7017 + + + + + Event0100 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event1 + + + TestMatchCase + 2 + + + TestTimestamp + 1469787109831 + + + TestTemperature + 2932.0693 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 2 + + + TestTimestamp + 1469787109831 + + + TestTemperature + 4062.569 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 1 + + + TestTimestamp + 1469787109831 + + + TestTemperature + 7330.253 + + + + + Event0100 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event1 + + + TestMatchCase + 0 + + + TestTimestamp + 1469787109831 + + + TestTemperature + 4523.48 + + + + + Event0100 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event1 + + + TestMatchCase + 2 + + + TestTimestamp + 1469787109831 + + + TestTemperature + 4418.4434 + + + + + Event0100 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event1 + + + TestMatchCase + 3 + + + TestTimestamp + 1469787109831 + + + TestTemperature + 2070.6726 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 3 + + + TestTimestamp + 1469787109831 + + + TestTemperature + 3211.3796 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 2 + + + TestTimestamp + 1469787109831 + + + TestTemperature + 9335.347 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 2 + + + TestTimestamp + 1469787109831 + + + TestTemperature + 7486.7 + + + + + Event0100 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event1 + + + TestMatchCase + 1 + + + TestTimestamp + 1469787109831 + + + TestTemperature + 7916.7837 + + + + + Event0100 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event1 + + + TestMatchCase + 2 + + + TestTimestamp + 1469787109831 + + + TestTemperature + 5593.4805 + + + + + Event0100 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event1 + + + TestMatchCase + 1 + + + TestTimestamp + 1469787109831 + + + TestTemperature + 2392.5393 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 1 + + + TestTimestamp + 1469787109831 + + + TestTemperature + 3407.845 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 0 + + + TestTimestamp + 1469787109831 + + + TestTemperature + 8537.924 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 3 + + + TestTimestamp + 1469787109831 + + + TestTemperature + 2093.1672 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 3 + + + TestTimestamp + 1469787109832 + + + TestTemperature + 2938.2634 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 3 + + + TestTimestamp + 1469787109832 + + + TestTemperature + 9799.69 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 0 + + + TestTimestamp + 1469787109832 + + + TestTemperature + 3682.167 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 2 + + + TestTimestamp + 1469787109832 + + + TestTemperature + 8614.255 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 3 + + + TestTimestamp + 1469787109832 + + + TestTemperature + 5771.5522 + + + + + Event0100 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event1 + + + TestMatchCase + 0 + + + TestTimestamp + 1469787109832 + + + TestTemperature + 5778.1587 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 1 + + + TestTimestamp + 1469787109832 + + + TestTemperature + 1829.2201 + + + + + Event0100 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event1 + + + TestMatchCase + 0 + + + TestTimestamp + 1469787109832 + + + TestTemperature + 8212.186 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 1 + + + TestTimestamp + 1469787109832 + + + TestTemperature + 69.31722 + + + + + Event0100 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event1 + + + TestMatchCase + 3 + + + TestTimestamp + 1469787109832 + + + TestTemperature + 2842.4954 + + + + + Event0100 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event1 + + + TestMatchCase + 1 + + + TestTimestamp + 1469787109832 + + + TestTemperature + 1680.3956 + + + + + Event0100 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event1 + + + TestMatchCase + 0 + + + TestTimestamp + 1469787109832 + + + TestTemperature + 2087.8213 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 1 + + + TestTimestamp + 1469787109832 + + + TestTemperature + 954.5702 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 3 + + + TestTimestamp + 1469787109832 + + + TestTemperature + 5469.4463 + + + + + Event0100 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event1 + + + TestMatchCase + 0 + + + TestTimestamp + 1469787109832 + + + TestTemperature + 2140.287 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 2 + + + TestTimestamp + 1469787109832 + + + TestTemperature + 8113.5645 + + + + + Event0100 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event1 + + + TestMatchCase + 3 + + + TestTimestamp + 1469787109832 + + + TestTemperature + 1402.2207 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 0 + + + TestTimestamp + 1469787109832 + + + TestTemperature + 8310.781 + + + + + Event0100 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event1 + + + TestMatchCase + 2 + + + TestTimestamp + 1469787109832 + + + TestTemperature + 3253.3342 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 2 + + + TestTimestamp + 1469787109832 + + + TestTemperature + 8409.392 + + + + + Event0100 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event1 + + + TestMatchCase + 1 + + + TestTimestamp + 1469787109832 + + + TestTemperature + 8705.976 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 1 + + + TestTimestamp + 1469787109832 + + + TestTemperature + 5108.107 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 2 + + + TestTimestamp + 1469787109832 + + + TestTemperature + 3716.3972 + + + + + Event0100 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event1 + + + TestMatchCase + 1 + + + TestTimestamp + 1469787109832 + + + TestTemperature + 813.75836 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 0 + + + TestTimestamp + 1469787109832 + + + TestTemperature + 9086.392 + + + + + Event0100 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event1 + + + TestMatchCase + 3 + + + TestTimestamp + 1469787109832 + + + TestTemperature + 5549.1143 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 2 + + + TestTimestamp + 1469787109832 + + + TestTemperature + 6378.093 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 2 + + + TestTimestamp + 1469787109832 + + + TestTemperature + 654.6241 + + + + + Event0100 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event1 + + + TestMatchCase + 3 + + + TestTimestamp + 1469787109832 + + + TestTemperature + 8923.838 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 0 + + + TestTimestamp + 1469787109832 + + + TestTemperature + 450.83167 + + + + + Event0100 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event1 + + + TestMatchCase + 0 + + + TestTimestamp + 1469787109832 + + + TestTemperature + 1230.132 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 1 + + + TestTimestamp + 1469787109832 + + + TestTemperature + 1167.3259 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 1 + + + TestTimestamp + 1469787109832 + + + TestTemperature + 3186.9114 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 2 + + + TestTimestamp + 1469787109832 + + + TestTemperature + 8806.747 + + + + + Event0100 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event1 + + + TestMatchCase + 2 + + + TestTimestamp + 1469787109832 + + + TestTemperature + 4241.6426 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 3 + + + TestTimestamp + 1469787109832 + + + TestTemperature + 9857.053 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 3 + + + TestTimestamp + 1469787109832 + + + TestTemperature + 7561.059 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 2 + + + TestTimestamp + 1469787109832 + + + TestTemperature + 1073.0768 + + + + + Event0100 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event1 + + + TestMatchCase + 3 + + + TestTimestamp + 1469787109833 + + + TestTemperature + 6449.4272 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 3 + + + TestTimestamp + 1469787109833 + + + TestTemperature + 5766.172 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 2 + + + TestTimestamp + 1469787109833 + + + TestTemperature + 4786.6704 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 3 + + + TestTimestamp + 1469787109833 + + + TestTemperature + 9645.206 + + + + + Event0100 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event1 + + + TestMatchCase + 3 + + + TestTimestamp + 1469787109833 + + + TestTemperature + 9275.977 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 2 + + + TestTimestamp + 1469787109833 + + + TestTemperature + 985.0705 + + + + + Event0100 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event1 + + + TestMatchCase + 0 + + + TestTimestamp + 1469787109833 + + + TestTemperature + 8582.512 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 3 + + + TestTimestamp + 1469787109833 + + + TestTemperature + 6540.643 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 0 + + + TestTimestamp + 1469787109833 + + + TestTemperature + 1312.2606 + + + + + Event0100 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event1 + + + TestMatchCase + 3 + + + TestTimestamp + 1469787109833 + + + TestTemperature + 2310.2642 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 3 + + + TestTimestamp + 1469787109833 + + + TestTemperature + 7863.311 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 0 + + + TestTimestamp + 1469787109833 + + + TestTemperature + 9090.517 + + + + + Event0100 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event1 + + + TestMatchCase + 2 + + + TestTimestamp + 1469787109833 + + + TestTemperature + 874.7286 + + + + + Event0100 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event1 + + + TestMatchCase + 1 + + + TestTimestamp + 1469787109833 + + + TestTemperature + 89.31577 + + + + + Event0100 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event1 + + + TestMatchCase + 3 + + + TestTimestamp + 1469787109833 + + + TestTemperature + 5384.0977 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 1 + + + TestTimestamp + 1469787109833 + + + TestTemperature + 3326.373 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 3 + + + TestTimestamp + 1469787109833 + + + TestTemperature + 7053.2803 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 0 + + + TestTimestamp + 1469787109833 + + + TestTemperature + 1100.3625 + + + + + Event0100 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event1 + + + TestMatchCase + 0 + + + TestTimestamp + 1469787109833 + + + TestTemperature + 7318.115 + + + + + Event0100 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event1 + + + TestMatchCase + 1 + + + TestTimestamp + 1469787109833 + + + TestTemperature + 7304.7827 + + + + + Event0100 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event1 + + + TestMatchCase + 0 + + + TestTimestamp + 1469787109833 + + + TestTemperature + 2811.665 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 2 + + + TestTimestamp + 1469787109833 + + + TestTemperature + 4690.1846 + + + + + Event0100 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event1 + + + TestMatchCase + 2 + + + TestTimestamp + 1469787109833 + + + TestTemperature + 5624.33 + + + + + Event0100 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event1 + + + TestMatchCase + 2 + + + TestTimestamp + 1469787109833 + + + TestTemperature + 1051.4647 + + + + + Event0100 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event1 + + + TestMatchCase + 0 + + + TestTimestamp + 1469787109833 + + + TestTemperature + 2689.3574 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 0 + + + TestTimestamp + 1469787109833 + + + TestTemperature + 2308.247 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 3 + + + TestTimestamp + 1469787109833 + + + TestTemperature + 4999.671 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 1 + + + TestTimestamp + 1469787109833 + + + TestTemperature + 3138.606 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 0 + + + TestTimestamp + 1469787109833 + + + TestTemperature + 5719.3364 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 2 + + + TestTimestamp + 1469787109833 + + + TestTemperature + 445.14835 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 3 + + + TestTimestamp + 1469787109833 + + + TestTemperature + 9498.781 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 1 + + + TestTimestamp + 1469787109833 + + + TestTemperature + 757.5476 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 2 + + + TestTimestamp + 1469787109833 + + + TestTemperature + 227.3655 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 1 + + + TestTimestamp + 1469787109833 + + + TestTemperature + 4751.002 + + + + + Event0100 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event1 + + + TestMatchCase + 2 + + + TestTimestamp + 1469787109833 + + + TestTemperature + 8193.897 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 3 + + + TestTimestamp + 1469787109833 + + + TestTemperature + 6397.872 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 3 + + + TestTimestamp + 1469787109833 + + + TestTemperature + 6133.35 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 3 + + + TestTimestamp + 1469787109833 + + + TestTemperature + 9280.389 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 1 + + + TestTimestamp + 1469787109833 + + + TestTemperature + 1031.0221 + + + + + Event0000 + 0.0.1 + org.onap.policy.apex.sample.events + test + apex + + TestSlogan + Test slogan for External Event0 + + + TestMatchCase + 1 + + + TestTimestamp + 1469787109833 + + + TestTemperature + 2206.1318 + + diff --git a/testsuites/integration/integration-common/src/main/resources/examples/events/SampleDomain/EventsInMulti0.jsons b/testsuites/integration/integration-common/src/main/resources/examples/events/SampleDomain/EventsInMulti0.jsons new file mode 100644 index 000000000..da11b2c94 --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/examples/events/SampleDomain/EventsInMulti0.jsons @@ -0,0 +1,1100 @@ +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869268, + "TestTemperature": 8071.559 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869269, + "TestTemperature": 517.19727 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 0, + "TestTimestamp": 1469781869269, + "TestTemperature": 9080.866 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869269, + "TestTemperature": 4263.7085 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869269, + "TestTemperature": 2342.069 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869269, + "TestTemperature": 6400.4565 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869269, + "TestTemperature": 9495.611 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 1, + "TestTimestamp": 1469781869269, + "TestTemperature": 4872.2935 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 3, + "TestTimestamp": 1469781869269, + "TestTemperature": 8130.8086 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869269, + "TestTemperature": 2580.434 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 1, + "TestTimestamp": 1469781869269, + "TestTemperature": 3169.4663 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 1, + "TestTimestamp": 1469781869269, + "TestTemperature": 4517.7646 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 3, + "TestTimestamp": 1469781869269, + "TestTemperature": 9600.465 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 1, + "TestTimestamp": 1469781869269, + "TestTemperature": 8720.648 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 1, + "TestTimestamp": 1469781869269, + "TestTemperature": 1031.3821 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 3, + "TestTimestamp": 1469781869270, + "TestTemperature": 959.9608 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 3, + "TestTimestamp": 1469781869270, + "TestTemperature": 1483.7533 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869270, + "TestTemperature": 394.8325 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 1, + "TestTimestamp": 1469781869270, + "TestTemperature": 59.376953 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869270, + "TestTemperature": 862.1466 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869270, + "TestTemperature": 8557.394 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 0, + "TestTimestamp": 1469781869270, + "TestTemperature": 6732.3687 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 2, + "TestTimestamp": 1469781869270, + "TestTemperature": 7155.3843 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869270, + "TestTemperature": 4896.5264 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869270, + "TestTemperature": 8457.574 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869270, + "TestTemperature": 4085.176 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 1, + "TestTimestamp": 1469781869270, + "TestTemperature": 4198.338 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869270, + "TestTemperature": 105.033516 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 1, + "TestTimestamp": 1469781869270, + "TestTemperature": 8219.068 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 0, + "TestTimestamp": 1469781869270, + "TestTemperature": 8780.495 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869270, + "TestTemperature": 6224.9775 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 3, + "TestTimestamp": 1469781869270, + "TestTemperature": 4218.1353 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 1, + "TestTimestamp": 1469781869270, + "TestTemperature": 4719.9116 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 2, + "TestTimestamp": 1469781869270, + "TestTemperature": 4592.7275 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 1, + "TestTimestamp": 1469781869270, + "TestTemperature": 7874.2705 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 2, + "TestTimestamp": 1469781869270, + "TestTemperature": 9866.951 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 2, + "TestTimestamp": 1469781869270, + "TestTemperature": 7536.962 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 1, + "TestTimestamp": 1469781869270, + "TestTemperature": 2430.3843 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 2, + "TestTimestamp": 1469781869270, + "TestTemperature": 6369.2866 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 0, + "TestTimestamp": 1469781869270, + "TestTemperature": 7396.739 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 2, + "TestTimestamp": 1469781869270, + "TestTemperature": 6187.027 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869270, + "TestTemperature": 2216.0667 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 2, + "TestTimestamp": 1469781869270, + "TestTemperature": 4855.6562 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 2, + "TestTimestamp": 1469781869270, + "TestTemperature": 5205.6836 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 1, + "TestTimestamp": 1469781869270, + "TestTemperature": 418.89252 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 2, + "TestTimestamp": 1469781869270, + "TestTemperature": 5307.6343 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 1, + "TestTimestamp": 1469781869270, + "TestTemperature": 7034.2065 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869270, + "TestTemperature": 7784.3804 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869270, + "TestTemperature": 3656.007 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 0, + "TestTimestamp": 1469781869270, + "TestTemperature": 8538.289 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 2, + "TestTimestamp": 1469781869270, + "TestTemperature": 6515.7104 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 1, + "TestTimestamp": 1469781869270, + "TestTemperature": 4562.0537 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 0, + "TestTimestamp": 1469781869270, + "TestTemperature": 9030.76 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869270, + "TestTemperature": 9085.617 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869270, + "TestTemperature": 1244.1838 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 1, + "TestTimestamp": 1469781869270, + "TestTemperature": 9286.382 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869270, + "TestTemperature": 9573.472 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 2, + "TestTimestamp": 1469781869270, + "TestTemperature": 9994.268 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869271, + "TestTemperature": 3556.8076 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 1305.1998 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 6063.7573 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 8860.109 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 1599.9061 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869271, + "TestTemperature": 4316.625 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 1, + "TestTimestamp": 1469781869271, + "TestTemperature": 2753.6135 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869271, + "TestTemperature": 4469.7656 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 0, + "TestTimestamp": 1469781869271, + "TestTemperature": 4155.1416 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 0, + "TestTimestamp": 1469781869271, + "TestTemperature": 1627.2205 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 1, + "TestTimestamp": 1469781869271, + "TestTemperature": 5554.9585 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 5863.8896 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869271, + "TestTemperature": 9095.753 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 2, + "TestTimestamp": 1469781869271, + "TestTemperature": 5641.7603 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 1, + "TestTimestamp": 1469781869271, + "TestTemperature": 6120.2446 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869271, + "TestTemperature": 3478.2087 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 1807.8446 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 8476.179 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869271, + "TestTemperature": 7418.1934 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 2, + "TestTimestamp": 1469781869271, + "TestTemperature": 4800.719 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 1, + "TestTimestamp": 1469781869271, + "TestTemperature": 8741.285 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 2, + "TestTimestamp": 1469781869271, + "TestTemperature": 2099.0818 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 1, + "TestTimestamp": 1469781869271, + "TestTemperature": 138.22377 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 1, + "TestTimestamp": 1469781869271, + "TestTemperature": 272.6066 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 1, + "TestTimestamp": 1469781869271, + "TestTemperature": 2604.9036 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 540.5176 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 2, + "TestTimestamp": 1469781869271, + "TestTemperature": 1482.7478 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 1053.8315 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869271, + "TestTemperature": 6267.906 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 636.44586 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 902.7964 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 259.42923 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 6066.484 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 0, + "TestTimestamp": 1469781869271, + "TestTemperature": 2918.8723 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 2, + "TestTimestamp": 1469781869271, + "TestTemperature": 6470.262 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 2603.0845 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 0, + "TestTimestamp": 1469781869271, + "TestTemperature": 4435.378 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 0, + "TestTimestamp": 1469781869271, + "TestTemperature": 3989.0928 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 7657.731 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 2, + "TestTimestamp": 1469781869271, + "TestTemperature": 6677.433 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869271, + "TestTemperature": 9456.176 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 8723.999 +} diff --git a/testsuites/integration/integration-common/src/main/resources/examples/events/SampleDomain/EventsInMulti1.jsons b/testsuites/integration/integration-common/src/main/resources/examples/events/SampleDomain/EventsInMulti1.jsons new file mode 100644 index 000000000..da11b2c94 --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/examples/events/SampleDomain/EventsInMulti1.jsons @@ -0,0 +1,1100 @@ +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869268, + "TestTemperature": 8071.559 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869269, + "TestTemperature": 517.19727 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 0, + "TestTimestamp": 1469781869269, + "TestTemperature": 9080.866 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869269, + "TestTemperature": 4263.7085 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869269, + "TestTemperature": 2342.069 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869269, + "TestTemperature": 6400.4565 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869269, + "TestTemperature": 9495.611 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 1, + "TestTimestamp": 1469781869269, + "TestTemperature": 4872.2935 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 3, + "TestTimestamp": 1469781869269, + "TestTemperature": 8130.8086 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869269, + "TestTemperature": 2580.434 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 1, + "TestTimestamp": 1469781869269, + "TestTemperature": 3169.4663 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 1, + "TestTimestamp": 1469781869269, + "TestTemperature": 4517.7646 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 3, + "TestTimestamp": 1469781869269, + "TestTemperature": 9600.465 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 1, + "TestTimestamp": 1469781869269, + "TestTemperature": 8720.648 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 1, + "TestTimestamp": 1469781869269, + "TestTemperature": 1031.3821 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 3, + "TestTimestamp": 1469781869270, + "TestTemperature": 959.9608 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 3, + "TestTimestamp": 1469781869270, + "TestTemperature": 1483.7533 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869270, + "TestTemperature": 394.8325 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 1, + "TestTimestamp": 1469781869270, + "TestTemperature": 59.376953 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869270, + "TestTemperature": 862.1466 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869270, + "TestTemperature": 8557.394 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 0, + "TestTimestamp": 1469781869270, + "TestTemperature": 6732.3687 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 2, + "TestTimestamp": 1469781869270, + "TestTemperature": 7155.3843 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869270, + "TestTemperature": 4896.5264 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869270, + "TestTemperature": 8457.574 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869270, + "TestTemperature": 4085.176 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 1, + "TestTimestamp": 1469781869270, + "TestTemperature": 4198.338 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869270, + "TestTemperature": 105.033516 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 1, + "TestTimestamp": 1469781869270, + "TestTemperature": 8219.068 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 0, + "TestTimestamp": 1469781869270, + "TestTemperature": 8780.495 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869270, + "TestTemperature": 6224.9775 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 3, + "TestTimestamp": 1469781869270, + "TestTemperature": 4218.1353 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 1, + "TestTimestamp": 1469781869270, + "TestTemperature": 4719.9116 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 2, + "TestTimestamp": 1469781869270, + "TestTemperature": 4592.7275 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 1, + "TestTimestamp": 1469781869270, + "TestTemperature": 7874.2705 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 2, + "TestTimestamp": 1469781869270, + "TestTemperature": 9866.951 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 2, + "TestTimestamp": 1469781869270, + "TestTemperature": 7536.962 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 1, + "TestTimestamp": 1469781869270, + "TestTemperature": 2430.3843 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 2, + "TestTimestamp": 1469781869270, + "TestTemperature": 6369.2866 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 0, + "TestTimestamp": 1469781869270, + "TestTemperature": 7396.739 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 2, + "TestTimestamp": 1469781869270, + "TestTemperature": 6187.027 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869270, + "TestTemperature": 2216.0667 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 2, + "TestTimestamp": 1469781869270, + "TestTemperature": 4855.6562 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 2, + "TestTimestamp": 1469781869270, + "TestTemperature": 5205.6836 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 1, + "TestTimestamp": 1469781869270, + "TestTemperature": 418.89252 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 2, + "TestTimestamp": 1469781869270, + "TestTemperature": 5307.6343 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 1, + "TestTimestamp": 1469781869270, + "TestTemperature": 7034.2065 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869270, + "TestTemperature": 7784.3804 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869270, + "TestTemperature": 3656.007 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 0, + "TestTimestamp": 1469781869270, + "TestTemperature": 8538.289 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 2, + "TestTimestamp": 1469781869270, + "TestTemperature": 6515.7104 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 1, + "TestTimestamp": 1469781869270, + "TestTemperature": 4562.0537 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 0, + "TestTimestamp": 1469781869270, + "TestTemperature": 9030.76 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869270, + "TestTemperature": 9085.617 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869270, + "TestTemperature": 1244.1838 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 1, + "TestTimestamp": 1469781869270, + "TestTemperature": 9286.382 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869270, + "TestTemperature": 9573.472 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 2, + "TestTimestamp": 1469781869270, + "TestTemperature": 9994.268 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869271, + "TestTemperature": 3556.8076 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 1305.1998 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 6063.7573 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 8860.109 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 1599.9061 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869271, + "TestTemperature": 4316.625 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 1, + "TestTimestamp": 1469781869271, + "TestTemperature": 2753.6135 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869271, + "TestTemperature": 4469.7656 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 0, + "TestTimestamp": 1469781869271, + "TestTemperature": 4155.1416 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 0, + "TestTimestamp": 1469781869271, + "TestTemperature": 1627.2205 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 1, + "TestTimestamp": 1469781869271, + "TestTemperature": 5554.9585 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 5863.8896 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869271, + "TestTemperature": 9095.753 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 2, + "TestTimestamp": 1469781869271, + "TestTemperature": 5641.7603 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 1, + "TestTimestamp": 1469781869271, + "TestTemperature": 6120.2446 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869271, + "TestTemperature": 3478.2087 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 1807.8446 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 8476.179 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869271, + "TestTemperature": 7418.1934 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 2, + "TestTimestamp": 1469781869271, + "TestTemperature": 4800.719 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 1, + "TestTimestamp": 1469781869271, + "TestTemperature": 8741.285 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 2, + "TestTimestamp": 1469781869271, + "TestTemperature": 2099.0818 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 1, + "TestTimestamp": 1469781869271, + "TestTemperature": 138.22377 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 1, + "TestTimestamp": 1469781869271, + "TestTemperature": 272.6066 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 1, + "TestTimestamp": 1469781869271, + "TestTemperature": 2604.9036 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 540.5176 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 2, + "TestTimestamp": 1469781869271, + "TestTemperature": 1482.7478 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 1053.8315 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869271, + "TestTemperature": 6267.906 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 636.44586 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 902.7964 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 259.42923 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 6066.484 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 0, + "TestTimestamp": 1469781869271, + "TestTemperature": 2918.8723 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 2, + "TestTimestamp": 1469781869271, + "TestTemperature": 6470.262 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 2603.0845 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 0, + "TestTimestamp": 1469781869271, + "TestTemperature": 4435.378 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 0, + "TestTimestamp": 1469781869271, + "TestTemperature": 3989.0928 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 7657.731 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 2, + "TestTimestamp": 1469781869271, + "TestTemperature": 6677.433 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869271, + "TestTemperature": 9456.176 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 8723.999 +} diff --git a/testsuites/integration/integration-common/src/main/resources/examples/events/SampleDomain/EventsInMulti2.jsons b/testsuites/integration/integration-common/src/main/resources/examples/events/SampleDomain/EventsInMulti2.jsons new file mode 100644 index 000000000..da11b2c94 --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/examples/events/SampleDomain/EventsInMulti2.jsons @@ -0,0 +1,1100 @@ +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869268, + "TestTemperature": 8071.559 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869269, + "TestTemperature": 517.19727 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 0, + "TestTimestamp": 1469781869269, + "TestTemperature": 9080.866 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869269, + "TestTemperature": 4263.7085 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869269, + "TestTemperature": 2342.069 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869269, + "TestTemperature": 6400.4565 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869269, + "TestTemperature": 9495.611 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 1, + "TestTimestamp": 1469781869269, + "TestTemperature": 4872.2935 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 3, + "TestTimestamp": 1469781869269, + "TestTemperature": 8130.8086 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869269, + "TestTemperature": 2580.434 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 1, + "TestTimestamp": 1469781869269, + "TestTemperature": 3169.4663 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 1, + "TestTimestamp": 1469781869269, + "TestTemperature": 4517.7646 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 3, + "TestTimestamp": 1469781869269, + "TestTemperature": 9600.465 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 1, + "TestTimestamp": 1469781869269, + "TestTemperature": 8720.648 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 1, + "TestTimestamp": 1469781869269, + "TestTemperature": 1031.3821 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 3, + "TestTimestamp": 1469781869270, + "TestTemperature": 959.9608 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 3, + "TestTimestamp": 1469781869270, + "TestTemperature": 1483.7533 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869270, + "TestTemperature": 394.8325 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 1, + "TestTimestamp": 1469781869270, + "TestTemperature": 59.376953 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869270, + "TestTemperature": 862.1466 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869270, + "TestTemperature": 8557.394 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 0, + "TestTimestamp": 1469781869270, + "TestTemperature": 6732.3687 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 2, + "TestTimestamp": 1469781869270, + "TestTemperature": 7155.3843 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869270, + "TestTemperature": 4896.5264 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869270, + "TestTemperature": 8457.574 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869270, + "TestTemperature": 4085.176 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 1, + "TestTimestamp": 1469781869270, + "TestTemperature": 4198.338 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869270, + "TestTemperature": 105.033516 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 1, + "TestTimestamp": 1469781869270, + "TestTemperature": 8219.068 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 0, + "TestTimestamp": 1469781869270, + "TestTemperature": 8780.495 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869270, + "TestTemperature": 6224.9775 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 3, + "TestTimestamp": 1469781869270, + "TestTemperature": 4218.1353 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 1, + "TestTimestamp": 1469781869270, + "TestTemperature": 4719.9116 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 2, + "TestTimestamp": 1469781869270, + "TestTemperature": 4592.7275 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 1, + "TestTimestamp": 1469781869270, + "TestTemperature": 7874.2705 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 2, + "TestTimestamp": 1469781869270, + "TestTemperature": 9866.951 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 2, + "TestTimestamp": 1469781869270, + "TestTemperature": 7536.962 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 1, + "TestTimestamp": 1469781869270, + "TestTemperature": 2430.3843 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 2, + "TestTimestamp": 1469781869270, + "TestTemperature": 6369.2866 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 0, + "TestTimestamp": 1469781869270, + "TestTemperature": 7396.739 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 2, + "TestTimestamp": 1469781869270, + "TestTemperature": 6187.027 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869270, + "TestTemperature": 2216.0667 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 2, + "TestTimestamp": 1469781869270, + "TestTemperature": 4855.6562 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 2, + "TestTimestamp": 1469781869270, + "TestTemperature": 5205.6836 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 1, + "TestTimestamp": 1469781869270, + "TestTemperature": 418.89252 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 2, + "TestTimestamp": 1469781869270, + "TestTemperature": 5307.6343 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 1, + "TestTimestamp": 1469781869270, + "TestTemperature": 7034.2065 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869270, + "TestTemperature": 7784.3804 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869270, + "TestTemperature": 3656.007 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 0, + "TestTimestamp": 1469781869270, + "TestTemperature": 8538.289 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 2, + "TestTimestamp": 1469781869270, + "TestTemperature": 6515.7104 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 1, + "TestTimestamp": 1469781869270, + "TestTemperature": 4562.0537 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 0, + "TestTimestamp": 1469781869270, + "TestTemperature": 9030.76 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869270, + "TestTemperature": 9085.617 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869270, + "TestTemperature": 1244.1838 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 1, + "TestTimestamp": 1469781869270, + "TestTemperature": 9286.382 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869270, + "TestTemperature": 9573.472 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 2, + "TestTimestamp": 1469781869270, + "TestTemperature": 9994.268 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869271, + "TestTemperature": 3556.8076 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 1305.1998 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 6063.7573 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 8860.109 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 1599.9061 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869271, + "TestTemperature": 4316.625 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 1, + "TestTimestamp": 1469781869271, + "TestTemperature": 2753.6135 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869271, + "TestTemperature": 4469.7656 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 0, + "TestTimestamp": 1469781869271, + "TestTemperature": 4155.1416 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 0, + "TestTimestamp": 1469781869271, + "TestTemperature": 1627.2205 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 1, + "TestTimestamp": 1469781869271, + "TestTemperature": 5554.9585 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 5863.8896 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869271, + "TestTemperature": 9095.753 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 2, + "TestTimestamp": 1469781869271, + "TestTemperature": 5641.7603 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 1, + "TestTimestamp": 1469781869271, + "TestTemperature": 6120.2446 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869271, + "TestTemperature": 3478.2087 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 1807.8446 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 8476.179 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869271, + "TestTemperature": 7418.1934 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 2, + "TestTimestamp": 1469781869271, + "TestTemperature": 4800.719 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 1, + "TestTimestamp": 1469781869271, + "TestTemperature": 8741.285 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 2, + "TestTimestamp": 1469781869271, + "TestTemperature": 2099.0818 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 1, + "TestTimestamp": 1469781869271, + "TestTemperature": 138.22377 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 1, + "TestTimestamp": 1469781869271, + "TestTemperature": 272.6066 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 1, + "TestTimestamp": 1469781869271, + "TestTemperature": 2604.9036 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 540.5176 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 2, + "TestTimestamp": 1469781869271, + "TestTemperature": 1482.7478 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 1053.8315 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869271, + "TestTemperature": 6267.906 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 636.44586 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 902.7964 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 259.42923 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 6066.484 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 0, + "TestTimestamp": 1469781869271, + "TestTemperature": 2918.8723 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 2, + "TestTimestamp": 1469781869271, + "TestTemperature": 6470.262 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 2603.0845 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 0, + "TestTimestamp": 1469781869271, + "TestTemperature": 4435.378 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 0, + "TestTimestamp": 1469781869271, + "TestTemperature": 3989.0928 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 7657.731 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 2, + "TestTimestamp": 1469781869271, + "TestTemperature": 6677.433 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0100", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event1", + "TestMatchCase": 0, + "TestTimestamp": 1469781869271, + "TestTemperature": 9456.176 +} +{ + "nameSpace": "org.onap.policy.apex.sample.events", + "name": "Event0000", + "version": "0.0.1", + "source": "test", + "target": "apex", + "TestSlogan": "Test slogan for External Event0", + "TestMatchCase": 3, + "TestTimestamp": 1469781869271, + "TestTemperature": 8723.999 +} diff --git a/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/javascript/DefaultState_Logic.javascript b/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/javascript/DefaultState_Logic.javascript new file mode 100644 index 000000000..c8d212111 --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/javascript/DefaultState_Logic.javascript @@ -0,0 +1,27 @@ +/* + * ============LICENSE_START======================================================= + * Copyright (C) 2016-2018 Ericsson. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + * ============LICENSE_END========================================================= + */ + +executor.logger.debug(executor.subject.id); +var gc = executor.getContextAlbum("GlobalContextAlbum"); +executor.logger.debug(gc.name); +executor.subject.defaultTaskKey.copyTo(executor.selectedTask) + +var returnValue = executor.TRUE; + diff --git a/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/javascript/DefaultTask_Logic.javascript b/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/javascript/DefaultTask_Logic.javascript new file mode 100644 index 000000000..79ea95919 --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/javascript/DefaultTask_Logic.javascript @@ -0,0 +1,34 @@ +/* + * ============LICENSE_START======================================================= + * Copyright (C) 2016-2018 Ericsson. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + * ============LICENSE_END========================================================= + */ + +executor.logger.debug(executor.subject.id); +var gc = executor.getContextAlbum("GlobalContextAlbum"); +executor.logger.debug(gc.name); +executor.logger.debug(executor.inFields); + +var caseSelectedType = Java.type("java.lang.Byte"); +executor.outFields.put("TestCaseSelected", new caseSelectedType()); + +var JavaDate = Java.type("java.util.Date"); +timeNow = new JavaDate(); +executor.outFields.put("TestStateTime", timeNow.getTime()); +executor.logger.debug(executor.eo); + +var returnValue = executor.TRUE; diff --git a/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/javascript/EvalState_Logic.javascript b/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/javascript/EvalState_Logic.javascript new file mode 100644 index 000000000..4c6e66d36 --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/javascript/EvalState_Logic.javascript @@ -0,0 +1,25 @@ +/* + * ============LICENSE_START======================================================= + * Copyright (C) 2016-2018 Ericsson. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + * ============LICENSE_END========================================================= + */ + +executor.logger.debug(executor.subject.id); +executor.subject.defaultTaskKey.copyTo(executor.selectedTask); + +var returnValue = executor.TRUE; + diff --git a/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/javascript/EvalTask_Logic.javascript b/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/javascript/EvalTask_Logic.javascript new file mode 100644 index 000000000..2c9bc6d2d --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/javascript/EvalTask_Logic.javascript @@ -0,0 +1,29 @@ +/* + * ============LICENSE_START======================================================= + * Copyright (C) 2016-2018 Ericsson. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + * ============LICENSE_END========================================================= + */ + +executor.logger.debug(executor.subject.id); +executor.logger.debug(executor.inFields); + +var JavaDate = Java.type("java.util.Date"); +timeNow = new JavaDate(); +executor.outFields.put("StateTimestamp", timeNow.getTime()); +executor.logger.debug(executor.outFields); + +var returnValue = executor.TRUE; diff --git a/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/jruby/DefaultState_Logic.jruby b/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/jruby/DefaultState_Logic.jruby new file mode 100644 index 000000000..2965476a8 --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/jruby/DefaultState_Logic.jruby @@ -0,0 +1,24 @@ +#------------------------------------------------------------------------------- +# ============LICENSE_START======================================================= +# Copyright (C) 2016-2018 Ericsson. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 +# ============LICENSE_END========================================================= +#------------------------------------------------------------------------------- + +executor.logger.debug("id: " + executor.subject.id) +executor.logger.debug("ctxt name: " + executor.getContextAlbum("GlobalContextAlbum").name) +executor.subject.defaultTaskKey.copyTo(executor.selectedTask) +return true diff --git a/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/jruby/DefaultTask_Logic.jruby b/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/jruby/DefaultTask_Logic.jruby new file mode 100644 index 000000000..4ad39f57e --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/jruby/DefaultTask_Logic.jruby @@ -0,0 +1,33 @@ +#------------------------------------------------------------------------------- +# ============LICENSE_START======================================================= +# Copyright (C) 2016-2018 Ericsson. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 +# ============LICENSE_END========================================================= +#------------------------------------------------------------------------------- + +require 'java' + +executor.logger.debug("id: " + executor.subject.id) +executor.logger.debug("ctxt name: " + executor.getContextAlbum("GlobalContextAlbum").name) +executor.logger.debug("inFields: " + executor.inFields.toString()) + +executor.outFields.put("TestCaseSelected", .to_java(:byte)) + +timeNow = java.util.Date.new() +executor.outFields.put("TestStateTime", timeNow.getTime()) +executor.logger.debug("outFields: " + executor.outFields.toString()) + +return true diff --git a/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/jruby/EvalState_Logic.jruby b/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/jruby/EvalState_Logic.jruby new file mode 100644 index 000000000..e57a62c8b --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/jruby/EvalState_Logic.jruby @@ -0,0 +1,23 @@ +#------------------------------------------------------------------------------- +# ============LICENSE_START======================================================= +# Copyright (C) 2016-2018 Ericsson. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 +# ============LICENSE_END========================================================= +#------------------------------------------------------------------------------- + +executor.logger.debug("id: " + executor.subject.id); +executor.subject.defaultTaskKey.copyTo(executor.selectedTask); +return true; diff --git a/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/jruby/EvalTask_Logic.jruby b/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/jruby/EvalTask_Logic.jruby new file mode 100644 index 000000000..72a4ee607 --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/jruby/EvalTask_Logic.jruby @@ -0,0 +1,32 @@ +#------------------------------------------------------------------------------- +# ============LICENSE_START======================================================= +# Copyright (C) 2016-2018 Ericsson. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 +# ============LICENSE_END========================================================= +#------------------------------------------------------------------------------- + +require 'java'; + +executor.logger.debug("id: " + executor.subject.id); +executor.logger.debug("inFields: " + executor.inFields.toString()); + +executor.outFields.putAll(executor.inFields); + +timeNow = java.util.Date.new(); +executor.outFields.put("StateTimestamp", timeNow.getTime()); +executor.logger.debug("outFields: " + executor.outFields.toString()); + +return true; diff --git a/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/jython/DefaultState_Logic.jython b/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/jython/DefaultState_Logic.jython new file mode 100644 index 000000000..265316e1f --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/jython/DefaultState_Logic.jython @@ -0,0 +1,27 @@ +#------------------------------------------------------------------------------- +# ============LICENSE_START======================================================= +# Copyright (C) 2016-2018 Ericsson. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 +# ============LICENSE_END========================================================= +#------------------------------------------------------------------------------- + +from java.lang import Boolean +executor.logger.debug('id: ' + executor.subject.id) + +executor.logger.debug('ctxt name: ' + executor.getContextAlbum("GlobalContextAlbum").name) +executor.subject.defaultTaskKey.copyTo(executor.selectedTask) + +returnValue = executor.TRUE diff --git a/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/jython/DefaultTask_Logic.jython b/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/jython/DefaultTask_Logic.jython new file mode 100644 index 000000000..16993d0df --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/jython/DefaultTask_Logic.jython @@ -0,0 +1,35 @@ +#------------------------------------------------------------------------------- +# ============LICENSE_START======================================================= +# Copyright (C) 2016-2018 Ericsson. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 +# ============LICENSE_END========================================================= +#------------------------------------------------------------------------------- + +from java.lang import Byte +from java.lang import Long +from java.util import Date + +executor.logger.debug('id: ' + executor.subject.id) + +executor.logger.debug('ctxt name: ' + executor.getContextAlbum("GlobalContextAlbum").name) +executor.logger.debug('inFields: ' + executor.inFields.toString()) + +executor.outFields["TestCaseSelected"] = Byte("") + +timeValue = Long(Date().getTime()); +executor.outFields["TestStateTime"] = timeValue +executor.logger.debug('outFields: ' + executor.outFields.toString()) +returnValue = executor.TRUE diff --git a/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/jython/EvalState_Logic.jython b/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/jython/EvalState_Logic.jython new file mode 100644 index 000000000..9a0102866 --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/jython/EvalState_Logic.jython @@ -0,0 +1,25 @@ +#------------------------------------------------------------------------------- +# ============LICENSE_START======================================================= +# Copyright (C) 2016-2018 Ericsson. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 +# ============LICENSE_END========================================================= +#------------------------------------------------------------------------------- + +executor.logger.debug('id: ' + executor.subject.id); + +executor.subject.defaultTaskKey.copyTo(executor.selectedTask); + +returnValue = executor.TRUE; diff --git a/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/jython/EvalTask_Logic.jython b/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/jython/EvalTask_Logic.jython new file mode 100644 index 000000000..bc803ebf2 --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/jython/EvalTask_Logic.jython @@ -0,0 +1,36 @@ +#------------------------------------------------------------------------------- +# ============LICENSE_START======================================================= +# Copyright (C) 2016-2018 Ericsson. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 +# ============LICENSE_END========================================================= +#------------------------------------------------------------------------------- + +from java.lang import Boolean +from java.lang import Byte +from java.lang import Long +from java.util import Date + +executor.logger.debug('id: ' + executor.subject.id) + +executor.logger.debug('inFields: ' + executor.inFields.toString()) + +executor.outFields = executor.createOutgoingEvent(outEvent) +executor.outFields.putAll(executor.inFields) + +timeValue = Long(Date().getTime()); +executor.outFields["StateTimestamp"] = timeValue +executor.logger.debug('outFields: ' + executor.outFields.toString()) +returnValue = Boolean.TRUE diff --git a/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/mvel/DefaultState_Logic.mvel b/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/mvel/DefaultState_Logic.mvel new file mode 100644 index 000000000..1620c6cd5 --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/mvel/DefaultState_Logic.mvel @@ -0,0 +1,23 @@ +/* + * ============LICENSE_START======================================================= + * Copyright (C) 2016-2018 Ericsson. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + * ============LICENSE_END========================================================= + */ + +logger.debug(subject.id + ":" + subject.stateName); +subject.defaultTaskKey.copyTo(selectedTask); +return true; diff --git a/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/mvel/DefaultTask_Logic.mvel b/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/mvel/DefaultTask_Logic.mvel new file mode 100644 index 000000000..9a1a4bad1 --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/mvel/DefaultTask_Logic.mvel @@ -0,0 +1,30 @@ +/* + * ============LICENSE_START======================================================= + * Copyright (C) 2016-2018 Ericsson. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + * ============LICENSE_END========================================================= + */ + +import java.util.Date; +logger.debug(subject.id); +gc = getContextAlbum("GlobalContextAlbum"); +logger.debug(gc); +logger.debug(inFields); +outFields["TestCaseSelected"] = (byte); +timeNow = new Date(); +outFields["TestStateTime"] = timeNow.getTime(); +logger.debug(outFields); +return true; \ No newline at end of file diff --git a/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/mvel/EvalState_Logic.mvel b/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/mvel/EvalState_Logic.mvel new file mode 100644 index 000000000..1620c6cd5 --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/mvel/EvalState_Logic.mvel @@ -0,0 +1,23 @@ +/* + * ============LICENSE_START======================================================= + * Copyright (C) 2016-2018 Ericsson. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + * ============LICENSE_END========================================================= + */ + +logger.debug(subject.id + ":" + subject.stateName); +subject.defaultTaskKey.copyTo(selectedTask); +return true; diff --git a/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/mvel/EvalTask_Logic.mvel b/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/mvel/EvalTask_Logic.mvel new file mode 100644 index 000000000..e15a4beec --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/test/common/model/mvel/EvalTask_Logic.mvel @@ -0,0 +1,26 @@ +/* + * ============LICENSE_START======================================================= + * Copyright (C) 2016-2018 Ericsson. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + * ============LICENSE_END========================================================= + */ + +import java.util.Date; +logger.debug(subject.id); +logger.debug(inFields); +timeNow = new Date(); +outFields["StateTimestamp"] = timeNow.getTime(); +return true; \ No newline at end of file -- cgit 1.2.3-korg