From 7d04c23c7c51738d68f325e450ac408c1ae9905f Mon Sep 17 00:00:00 2001 From: liamfallon Date: Tue, 29 Jun 2021 17:13:09 +0100 Subject: Update CLAMP: checkstyle 8.43/Spring dependencies Updates are indentation changes on annotations and rationallization of the dependencies for Spring/Springboot Generation of swagger.json, swagger.html and swagger.pdf temporarily disabled due to a missing dependency in the generation toolchain. Issue-ID: POLICY-3209 Change-Id: Iff5881df45ef54b20fa30f63e2393cc1cdbf4bfe Signed-off-by: liamfallon --- .../resources/clds/camel/rest/clds-services.xml | 42 +- .../resources/clds/camel/routes/loop-flows.xml | 506 ++++++++++---------- .../resources/clds/camel/routes/utils-flows.xml | 52 +- runtime/src/main/resources/logback-default.xml | 525 +++++++++------------ runtime/src/main/resources/logback-spring.xml | 36 +- 5 files changed, 537 insertions(+), 624 deletions(-) (limited to 'runtime/src/main/resources') diff --git a/runtime/src/main/resources/clds/camel/rest/clds-services.xml b/runtime/src/main/resources/clds/camel/rest/clds-services.xml index aa4c3cbee..e92b7b272 100644 --- a/runtime/src/main/resources/clds/camel/rest/clds-services.xml +++ b/runtime/src/main/resources/clds/camel/rest/clds-services.xml @@ -1,24 +1,24 @@ - - - - - - - - ${body} == 'NOT-OK' - - 404 - - - - - + + + + + + + + ${body} == 'NOT-OK' + + 404 + + + + + - - - - + + + + diff --git a/runtime/src/main/resources/clds/camel/routes/loop-flows.xml b/runtime/src/main/resources/clds/camel/routes/loop-flows.xml index 4a3cc84b2..85e73ed2e 100644 --- a/runtime/src/main/resources/clds/camel/routes/loop-flows.xml +++ b/runtime/src/main/resources/clds/camel/routes/loop-flows.xml @@ -1,256 +1,256 @@ - - - - ${header.loopName} - - - - + + + + ${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' && ${exchangeProperty['policyState'].getStateName()} - == 'NOT_SENT' - - - - - ${exchangeProperty['dcaeState'].getStateName()} == 'IN_ERROR' || - ${exchangeProperty['dcaeState'].getStateName()} == - 'MICROSERVICE_INSTALLATION_FAILED' - - - - - ${exchangeProperty['dcaeState'].getStateName()} == - 'MICROSERVICE_UNINSTALLATION_FAILED' || - ${exchangeProperty['policyState'].getStateName()} == 'IN_ERROR' - - - - - ${exchangeProperty['dcaeState'].getStateName()} == - 'MICROSERVICE_INSTALLED_SUCCESSFULLY' && - ${exchangeProperty['policyState'].getStateName()} == 'SENT_AND_DEPLOYED' - - - - - ${exchangeProperty['dcaeState'].getStateName()} == - 'MICROSERVICE_INSTALLED_SUCCESSFULLY' && - ${exchangeProperty['policyState'].getStateName()} == 'SENT' - - - - - ${exchangeProperty['dcaeState'].getStateName()} == - 'BLUEPRINT_DEPLOYED' || ${exchangeProperty['dcaeState'].getStateName()} == - 'MICROSERVICE_UNINSTALLED_SUCCESSFULLY' && - ${exchangeProperty['policyState'].getStateName()} == 'SENT_AND_DEPLOYED' - - - - - ${exchangeProperty['dcaeState'].getStateName()} == - 'PROCESSING_MICROSERVICE_INSTALLATION' || - ${exchangeProperty['dcaeState'].getStateName()} == - 'PROCESSING_MICROSERVICE_UNINSTALLATION' && - ${exchangeProperty['policyState'].getStateName()} == 'SENT_AND_DEPLOYED' - - - - - ${exchangeProperty['dcaeState'].getStateName()} == - 'MICROSERVICE_INSTALLED_SUCCESSFULLY' && - ${exchangeProperty['policyState'].getStateName()} != 'NOT_SENT' - - - - - - + + ${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' && ${exchangeProperty['policyState'].getStateName()} + == 'NOT_SENT' + + + + + ${exchangeProperty['dcaeState'].getStateName()} == 'IN_ERROR' || + ${exchangeProperty['dcaeState'].getStateName()} == + 'MICROSERVICE_INSTALLATION_FAILED' + + + + + ${exchangeProperty['dcaeState'].getStateName()} == + 'MICROSERVICE_UNINSTALLATION_FAILED' || + ${exchangeProperty['policyState'].getStateName()} == 'IN_ERROR' + + + + + ${exchangeProperty['dcaeState'].getStateName()} == + 'MICROSERVICE_INSTALLED_SUCCESSFULLY' && + ${exchangeProperty['policyState'].getStateName()} == 'SENT_AND_DEPLOYED' + + + + + ${exchangeProperty['dcaeState'].getStateName()} == + 'MICROSERVICE_INSTALLED_SUCCESSFULLY' && + ${exchangeProperty['policyState'].getStateName()} == 'SENT' + + + + + ${exchangeProperty['dcaeState'].getStateName()} == + 'BLUEPRINT_DEPLOYED' || ${exchangeProperty['dcaeState'].getStateName()} == + 'MICROSERVICE_UNINSTALLED_SUCCESSFULLY' && + ${exchangeProperty['policyState'].getStateName()} == 'SENT_AND_DEPLOYED' + + + + + ${exchangeProperty['dcaeState'].getStateName()} == + 'PROCESSING_MICROSERVICE_INSTALLATION' || + ${exchangeProperty['dcaeState'].getStateName()} == + 'PROCESSING_MICROSERVICE_UNINSTALLATION' && + ${exchangeProperty['policyState'].getStateName()} == 'SENT_AND_DEPLOYED' + + + + + ${exchangeProperty['dcaeState'].getStateName()} == + 'MICROSERVICE_INSTALLED_SUCCESSFULLY' && + ${exchangeProperty['policyState'].getStateName()} != 'NOT_SENT' + + + + + + - - \ No newline at end of file + + diff --git a/runtime/src/main/resources/clds/camel/routes/utils-flows.xml b/runtime/src/main/resources/clds/camel/routes/utils-flows.xml index 90900f842..da91335c8 100644 --- a/runtime/src/main/resources/clds/camel/routes/utils-flows.xml +++ b/runtime/src/main/resources/clds/camel/routes/utils-flows.xml @@ -1,28 +1,28 @@ - - - - true - - + + + + true + + - - - - - - ${exchangeProperty[logComponent]} == null - - - - - - null - - - - - \ No newline at end of file + + + + + + ${exchangeProperty[logComponent]} == null + + + + + + null + + + + + diff --git a/runtime/src/main/resources/logback-default.xml b/runtime/src/main/resources/logback-default.xml index 5397eab04..1d7b2a14f 100644 --- a/runtime/src/main/resources/logback-default.xml +++ b/runtime/src/main/resources/logback-default.xml @@ -1,110 +1,78 @@ - - - - - - - - - - - - - - - - - - - - - - - - INFO - - - %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{1024} - %msg%n - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + INFO + + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{1024} - %msg%n + + + + + + ERROR ACCEPT DENY - ${logDirectory}/error.log - true - - ${errorPattern} - - - ${logDirectory}/error.%d{yyyy-MM-dd}.%i.log.zip - - 50MB - 20 - 1GB - - - - - ${logDirectory}/debug.log - true - - %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{1024} - %msg%n - - - - ${logDirectory}/debug.%d{yyyy-MM-dd}.%i.log.zip - - 50MB - 20 - 1GB - - - - - - + ${logDirectory}/error.log + true + + ${errorPattern} + + + ${logDirectory}/error.%d{yyyy-MM-dd}.%i.log.zip + + 50MB + 20 + 1GB + + + + + ${logDirectory}/debug.log + true + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{1024} - %msg%n + + + + ${logDirectory}/debug.%d{yyyy-MM-dd}.%i.log.zip + + 50MB + 20 + 1GB + + + + + + ENTRY EXIT @@ -112,31 +80,26 @@ DENY ACCEPT - ${logDirectory}/audit.log - true - - ${auditPattern} - - - ${logDirectory}/audit.%d{yyyy-MM-dd}.%i.log.zip - - 50MB - 20 - 1GB - - - - 256 - - - - - + ${logDirectory}/audit.log + true + + ${auditPattern} + + + ${logDirectory}/audit.%d{yyyy-MM-dd}.%i.log.zip + + 50MB + 20 + 1GB + + + + 256 + + + + + INVOKE INVOKE-RETURN @@ -144,186 +107,136 @@ DENY ACCEPT - ${logDirectory}/metric.log - true - - ${metricPattern} - - - ${logDirectory}/metric.%d{yyyy-MM-dd}.%i.log.zip - - 50MB - 20 - 1GB - - - - - 256 - - - - - - ${logDirectory}/security.log - true - - %X{EntryTimestamp}|%date{yyyy-MM-dd'T'HH:mm:ss.SSSXXX,UTC}|%X{RequestID}|%X{ServiceInstanceId}|%.20thread|%X{VirtualServerName}|%X{ServiceName}|%X{PartnerName}|%X{StatusCode}|%X{ResponseCode}|%X{ResponseDescription}|%X{InstanceUUID}|%.-5level|%X{AlertSeverity}|%X{ServerIPAddress}|%X{ElapsedTime}|%X{ServerFQDN}|%X{RemoteHost}|%X{ClassName}|%X{Unused}|%X{ProcessKey}|%X{CustomField1}|%X{CustomField2}|%X{CustomField3}|%X{CustomField4}|%msg%n - - - - ${logDirectory}/security.%d{yyyy-MM-dd}.%i.log.zip - - 50MB - 20 - 1GB - - - - - 256 - - - - - - - ${logDirectory}/Audits.log - - ${logDirectory}/Audits-%d{yyyy-MM-dd}.%i.log.zip - - 50MB - 20 - 1GB - - - "%d [%thread] %-5level %logger{1024} - %msg%n" - - - - - - - ${logDirectory}/Perform.log - - ${logDirectory}/Perform--%d{yyyy-MM-dd}.%i.log.zip - - 50MB - 20 - 1GB - - - "%d [%thread] %-5level %logger{1024} - %msg%n" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + ${logDirectory}/metric.log + true + + ${metricPattern} + + + ${logDirectory}/metric.%d{yyyy-MM-dd}.%i.log.zip + + 50MB + 20 + 1GB + + + + + 256 + + + + + + ${logDirectory}/security.log + true + + %X{EntryTimestamp}|%date{yyyy-MM-dd'T'HH:mm:ss.SSSXXX,UTC}|%X{RequestID}|%X{ServiceInstanceId}|%.20thread|%X{VirtualServerName}|%X{ServiceName}|%X{PartnerName}|%X{StatusCode}|%X{ResponseCode}|%X{ResponseDescription}|%X{InstanceUUID}|%.-5level|%X{AlertSeverity}|%X{ServerIPAddress}|%X{ElapsedTime}|%X{ServerFQDN}|%X{RemoteHost}|%X{ClassName}|%X{Unused}|%X{ProcessKey}|%X{CustomField1}|%X{CustomField2}|%X{CustomField3}|%X{CustomField4}|%msg%n + + + + ${logDirectory}/security.%d{yyyy-MM-dd}.%i.log.zip + + 50MB + 20 + 1GB + + + + + 256 + + + + + + + ${logDirectory}/Audits.log + + ${logDirectory}/Audits-%d{yyyy-MM-dd}.%i.log.zip + + 50MB + 20 + 1GB + + + "%d [%thread] %-5level %logger{1024} - %msg%n" + + + + + + + ${logDirectory}/Perform.log + + ${logDirectory}/Perform--%d{yyyy-MM-dd}.%i.log.zip + + 50MB + 20 + 1GB + + + "%d [%thread] %-5level %logger{1024} - %msg%n" + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + diff --git a/runtime/src/main/resources/logback-spring.xml b/runtime/src/main/resources/logback-spring.xml index ffa497f1d..e7b67473c 100644 --- a/runtime/src/main/resources/logback-spring.xml +++ b/runtime/src/main/resources/logback-spring.xml @@ -1,19 +1,19 @@ - - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + + + + + + + + -- cgit 1.2.3-korg