APEX standalone support for ToscaPolicy format 53/112053/15
authora.sreekumar <ajith.sreekumar@bell.ca>
Wed, 2 Sep 2020 16:19:26 +0000 (17:19 +0100)
committera.sreekumar <ajith.sreekumar@bell.ca>
Wed, 9 Sep 2020 09:18:02 +0000 (10:18 +0100)
commit4c5c31eb9a2513af080d60d0f537b8339856150d
tree79aaf0d50cc261f57ce77f2eeae927c3c264478f
parentd350fd659d716ca0b1678029230cc799cead2056
APEX standalone support for ToscaPolicy format

Legacy format support is removed, and Tosca format support is added.

Change-Id: I3cfc181ccb5471a5d224c0162af18c1fa0fdbc70
Issue-ID: POLICY-2812
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
192 files changed:
examples/examples-decisionmaker/src/main/resources/tosca/ToscaTemplate.json [new file with mode: 0644]
examples/examples-decisionmaker/src/test/java/org/onap/policy/apex/examples/decisionmaker/DecisionMakerRunner.java
examples/examples-grpc/src/test/java/org/onap/policy/apex/examples/grpc/TestApexGrpcExample.java
examples/examples-onap-vcpe/src/main/resources/tosca/ToscaTemplate.json
examples/examples-onap-vcpe/src/test/java/org/onap/policy/apex/domains/onap/vcpe/OnapVcpeRunner.java
examples/examples-onap-vcpe/src/test/java/org/onap/policy/apex/domains/onap/vcpe/OnapVcpeStandaloneRunner.java
plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restclient/src/test/java/org/onap/policy/apex/plugins/event/carrier/restclient/RestClientCarrierTechnologyParametersTest.java
plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restclient/src/test/resources/prodcons/RESTClientWithHTTPFilterInvalid.json
plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restclient/src/test/resources/prodcons/RESTClientWithHTTPHeaderBadList.json
plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restclient/src/test/resources/prodcons/RESTClientWithHTTPHeaderNotKvPairs.json
plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restclient/src/test/resources/prodcons/RESTClientWithHTTPHeaderNulls.json
plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restclient/src/test/resources/prodcons/RESTClientWithHTTPHeaderOK.json
plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/java/org/onap/policy/apex/plugins/event/carrier/restrequestor/RestRequestorCarrierTechnologyParametersTest.java
plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FileDelete.json
plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FileGet.json
plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FileGetConsumerAlone.json
plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FileGetEmpty.json
plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FileGetMulti.json
plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FileGetProducerAlone.json
plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FilePost.json
plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FilePut.json
plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/RESTClientWithHTTPFilterInvalid.json
plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/RESTRequestorWithHTTPHeaderBadList.json
plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/RESTRequestorWithHTTPHeaderNotKvPairs.json
plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/RESTRequestorWithHTTPHeaderNulls.json
plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/RESTRequestorWithHTTPHeaderOK.json
plugins/plugins-executor/plugins-executor-javascript/src/test/resources/prodcons/File2File.json
services/services-engine/src/main/java/org/onap/policy/apex/service/engine/main/ApexActivator.java
services/services-engine/src/main/java/org/onap/policy/apex/service/engine/main/ApexCommandLineArguments.java
services/services-engine/src/main/java/org/onap/policy/apex/service/parameters/ApexParameterHandler.java
services/services-engine/src/main/java/org/onap/policy/apex/service/parameters/engineservice/EngineServiceParameters.java
services/services-engine/src/test/java/org/onap/policy/apex/service/engine/event/PluginFactoriesTest.java
services/services-engine/src/test/java/org/onap/policy/apex/service/engine/main/ApexCommandLineArgumentsTest.java
services/services-engine/src/test/java/org/onap/policy/apex/service/engine/main/ApexMainTest.java
services/services-engine/src/test/java/org/onap/policy/apex/service/engine/parameters/ApexParametersTest.java
services/services-engine/src/test/java/org/onap/policy/apex/service/engine/parameters/ContextParameterTests.java
services/services-engine/src/test/java/org/onap/policy/apex/service/engine/parameters/ExecutorParameterTests.java
services/services-engine/src/test/java/org/onap/policy/apex/service/engine/parameters/ParameterTests.java
services/services-engine/src/test/java/org/onap/policy/apex/service/engine/parameters/ProducerConsumerTests.java
services/services-engine/src/test/java/org/onap/policy/apex/service/engine/parameters/SyncParameterTests.java
services/services-engine/src/test/java/org/onap/policy/apex/service/engine/runtime/impl/EngineServiceImplTest.java
services/services-engine/src/test/resources/parameters/badParams.json
services/services-engine/src/test/resources/parameters/badParamsModelNotFile.json [deleted file]
services/services-engine/src/test/resources/parameters/blankParams.json
services/services-engine/src/test/resources/parameters/correctParams.json
services/services-engine/src/test/resources/parameters/correctParamsJavaProperties.json
services/services-engine/src/test/resources/parameters/factoryGoodParams.json
services/services-engine/src/test/resources/parameters/goodParams.json
services/services-engine/src/test/resources/parameters/goodParamsRelative.json
services/services-engine/src/test/resources/parameters/javaPropertiesBad.json
services/services-engine/src/test/resources/parameters/javaPropertiesEmpty.json
services/services-engine/src/test/resources/parameters/javaPropertiesOK.json
services/services-engine/src/test/resources/parameters/noParams.json
services/services-engine/src/test/resources/parameters/prodConsBadCTParClass.json
services/services-engine/src/test/resources/parameters/prodConsBadEPParClass.json
services/services-engine/src/test/resources/parameters/prodConsBadFileName.json
services/services-engine/src/test/resources/parameters/prodConsMismatchCTParClass.json
services/services-engine/src/test/resources/parameters/prodConsMismatchEPParClass.json
services/services-engine/src/test/resources/parameters/prodConsNoCT.json
services/services-engine/src/test/resources/parameters/prodConsNoCTParClass.json
services/services-engine/src/test/resources/parameters/prodConsNoEP.json
services/services-engine/src/test/resources/parameters/prodConsNoEPParClass.json
services/services-engine/src/test/resources/parameters/prodConsOKFileName.json
services/services-engine/src/test/resources/parameters/prodConsWrongTypeCTParClass.json
services/services-engine/src/test/resources/parameters/prodConsWrongTypeEPParClass.json
services/services-engine/src/test/resources/parameters/serviceContextBadClassDistParams.json
services/services-engine/src/test/resources/parameters/serviceContextBadClassLockParams.json
services/services-engine/src/test/resources/parameters/serviceContextBadClassParams.json
services/services-engine/src/test/resources/parameters/serviceContextBadClassPersistParams.json
services/services-engine/src/test/resources/parameters/serviceContextBadParams.json
services/services-engine/src/test/resources/parameters/serviceContextBadPluginClassParams.json
services/services-engine/src/test/resources/parameters/serviceContextBadPluginNameParams.json
services/services-engine/src/test/resources/parameters/serviceContextNoParams.json
services/services-engine/src/test/resources/parameters/serviceContextOKDefaultParams.json
services/services-engine/src/test/resources/parameters/serviceContextOKDistParams.json
services/services-engine/src/test/resources/parameters/serviceContextOKFlushParams.json
services/services-engine/src/test/resources/parameters/serviceContextOKFullParams.json
services/services-engine/src/test/resources/parameters/serviceExecutorBadParams.json
services/services-engine/src/test/resources/parameters/serviceExecutorBadPluginNameParams.json
services/services-engine/src/test/resources/parameters/serviceExecutorBadPluginValueBlankParams.json
services/services-engine/src/test/resources/parameters/serviceExecutorBadPluginValueObjectParams.json
services/services-engine/src/test/resources/parameters/serviceExecutorBadPluginValueParams.json
services/services-engine/src/test/resources/parameters/serviceExecutorEmptyParams.json
services/services-engine/src/test/resources/parameters/serviceExecutorNoExecutorParams.json
services/services-engine/src/test/resources/parameters/serviceExecutorNoParams.json
services/services-engine/src/test/resources/parameters/superDooperParams.json
services/services-engine/src/test/resources/parameters/syncBadParamsBadPeers.json
services/services-engine/src/test/resources/parameters/syncBadParamsBadTimeout.json
services/services-engine/src/test/resources/parameters/syncBadParamsInvalidTimeout.json
services/services-engine/src/test/resources/parameters/syncBadParamsNoSyncWithPeer.json
services/services-engine/src/test/resources/parameters/syncBadParamsNotSyncWithPeer.json
services/services-engine/src/test/resources/parameters/syncBadParamsUnpairedTimeout.json
services/services-engine/src/test/resources/parameters/syncGoodParams.json
services/services-engine/src/test/resources/parameters/syncGoodParamsBothTimeout.json
services/services-engine/src/test/resources/parameters/syncGoodParamsConsumerTimeout.json
services/services-engine/src/test/resources/parameters/syncGoodParamsProducerTimeout.json
services/services-engine/src/test/resources/parameters/syncMismatchedPeers.json
services/services-engine/src/test/resources/parameters/syncMismatchedTimeout.json
services/services-engine/src/test/resources/parameters/syncUnusedConsumerPeers.json
services/services-engine/src/test/resources/parameters/syncUnusedProducerPeers.json
services/services-onappf/src/main/java/org/onap/policy/apex/services/onappf/handler/ApexEngineHandler.java
services/services-onappf/src/test/java/org/onap/policy/apex/services/onappf/comm/TestPdpStateChangeListener.java
services/services-onappf/src/test/java/org/onap/policy/apex/services/onappf/comm/TestPdpUpdateListener.java
testsuites/integration/integration-common/src/main/resources/examples/config/JMS/JMS2JMSJsonEvent.json
testsuites/integration/integration-common/src/main/resources/examples/config/JMS/JMS2JMSObjectEvent.json
testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileFilteredInJsonEvent.json
testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileFilteredInOutJsonEvent.json
testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileFilteredOutJsonEvent.json
testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileJsonEvent.json
testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileJsonEventAsyncMIMO.json
testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileJsonEventAsyncMISO.json
testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileJsonEventAsyncSIMO.json
testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileJsonEventAsyncSISO.json
testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileJsonEventSyncMIMO.json
testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileJsonEventSyncSISO.json
testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileXmlEvent.json
testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2RESTJsonEventPost.json
testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2RESTJsonEventPut.json
testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2StderrJsonEvent.json
testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2StdoutJsonEvent.json
testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2StdoutJsonEventJavascript.json
testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2StdoutJsonEventMVEL.json
testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2StdoutXmlEvent.json
testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Kafka2FileJsonEvent.json
testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Kafka2KafkaJsonEvent.json
testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Kafka2KafkaXmlEvent.json
testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Kafka2RESTJsonEventJava.json
testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/REST2FileJsonEvent.json
testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/REST2RESTJsonEventJRuby.json
testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/REST2RESTJsonEventJava.json
testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/REST2RESTJsonEventJavascript.json
testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/REST2RESTJsonEventJython.json
testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/REST2RESTJsonEventMvel.json
testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/REST2RESTONAPJsonEvent.json
testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/RESTServerJsonEvent.json
testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/RESTServerJsonEventMultiIn.json
testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/RESTServerStandaloneJsonEvent.json
testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/RESTServerStandaloneJsonEventMultiIn.json
testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/RESTServerTomcatJsonEvent.json
testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/RESTServerTomcatJsonEventMultiIn.json
testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Stdin2RESTJsonEventJava.json
testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Stdin2StdoutJsonEventJRuby.json
testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Stdin2StdoutJsonEventJava.json
testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Stdin2StdoutJsonEventJavascript.json
testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Stdin2StdoutJsonEventJython.json
testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Stdin2StdoutJsonEventMVEL.json
testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Stdin2StdoutXmlEvent.json
testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Ws2WsClientJsonEvent.json
testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Ws2WsClientXMLEvent.json
testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Ws2WsServerJsonEvent.json
testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Ws2WsServerXMLEvent.json
testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/events/syncasync/AsyncEventMimoTest.java
testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/events/syncasync/AsyncEventMisoTest.java
testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/events/syncasync/AsyncEventSimoTest.java
testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/events/syncasync/AsyncEventSisoTest.java
testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/events/syncasync/SyncEventMimoTest.java
testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/events/syncasync/SyncEventSisoTest.java
testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/file/TestFile2File.java
testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/file/TestFile2FileFiltered.java
testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/jms/TestJms2Jms.java
testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/kafka/TestKafka2Kafka.java
testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/restclient/TestExecutionPropertyRest.java
testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/restclient/TestRest2File.java
testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/restserver/TestRestServer.java
testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/websocket/TestWs2WsClient.java
testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/websocket/TestWs2WsServer.java
testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/context/EventAlbumContextTest.java
testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/engine/ApexServiceModelUpdateTest.java
testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/engine/ApexServiceTest.java
testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/executionproperties/TestExecutionProperties.java
testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/taskparameters/TestTaskParameters.java
testsuites/integration/integration-uservice-test/src/test/resources/prodcons/Context_AvroEventAlbum_file2file.json
testsuites/integration/integration-uservice-test/src/test/resources/prodcons/Context_JavaEventAlbum_file2file.json
testsuites/integration/integration-uservice-test/src/test/resources/prodcons/File2RESTJsonEventBadHTTPMethod.json
testsuites/integration/integration-uservice-test/src/test/resources/prodcons/File2RESTJsonEventBadURL.json
testsuites/integration/integration-uservice-test/src/test/resources/prodcons/File2RESTJsonEventNoURL.json
testsuites/integration/integration-uservice-test/src/test/resources/prodcons/File2RESTJsonEventPostBadResponse.json
testsuites/integration/integration-uservice-test/src/test/resources/prodcons/LBPolicy_ExecModel_file2kafka.json
testsuites/integration/integration-uservice-test/src/test/resources/prodcons/REST2FileJsonEmptyEvents.json
testsuites/integration/integration-uservice-test/src/test/resources/prodcons/REST2FileJsonEventBadHTTPMethod.json
testsuites/integration/integration-uservice-test/src/test/resources/prodcons/REST2FileJsonEventBadResponse.json
testsuites/integration/integration-uservice-test/src/test/resources/prodcons/REST2FileJsonEventBadURL.json
testsuites/integration/integration-uservice-test/src/test/resources/prodcons/REST2FileJsonEventNoURL.json
testsuites/integration/integration-uservice-test/src/test/resources/prodcons/RESTServerJsonEventConsumerNotSync.json
testsuites/integration/integration-uservice-test/src/test/resources/prodcons/RESTServerJsonEventConsumerStandaloneNoHost.json
testsuites/integration/integration-uservice-test/src/test/resources/prodcons/RESTServerJsonEventConsumerStandaloneNoPort.json
testsuites/integration/integration-uservice-test/src/test/resources/prodcons/RESTServerJsonEventProducerHost.json
testsuites/integration/integration-uservice-test/src/test/resources/prodcons/RESTServerJsonEventProducerNotSync.json
testsuites/integration/integration-uservice-test/src/test/resources/prodcons/RESTServerJsonEventProducerPort.json
testsuites/integration/integration-uservice-test/src/test/resources/prodcons/RESTServerJsonEventProducerStandalone.json
testsuites/integration/integration-uservice-test/src/test/resources/tosca/ToscaTemplate.json [new file with mode: 0644]
testsuites/performance/performance-benchmark-test/src/test/java/org/onap/policy/apex/testsuites/performance/benchmark/eventgenerator/EventGeneratorTest.java