summaryrefslogtreecommitdiffstats
path: root/common/src/main
AgeCommit message (Collapse)AuthorFilesLines
2018-09-08added generic fabric support to SOBenjamin, Max (mb388a)20-43/+961
Fix Autoincrement of ID field in table Fix accidental removal of method Update usage of requestdb client removed unused imports in common tasks and test Fix broken branch, have unit tests pass references the Epic branch Fix broken branch from compiling committing classpath for vfc adapter cause its not going away added in the fail case for when there are no profiles removed second set of adapters in application test yml removed double adapters in request db application test added jpa repo dependency to the so bpmn folder pom add creation timestamp column to the table added in null checks for Config returned from policy switched to string in requestprocess with jenerate switched to string in requestprocess with jenerate updated aai version in common pom to 605 from 591 renamed the db scripts for flyway sync to register added endpoint to application test yml for failing test ... Change-Id: I800f837ea75d7cdff740dc3a387e4d7654cfd085 Issue-ID: SO-972 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
2018-09-05Client LoggingSmokowski, Steve (ss835w)8-281/+137
Update Client Logging to use interceptor Move CXF to own project due to dependency hell Issue-ID: SO-947 Change-Id: I2597ff6d32231b8625b04ef63ab5e8f589e2545c Signed-off-by: Smokowski, Steve (ss835w) <ss835w@us.att.com>
2018-09-04updated aai version enumBenjamin, Max (mb388a)1-1/+2
version enum updated to 1810 A&AI version Change-Id: I42fe7cd4364df7ac6d74e936615ea748e028413d Issue-ID: SO-971 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
2018-09-04fixing Sonar reported log issueGOPINATH MATHIVANAN1-1/+5
Fixed Sonar reported vulnerability in LoggerStartupListener Issue-ID: SO-962 Change-Id: Icc82d8de94c8ea3c4cd27133e833e2d499e8670d Signed-off-by: GOPINATH MATHIVANAN <gopinath.mathivanan@in.ibm.com>
2018-09-01Logging ImprovementSmokowski, Steve (ss835w)2-0/+138
Add Spring interceptor to log all the SpringDataRest calls Issue-ID: SO-947 Change-Id: Ia1a574cedd90e79bb2fd30a094831dc5cd269ff0 Signed-off-by: Smokowski, Steve (ss835w) <ss835w@us.att.com>
2018-08-31Update LoggingSmokowski, Steve (ss835w)9-110/+342
Add CXF interceptor for SOAP based logging Clean up extra logging statements Add UT to ensure MDC properly populated Change package name on Jax-RS Filter to be more accurate Issue-ID: SO-947 Change-Id: I3a2afc58de3bf370675658ce3d19cf899b90def7 Change-Id: I3a2afc58de3bf370675658ce3d19cf899b90def7 Signed-off-by: Smokowski, Steve (ss835w) <ss835w@us.att.com>
2018-08-24Merge "Do not log stack trace when http not found occurs"Marcus Williams2-1/+5
2018-08-24Do not log stack trace when http not found occursBenjamin, Max (mb388a)2-1/+5
do not log stack trace when http not found occurs Change-Id: Ia0638eba7f8d9544dae21290c836c7be1e05ac2e Issue-ID: SO-902 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
2018-08-24aairesultwrapper is now actually serializableBenjamin, Max (mb388a)1-10/+14
added in a proper serialization and deserialization test addressed any comments from pull added in a serialization test for AAIResultWrapper and updated one of the null returns change jsonBody in AAIResultWrapper back to String Change-Id: Iffa5661f129cc26d69dfaa966cd265c67903cf21 Issue-ID: SO-899 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
2018-08-23Merge "removed classes no longer in use"Rob Daugherty1-141/+0
2018-08-23removed classes no longer in useBenjamin, Max (mb388a)1-141/+0
Change create configuration to use yang service instance and removed AAIServiceInstance pojo. Change-Id: I2420503f1a00c2dc64b6021aad8e42aa2080eb98 Issue-ID: SO-895 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
2018-08-21created generic HttpLookupUri classBenjamin, Max (mb388a)4-79/+188
created generic HttpLookupUri abstract class Change-Id: Ie45d620af77fb58c0a7b469aba4a10f274b0de59 Issue-ID: SO-877 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
2018-08-14Added vfModule scale out endpoint and validationBrittany Plummer (bp896r)1-7/+15
Issue-ID: SO-764 Change-Id: I6fc983ed6bc9d9c410406db1f2355c27e201b4f4 Signed-off-by: Brittany Plummer (bp896r) <bp896r@att.com>
2018-08-13Merge "Update CatalogDB Logging"Marcus Williams2-132/+163
2018-08-13Update CatalogDB LoggingSmokowski, Steve (ss835w)2-132/+163
Update CatalogDB Logging to remove MSO Logger, remove useless log lines, clean up minor sonar issues while working in the file Issue-ID: SO-847 Change-Id: Icab5d8cf2885d2193bb55f495b3230dde0f5af54 Change-Id: I2d2b2fa919074c439b6c9039aa7ed5e45a792781 Signed-off-by: Smokowski, Steve (ss835w) <ss835w@us.att.com>
2018-08-13Sonar issue MajorArindam Mondal1-11/+3
Issue-ID: SO-852 Change-Id: Ia0d58c52884abdd1f752dc6671d315b8516812e6 Signed-off-by: Arindam Mondal <arind.mondal@samsung.com>
2018-08-11Merge "added edge label support to A&AI client"Seshu Kumar M3-0/+55
2018-08-10Handle special aai case betterBenjamin, Max (mb388a)5-32/+93
corrected error handling in aai client for service instances updated the exception logic for si's that are not found adhere to mapNotFoundToEmpty in special case Issue-ID: SO-851 Change-Id: I3843733553143dae046c1ae944a3bfd71ac5170c Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
2018-08-10added edge label support to A&AI clientBenjamin, Max (mb388a)3-0/+55
you can now specify an edge label when connecting two objects Issue-ID: SO-849 Change-Id: I851d523c271823911cdc344ac8c28beec993cb09 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
2018-08-06Add page support to A&AI ClientBenjamin, Max (mb388a)6-4/+53
Issue-ID: SO-805 Change-Id: Id95c29db4594db494c647937636c09b0837335be Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
2018-08-02Resolve Sonar Blocking issuesSmokowski, Steve (ss835w)2-21/+0
Issue-ID: SO-788 Change-Id: I4496ef16c56c980a81031ad01fcbb1524d135ea8 Signed-off-by: Smokowski, Steve (ss835w) <ss835w@us.att.com>
2018-07-31Containerization feature of SOBenjamin, Max (mb388a)233-4310/+5250
Change-Id: I95381232eeefcd247a66a5cec370a8ce1c288e18 Issue-ID: SO-670 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
2018-07-24Fix use try-with-resources sonar issuesParshad Patel2-5/+3
Replace try with try-with-resources statement Issue-ID: SO-703 Change-Id: I971b61af2070a6856c751ed36050dd018216fe03 Signed-off-by: Parshad Patel <pars.patel@samsung.com>
2018-05-15WorkflowResponse json issuesRob Daugherty2-0/+106
This commit adds some robustness to the interface between the API-H and BPMN, specifically, in how the response is handled. I don't have proof, but there appears to be some randomness to the json provider behavior when used with the jax-rs. Sometimes, the serializer is adding the root element, and sometimes it is not. Maybe there's something wrong with the configuration. Maybe we have competing json providers. I couldn't pin this down. I'm almost certain it is the presence of the root element in the content that causes the API-H code to fail parsing of the BPMN response. This doesn't kill the request, as you might expect, but rather, the API-H passes the BPMN response through to the client (VID, or policy, or whatever). The original problem (SO-586) was "fixed" by "removing the wrapper". This "wrapper" is a needed feature of the interface between BPMN and the API-H. We shouldn't have removed it. The fact that the "fix" appeared to work is due to the behavior I described in the previous paragraph. The API-H chokes on the message, and it passes it through unchanged. Not really what we want. So, I don't know why the jackson/json behavior is flaky and different now, but I can (and did) modify the API-H so it can parse a json message whether or not it has a root element. Note that WorkflowResponse.java (in BPMN) and CamundaResponse.java (in the API-H) are basically the same bean representing the message format. Seems less than ideal to have two different classes. Also note that I changed the name of the "response" attribute of the WorkflowResponse and CamundaResponse classes to "content". Got tired of seeing this nonsense everywhere in the code: response.getResponse() Change-Id: Icaf70f8457de99e493cf882170fe778c620308c9 Issue-ID: SO-586 Issue-ID: SO-618 Signed-off-by: Rob Daugherty <rd472p@att.com>
2018-04-27Add correlationId to ServiceInstancesRequestLukasz Muszkieta1-8/+21
Change-Id: Idc5ee56660da31f08fd8ed3a67b7cd28f9844f43 Issue-ID: SO-596 Signed-off-by: Lukasz Muszkieta <lukasz.muszkieta@nokia.com>
2018-04-23Sonar-Critical Bug FixingAS004650592-1/+4
File:RestfulUtil.java Line:L85 Sonar Link: https://sonar.onap.org/issues?assigned=false&projectUuids=AWHCr9eDWid2ybiDeORt&resolved=false&rules=squid%3AS1166&severities=BLOCKER%2CCRITICAL File:E2EServiceInstances.java Line:L263 L1059 Sonar Link: https://sonar.onap.org/issues?assigned=false&projectUuids=AWHCr9eDWid2ybiDeORt&resolved=false&rules=squid%3AS1166&severities=BLOCKER%2CCRITICAL File:OrchestrationRequests.java Line:L343 Sonar Link: https://sonar.onap.org/issues?assigned=false&projectUuids=AWHCr9eDWid2ybiDeORt&resolved=false&rules=squid%3AS1166&severities=BLOCKER%2CCRITICAL File:ASDCConfiguration.java Line:L286 L378 SonarLink: https://sonar.onap.org/issues?assigned=false&projectUuids=AWHCr9eDWid2ybiDeORt&resolved=false&rules=squid%3AS1166&severities=BLOCKER%2CCRITICAL File:ResourceInput.java Line:L287 Sonar Link: https://sonar.onap.org/issues?assigned=false&projectUuids=AWHCr9eDWid2ybiDeORt&resolved=false&rules=squid%3AS1166&severities=BLOCKER%2CCRITICAL File:ResourceRecipeRequest.java Line:L136 Sonar Link: https://sonar.onap.org/issues?assigned=false&projectUuids=AWHCr9eDWid2ybiDeORt&resolved=false&rules=squid%3AS1166&severities=BLOCKER%2CCRITICAL File:ResourceRequestBuilder.java Line:L108 L214 Sonar Link: https://sonar.onap.org/issues?assigned=false&projectUuids=AWHCr9eDWid2ybiDeORt&resolved=false&rules=squid%3AS1166&severities=BLOCKER%2CCRITICAL File:CheckAaiForCorrelationIdDelegate.java Line:L70 Sonar Link: https://sonar.onap.org/issues?assigned=false&projectUuids=AWHCr9eDWid2ybiDeORt&resolved=false&rules=squid%3AS1166&severities=BLOCKER%2CCRITICAL File:AbstractSdncOperationTask.java Line:L359 Sonar Link: https://sonar.onap.org/issues?assigned=false&projectUuids=AWHCr9eDWid2ybiDeORt&resolved=false&rules=squid%3AS1166&severities=BLOCKER%2CCRITICAL File:DmaapClient.java Line:L62 Sonar Link: https://sonar.onap.org/issues?assigned=false&projectUuids=AWHCr9eDWid2ybiDeORt&resolved=false&rules=squid%3AS1166&severities=BLOCKER%2CCRITICAL File:HasAnnotationPropertyWithValueMatcher.java Line:L60 Sonar Link: https://sonar.onap.org/issues?assigned=false&projectUuids=AWHCr9eDWid2ybiDeORt&resolved=false&rules=squid%3AS1166&severities=BLOCKER%2CCRITICAL Change-Id: Ic168a118790c31850a9f32f98465be5d52b8c96f Issue-ID: SO-581 Signed-off-by: AS00465059 <AS00465059@techmahindra.com>
2018-04-20Merge "Exception in AAIRestClientImpl.java"Seshu Kumar M1-2/+2
2018-04-19Exception in AAIRestClientImpl.javasanchitap1-2/+2
AAIRestClientImpl.java Sonar link: https://sonar.onap.org/code?id=org.onap.so%3Aso&selected=org.onap.so%3Acommon%3Asrc%2Fmain%2Fjava%2Forg%2Fopenecomp%2Fmso%2Fclient%2Faai%2FAAIRestClientImpl.java Change-Id: I9bdcd2e389cad15119f322a3ac7f7bcc1bd2cc67 Issue-ID: SO-575 Signed-off-by: sanchitap <sanchita@techmahindra.com>
2018-04-18AAIRestClient support for Basic AuthRob Daugherty4-4/+42
Adding support for Basic Auth in the AAI Rest Clients because ONAP uses this (whereas ECOMP uses 2-way SSL). In general, each AAI client will allow the user to configure properties called "aai.auth" and "mso.msoKey". If these are set, then the client will add the Authorization header to every request. Change-Id: I7c81ec05d2ec4a7dca131f2e9e19d341ac89b09f Issue-ID: SO-576 Signed-off-by: Rob Daugherty <rd472p@att.com>
2018-04-16PnfReadyEventConsumer implementationLukasz Muszkieta1-0/+10
Change-Id: I7252400a3f60ca22ddfa71edb28eaf1d16ccd9b4 Issue-ID: SO-466 Signed-off-by: Lukasz Muszkieta <lukasz.muszkieta@nokia.com>
2018-04-06PnfReadyEventConsumer implementationLukasz Muszkieta1-93/+0
Change-Id: Ia4d9fedb023ef6893e887ff6b5802623649aeeba Issue-ID: SO-466 Signed-off-by: Lukasz Muszkieta <lukasz.muszkieta@nokia.com>
2018-04-03Added controllerType to requestParametersBrittany Plummer (bp896r)1-6/+14
Change-Id: Ib99642783e9d88558ff0875a246a9a1a628d3817 Issue-ID: SO-553 Signed-off-by: Brittany Plummer (bp896r) <bp896r@att.com>
2018-03-28Merge "Added junit for policy client impl"Rob Daugherty1-1/+1
2018-03-28Merge "Added subworkflow for Pnf pnp"Rob Daugherty3-125/+171
2018-03-28Merge "pnf ready event consumer"Rob Daugherty3-25/+111
2018-03-28improved coverage for catalog db beansBenjamin, Max (mb388a)1-0/+23
Change-Id: Ibf1fd21dc81f0a3e16447b05dfce1761efa69237 Issue-ID: SO-541 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
2018-03-28Added junit for policy client implKalkere Ramesh, Sharan (sk720x)1-1/+1
Change-Id: Ibe5319e9b795355372cbd5ef374a545fb3a9b1d3 Issue-ID: SO-542 Signed-off-by: Kalkere Ramesh, Sharan (sk720x) <sk720x@att.com>
2018-03-28Added subworkflow for Pnf pnpbiniek3-125/+171
Change-Id: Ifeba2e74a03ce8c5a13b80f673809c3ef60bfe3f Issue-ID: SO-506 Signed-off-by: biniek <lukasz.biniek@nokia.com>
2018-03-27pnf ready event consumerLukasz Muszkieta3-25/+111
Change-Id: I63802ea60d318626ae32e734167d2bce602d72e4 Issue-ID: SO-466 Signed-off-by: Lukasz Muszkieta <lukasz.muszkieta@nokia.com>
2018-03-22added openpojo test for policy entities beansBenjamin, Max (mb388a)1-6/+6
Change-Id: I41031381e5cb5d2f9540e6c941479283f6a59280 Issue-ID: SO-512 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
2018-03-22added openpojo tests for sdno beansBenjamin, Max (mb388a)5-0/+18
Change-Id: I185fb4262347120ae94c6d41e0a8de4d47d1ea0f Issue-ID: SO-517 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
2018-03-22added openpojo tests for service instance beansBenjamin, Max (mb388a)20-622/+724
Change-Id: I97db02310eace781b41b1463239a519a7a167a12 Issue-ID: SO-513 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
2018-03-21added custom validators for use with openpojoBenjamin, Max (mb388a)7-0/+513
Change-Id: I7c9fdeb6bccddb1b7ec6bf845351731c3043aafa Issue-ID: SO-510 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
2018-03-21Sonar BlockerSP005016381-13/+11
Use try-with-resources or close in a finally clause MsoLogger.java:993,994,1005 Sonar Link: https://sonar.onap.org/issues?assignees=swapnalipode&resolved=false Location: common/src/main/java/org/openecomp/mso/logger/MsoLogger.java Change-Id: I9a1e5b39f2c25ace3febc65fca1104358acaa7b7 Issue-ID: SO-508 Signed-off-by: SP00501638 <SP00501638@techmahindra.com>
2018-03-19CII badging issue resolutionManamohan Satapathy2-5/+16
PASSWORD detected in this expression review this potentially hardcoded credential RestClientSSL.java:L41 Location:https://sonar.onap.org/issues?myIssues=true&open=AWIklWurRGy6eclHDh62&resolved=false&rules=squid%3AS2068&severities=CRITICAL Change-Id: I6c80f04c0965711e836f0ff1ee5dcdfd2725fb62 Issue-ID: SO-478 Signed-off-by: Manamohan Satapathy <MS00534989@techmahindra.com>
2018-03-14AT&T 1712 and 1802 release codeRob Daugherty172-1/+12924
This is code from AT&T's 1712 and 1802 releases. Change-Id: Ie1e85851e94bc66c4d9514a0226c221939531a04 Issue-ID: SO-425 Signed-off-by: Rob Daugherty <rd472p@att.com>
2018-03-13Merge "Remove trailing spaces from property files"Seshu Kumar M5-134/+134
2018-03-09Remove unnecessary simicolon from all java classesMunir Ahmad2-6/+6
Change-Id: I5a320c606ea3e0c47efa6d84e8b0cc1ab40f3b70 Issue-ID: SO-437 Signed-off-by: Munir Ahmad <munir.ahmad@bell.ca>
2018-03-09private is redundant for enum constructorsMunir Ahmad1-2/+2
Change-Id: I3fbd868e83651111a6bce6c268ed4d7cf84c3fd5 Issue-ID: SO-437 Signed-off-by: Munir Ahmad <munir.ahmad@bell.ca>
2018-03-09Remove trailing spaces from property filesMunir Ahmad5-134/+134
Change-Id: I2b7fdfb8121eaddcb618af2117f534c27766feee Issue-ID: SO-437 Signed-off-by: Munir Ahmad <munir.ahmad@bell.ca>