From fa94a96fed5fd7af230a90373a04da47370e2eea Mon Sep 17 00:00:00 2001 From: liamfallon Date: Thu, 20 May 2021 15:43:35 +0100 Subject: Merge master into tosca-poc branch This review was created with the commands: git co master git pull git co tosca-poc git pull git merge -X theirs master With this merge, the CLAMP master branch is merged into tosca-poc, and, apart from the tosca-controlloop directory, they are identical Issue-ID: POLICY-3215 Change-Id: Iaa1c4894b33508f8bb75b7d1c0dd414964497625 Signed-off-by: liamfallon --- .../resources/clds/camel/rest/clamp-api-v2.xml | 1472 -------------------- .../resources/clds/camel/rest/clds-services.xml | 24 - src/main/resources/clds/camel/routes/cds-flows.xml | 64 - .../resources/clds/camel/routes/dcae-flows.xml | 491 ------- .../resources/clds/camel/routes/loop-flows.xml | 256 ---- .../resources/clds/camel/routes/policy-flows.xml | 601 -------- .../resources/clds/camel/routes/utils-flows.xml | 28 - 7 files changed, 2936 deletions(-) delete mode 100644 src/main/resources/clds/camel/rest/clamp-api-v2.xml delete mode 100644 src/main/resources/clds/camel/rest/clds-services.xml delete mode 100644 src/main/resources/clds/camel/routes/cds-flows.xml delete mode 100644 src/main/resources/clds/camel/routes/dcae-flows.xml delete mode 100644 src/main/resources/clds/camel/routes/loop-flows.xml delete mode 100644 src/main/resources/clds/camel/routes/policy-flows.xml delete mode 100644 src/main/resources/clds/camel/routes/utils-flows.xml (limited to 'src/main/resources/clds/camel') diff --git a/src/main/resources/clds/camel/rest/clamp-api-v2.xml b/src/main/resources/clds/camel/rest/clamp-api-v2.xml deleted file mode 100644 index 7de2de1c9..000000000 --- a/src/main/resources/clds/camel/rest/clamp-api-v2.xml +++ /dev/null @@ -1,1472 +0,0 @@ - - - - - - - - - - - - java.lang.Exception - - true - - - - - - 500 - - - GET All Loop names FAILED - - - - - - - - - - - - - - - java.lang.Exception - - true - - - - - - 500 - - - GET Loop FAILED - - - - - - - - - - - - - - ${body} - - - - - - - java.lang.Exception - - true - - - - - - 500 - - - UPDATE Global properties FAILED - - - - - - - - - - - - - ${body} - - - - - - - java.lang.Exception - - true - - - - - - - 500 - - - UPDATE Operational policies FAILED - - - - - - - - - - - - - ${body} - - - - - - - - java.lang.Exception - - true - - - - - - 500 - - - UPDATE MicroService policy FAILED - - - - - - - - - - - - true - - - - - - - - - - - - - java.lang.Exception - - true - - - - - - 500 - - - DEPLOY request FAILED - - - - - - - - - - - - - - - - - - - - java.lang.Exception - - true - - - - - - 500 - - - REFRESH json schema request FAILED - - - - - - - - - - - - - - - - - - - - java.lang.Exception - - true - - - - - - 500 - - - REFRESH json schema request FAILED - - - - - - - - - - - - true - - - - - - - - - - - - java.lang.Exception - - true - - - - - - 500 - - - UNDEPLOY request FAILED - - - - - - - - - - - - true - - - - - - - - - - - - java.lang.Exception - - true - - - - - - 500 - - - STOP request FAILED - - - - - - - - - - - - true - - - - - - - - - - - - - java.lang.Exception - - true - - - - - - 500 - - - RESTART request FAILED - - - - - - - - - - - - true - - - - - - - false - - - - - ${exchangeProperty[loopObject].getMicroServicePolicies()} - - - ${body} - - - - false - - - - - - - ${exchangeProperty[loopObject].getOperationalPolicies()} - - - ${body} - - - - false - - - - - - - - 3000 - - - - - - - - - java.lang.Exception - - true - - - - - - 500 - - - SUBMIT request FAILED - - - - - - - - - - - - true - - - - - - - - - - ${exchangeProperty[loopObject].getMicroServicePolicies()} - - - ${body} - - - - false - - - - - - ${exchangeProperty[loopObject].getOperationalPolicies()} - - - ${body} - - - - false - - - - - - - - java.lang.Exception - - true - - - - - - 500 - - - DELETE request FAILED - - - - - - - - - - - - - - - - - - - - - - java.lang.Exception - - true - - - - - - - - ${exchangeProperty[loopObject]} - - - 200 - - - - - - - - - - - - - - - - - - java.lang.Exception - - true - - - - - - 500 - - - ADD Operational policy request FAILED for loop: ${header.loopName}, - ${exception.message}" - - - - - - - - - - - - - - - - ${header.policyName} - - - ${exchangeProperty[loopObject].getOperationalPolicy(header.policyName)} - - - false - - - - false - - - - - - - java.lang.Exception - - true - - - - - - 500 - - - REMOVE Operational policy request FAILED - - - - - - - - - - - - - - - java.lang.Exception - - true - - - - - - 500 - - - CREATE Loop from template FAILED - - - - - - - - - - - - - - - java.lang.Exception - - true - - - - - 500 - - - GET ALL templates FAILED - - - - - - - - - - - - - - - java.lang.Exception - - true - - - - - 500 - - - GET Template FAILED - - - - - - - - - - - - - - - java.lang.Exception - - true - - - - - 500 - - - GET All Template names FAILED - - - - - - - - - - - - - - - - - java.lang.Exception - - true - - - - - 500 - - - GET Dictionary FAILED - - - - - - - - - - - - - - - - java.lang.Exception - - true - - - - - 500 - - - GET Dictionary FAILED - - - - - - - - - - - - - - - java.lang.Exception - - true - - - - - 500 - - - GET Dictionary FAILED - - - - - - - - - - - - ${body} - - - - - java.lang.Exception - - true - - - - - 500 - - - PUT Dictionary FAILED - - - - - - - - - - - - - - ${body} - - - - - java.lang.Exception - - true - - - - - 500 - - - PUT Dictionary FAILED - - - - - - - - - - - - - - - - java.lang.Exception - - true - - - - - 500 - - - DELETE Dictionary FAILED - - - - - - - - - - - - - - - - java.lang.Exception - - true - - - - - 500 - - - DELETE Dictionary element FAILED - - - - - - - - - - - - - - - - java.lang.Exception - - true - - - - - 500 - - - GET Policy models FAILED - - - - - - - - - - - - - - - java.lang.Exception - - true - - - - - 500 - - - GET Policy model FAILED - - - - - - - - - - - - - - - java.lang.Exception - - true - - - - - 500 - - - GET Policy model YAML FAILED - - - - - - - - - - - - - - ${body} - - - - - java.lang.Exception - - true - - - - - 500 - - - POST Policy model YAML FAILED - - - - - - - - - - - - - ${body} - - - - - java.lang.Exception - - true - - - - - 500 - - - MODIFY Policy model YAML FAILED - - - - - - - - - - - - - - - - - ${body} - - - - ${body} - - - - - - - java.lang.Exception - - true - - - - - 500 - - - GET Policies list JSON FAILED - - - - - - - - - - - - - - - ${header.policyModelType} - - - ${header.policyModelVersion} - - - ${body} - - - - - - - - - java.lang.Exception - - true - - - - - 500 - - - CREATE Policy FAILED - - - - - - - - - - - - - - ${header.policyModelType} - - - ${header.policyModelVersion} - - - ${header.policyName} - - - ${header.policyVersion} - - - false - - - - - - java.lang.Exception - - true - - - - - 500 - - - DELETE Policy FAILED - - - - - - - - - - - diff --git a/src/main/resources/clds/camel/rest/clds-services.xml b/src/main/resources/clds/camel/rest/clds-services.xml deleted file mode 100644 index 61e1efbdc..000000000 --- a/src/main/resources/clds/camel/rest/clds-services.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - ${body} == 'NOT-OK' - - 404 - - - - - - - - - - - diff --git a/src/main/resources/clds/camel/routes/cds-flows.xml b/src/main/resources/clds/camel/routes/cds-flows.xml deleted file mode 100644 index 73f8cb849..000000000 --- a/src/main/resources/clds/camel/routes/cds-flows.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - - - GET - - - application/json - - - - - - java.lang.Exception - - true - - - - - - - - - - - - - - - - - POST - - - application/json - - - - - - java.lang.Exception - - true - - - - - - - - - - - \ No newline at end of file diff --git a/src/main/resources/clds/camel/routes/dcae-flows.xml b/src/main/resources/clds/camel/routes/dcae-flows.xml deleted file mode 100644 index 1a0eb7b9a..000000000 --- a/src/main/resources/clds/camel/routes/dcae-flows.xml +++ /dev/null @@ -1,491 +0,0 @@ - - - - - - ${exchangeProperty['loopObject'].getLoopTemplate().getUniqueBlueprint()} == true - - - - - ${exchangeProperty['loopObject'].getLoopTemplate().getUniqueBlueprint()} == false - - - - - - - - - - - - ${exchangeProperty[loopObject].getMicroServicePolicies()} - - - ${body} - - - - false - - - - - - - - - PUT - - - application/json - - - ${exchangeProperty[X-ONAP-RequestID]} - - - - ${exchangeProperty[X-ONAP-InvocationID]} - - - - ${exchangeProperty[X-ONAP-PartnerName]} - - - - - - - - - - - - - - - - java.lang.Exception - - false - - - DEPLOY micro service failed - (MicroService name:${exchangeProperty[microServicePolicy].getName()}), - Dep-id:${exchangeProperty[dcaeDeploymentId]}, - StatusUrl:${exchangeProperty[dcaeStatusUrl]}) - - - - DCAE - - - - - - - - - - - - - - - - - - - - - - PUT - - - application/json - - - ${exchangeProperty[X-ONAP-RequestID]} - - - - ${exchangeProperty[X-ONAP-InvocationID]} - - - - ${exchangeProperty[X-ONAP-PartnerName]} - - - - - - - - - - - - - - - - - - - DEPLOY loop status - (Dep-id:${exchangeProperty[dcaeDeploymentId]}, - StatusUrl:${exchangeProperty[dcaeStatusUrl]}) - - - - DCAE - - - - - - - - - - ${exchangeProperty['loopObject'].getLoopTemplate().getUniqueBlueprint()} == true - - - - - ${exchangeProperty['loopObject'].getLoopTemplate().getUniqueBlueprint()} == false - - - - - - - - - - - - ${exchangeProperty[loopObject].getMicroServicePolicies()} - - - ${body} - - - - - ${exchangeProperty[microServicePolicy].getDcaeDeploymentId()} != null - - - - - - DELETE - - - application/json - - - ${exchangeProperty[X-ONAP-RequestID]} - - - - ${exchangeProperty[X-ONAP-InvocationID]} - - - - ${exchangeProperty[X-ONAP-PartnerName]} - - - - - - - - - - - - - - - - - - - - - - java.lang.Exception - - false - - - UNDEPLOY micro service failed - (MicroService name:${exchangeProperty[microServicePolicy].getName()}) - - - - DCAE - - - - - - - - - - - - - - - - ${exchangeProperty[loopObject].getDcaeDeploymentId()} - != null - - - - - - - DELETE - - - application/json - - - - ${exchangeProperty[X-ONAP-RequestID]} - - - - ${exchangeProperty[X-ONAP-InvocationID]} - - - - ${exchangeProperty[X-ONAP-PartnerName]} - - - - - - - - - - - - - - - - - UNDEPLOY loop status - - - DCAE - - - - - - - - - - - - - - - - - - GET - - - ${exchangeProperty[X-ONAP-RequestID]} - - - - ${exchangeProperty[X-ONAP-InvocationID]} - - - - ${exchangeProperty[X-ONAP-PartnerName]} - - - - - - ${exchangeProperty[getStatusUrl].contains("?")} == true - - - & - - - - - ? - - - - - - java.lang.Exception - - true - - - - - - - - - - DCAE deployment status - - - DCAE - - - - - - - - - - - - GET - - - ${exchangeProperty[X-ONAP-RequestID]} - - - - ${exchangeProperty[X-ONAP-InvocationID]} - - - - ${exchangeProperty[X-ONAP-PartnerName]} - - - - - - - - - - - - - - - - - - - GET - - - ${exchangeProperty[X-ONAP-RequestID]} - - - - ${exchangeProperty[X-ONAP-InvocationID]} - - - - ${exchangeProperty[X-ONAP-PartnerName]} - - - - - - - - - - ${exchangeProperty[dcaeResponseList]} - - - ${body} - - - - - - - - - - \ No newline at end of file diff --git a/src/main/resources/clds/camel/routes/loop-flows.xml b/src/main/resources/clds/camel/routes/loop-flows.xml deleted file mode 100644 index f6a838ef0..000000000 --- a/src/main/resources/clds/camel/routes/loop-flows.xml +++ /dev/null @@ -1,256 +0,0 @@ - - - - - ${header.loopName} - - - - - - - ${exchangeProperty[loopObject]} == null - - 404 - - - - - - - - - ${exchangeProperty[loopObject].getComponent('POLICY')} - - - - true - - - true - - - - ${exchangeProperty[loopObject].getMicroServicePolicies()} - - - ${body.getName()} - - - ${body.getPolicyModel().getPolicyModelType()} - - - ${body.getPolicyModel().getVersion()} - - - ${body.getPdpGroup()} - - - 1.0.0 - - - null - - - - - - - ${exchangeProperty[loopObject].getOperationalPolicies()} - - - ${body.getName()} - - - ${body.getPolicyModel().getPolicyModelType()} - - - ${body.getPolicyModel().getVersion()} - - - 1.0.0 - - - ${body.getPdpGroup()} - - - null - - - - - - ${exchangeProperty[policyComponent].getState()} - - - - - - - - - - - ${exchangeProperty['loopObject'].getLoopTemplate().getUniqueBlueprint()} == true - - - ${exchangeProperty[loopObject].getComponent('DCAE')} - - - ${exchangeProperty[loopObject].getDcaeDeploymentStatusUrl()} != null - - - ${exchangeProperty[loopObject].getDcaeDeploymentStatusUrl()} - - - false - - - - ${header.CamelHttpResponseCode} == 200 - - - - - - - - ${exchangeProperty[dcaeComponent].computeState(*)} - - - - - - - ${exchangeProperty['loopObject'].getLoopTemplate().getUniqueBlueprint()} == false - - - ${exchangeProperty[loopObject].getMicroServicePolicies()} - - - ${body} - - - ${exchangeProperty[loopObject].getComponent('DCAE_' + ${exchangeProperty[microServicePolicy].getName()})} - - - ${exchangeProperty[microServicePolicy].getDcaeDeploymentStatusUrl()} != null - - - ${exchangeProperty[microServicePolicy].getDcaeDeploymentStatusUrl()} - - - false - - - - ${header.CamelHttpResponseCode} == 200 - - - - - - - - ${exchangeProperty[dcaeComponent].computeState(*)} - - - - - > - - - - - - - - - ${exchangeProperty['dcaeState'].getStateName()} == - 'BLUEPRINT_DEPLOYED' and ${exchangeProperty['policyState'].getStateName()} - == 'NOT_SENT' - - - - - ${exchangeProperty['dcaeState'].getStateName()} == 'IN_ERROR' or - ${exchangeProperty['dcaeState'].getStateName()} == - 'MICROSERVICE_INSTALLATION_FAILED' - - - - - ${exchangeProperty['dcaeState'].getStateName()} == - 'MICROSERVICE_UNINSTALLATION_FAILED' or - ${exchangeProperty['policyState'].getStateName()} == 'IN_ERROR' - - - - - ${exchangeProperty['dcaeState'].getStateName()} == - 'MICROSERVICE_INSTALLED_SUCCESSFULLY' and - ${exchangeProperty['policyState'].getStateName()} == 'SENT_AND_DEPLOYED' - - - - - ${exchangeProperty['dcaeState'].getStateName()} == - 'MICROSERVICE_INSTALLED_SUCCESSFULLY' and - ${exchangeProperty['policyState'].getStateName()} == 'SENT' - - - - - ${exchangeProperty['dcaeState'].getStateName()} == - 'BLUEPRINT_DEPLOYED' or ${exchangeProperty['dcaeState'].getStateName()} == - 'MICROSERVICE_UNINSTALLED_SUCCESSFULLY' and - ${exchangeProperty['policyState'].getStateName()} == 'SENT_AND_DEPLOYED' - - - - - ${exchangeProperty['dcaeState'].getStateName()} == - 'PROCESSING_MICROSERVICE_INSTALLATION' or - ${exchangeProperty['dcaeState'].getStateName()} == - 'PROCESSING_MICROSERVICE_UNINSTALLATION' and - ${exchangeProperty['policyState'].getStateName()} == 'SENT_AND_DEPLOYED' - - - - - ${exchangeProperty['dcaeState'].getStateName()} == - 'MICROSERVICE_INSTALLED_SUCCESSFULLY' and - ${exchangeProperty['policyState'].getStateName()} != 'NOT_SENT' - - - - - - - - - \ No newline at end of file diff --git a/src/main/resources/clds/camel/routes/policy-flows.xml b/src/main/resources/clds/camel/routes/policy-flows.xml deleted file mode 100644 index c92617856..000000000 --- a/src/main/resources/clds/camel/routes/policy-flows.xml +++ /dev/null @@ -1,601 +0,0 @@ - - - - - false - - - - ${header.CamelHttpResponseCode} != 200 - - false - - - - - false - - - - ${header.CamelHttpResponseCode} != 200 - - false - - - - - ${exchangeProperty[policyComponent].computeState(*)} - - - - - - - - - - GET - - - ${exchangeProperty[X-ONAP-RequestID]} - - - - ${exchangeProperty[X-ONAP-InvocationID]} - - - - ${exchangeProperty[X-ONAP-PartnerName]} - - - - - - java.lang.Exception - - true - - - - - - - - - - ${exchangeProperty[policyName]} GET - Policy status - - - - POLICY - - - - - - - - - - - - - GET - - - ${exchangeProperty[X-ONAP-RequestID]} - - - - ${exchangeProperty[X-ONAP-InvocationID]} - - - - ${exchangeProperty[X-ONAP-PartnerName]} - - - - - - java.lang.Exception - - true - - - - - - - - - - ${exchangeProperty[policyName]} GET Policy deployment - status - - - - POLICY - - - - - - - - - - - - - ${exchangeProperty[policy].createPolicyPayload()} - - - - ${exchangeProperty[policy].getPolicyModel().getPolicyModelType()} - - - ${exchangeProperty[policy].getPolicyModel().getVersion()} - - - - - - ${exchangeProperty[policy].getName()} creation - status - - - - POLICY - - - - - - - - - - - - - ${exchangeProperty[policy].getPolicyModel().getPolicyModelType()} - - - ${exchangeProperty[policy].getPolicyModel().getVersion()} - - - ${exchangeProperty[policy].getName()} - - - 1.0.0 - - - - - - ${exchangeProperty[policy].getName()} removal - status - - - - POLICY - - - - - - - - - - - - - - ${exchangeProperty[loopObject].getComponent("POLICY").createPoliciesPayloadPdpGroup(exchangeProperty[loopObject],"POST")} - - - - POST - - - application/json - - - ${exchangeProperty[X-ONAP-RequestID]} - - - - ${exchangeProperty[X-ONAP-InvocationID]} - - - - ${exchangeProperty[X-ONAP-PartnerName]} - - - - - - - - - - PDP Group push ALL status - - - POLICY - - - - - - - - - - - - - - ${exchangeProperty[loopObject].getComponent("POLICY").createPoliciesPayloadPdpGroup(exchangeProperty[loopObject],"DELETE")} - - - - POST - - - application/json - - - ${exchangeProperty[X-ONAP-RequestID]} - - - - ${exchangeProperty[X-ONAP-InvocationID]} - - - - ${exchangeProperty[X-ONAP-PartnerName]} - - - - - - - - - - PDP Group remove ALL status - - - POLICY - - - - - - - - - - - - - 1.0.0 - - - - ${exchangeProperty[policyName]} PDP Group removal status - - - - POLICY - - - - java.lang.Exception - - false - - - PDP Group removal, Error reported: ${exception} - - - POLICY - - - - - - - - - - - - - - - - - GET - - - ${exchangeProperty[X-ONAP-RequestID]} - - - - ${exchangeProperty[X-ONAP-InvocationID]} - - - - ${exchangeProperty[X-ONAP-PartnerName]} - - - - - - - - - - - - - - - - - - - GET - - - ${exchangeProperty[X-ONAP-RequestID]} - - - - ${exchangeProperty[X-ONAP-InvocationID]} - - - - ${exchangeProperty[X-ONAP-PartnerName]} - - - - - - - - - - - - - - - - - - - GET - - - ${exchangeProperty[X-ONAP-RequestID]} - - - - ${exchangeProperty[X-ONAP-InvocationID]} - - - - ${exchangeProperty[X-ONAP-PartnerName]} - - - - - - - - - - - - - - - - - - - GET - - - ${exchangeProperty[X-ONAP-RequestID]} - - - - ${exchangeProperty[X-ONAP-InvocationID]} - - - - ${exchangeProperty[X-ONAP-PartnerName]} - - - - - - - - - - - - - - - - - - - null - - - DELETE - - - ${exchangeProperty[X-ONAP-RequestID]} - - - - ${exchangeProperty[X-ONAP-InvocationID]} - - - - ${exchangeProperty[X-ONAP-PartnerName]} - - - - - - - - - - - - - - - - - - - POST - - - application/json - - - ${exchangeProperty[X-ONAP-RequestID]} - - - - ${exchangeProperty[X-ONAP-InvocationID]} - - - - ${exchangeProperty[X-ONAP-PartnerName]} - - - - - - - - - - - - - - - - - null - - - DELETE - - - ${exchangeProperty[X-ONAP-RequestID]} - - - - ${exchangeProperty[X-ONAP-InvocationID]} - - - - ${exchangeProperty[X-ONAP-PartnerName]} - - - - - - - - - - - - \ No newline at end of file diff --git a/src/main/resources/clds/camel/routes/utils-flows.xml b/src/main/resources/clds/camel/routes/utils-flows.xml deleted file mode 100644 index d5da4faee..000000000 --- a/src/main/resources/clds/camel/routes/utils-flows.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - true - - - - - - - - - ${exchangeProperty[logComponent]} == null - - - - - - null - - - - - \ No newline at end of file -- cgit 1.2.3-korg