aboutsummaryrefslogtreecommitdiffstats
path: root/mso-api-handlers
AgeCommit message (Collapse)AuthorFilesLines
2019-10-15Cleaning up unused variables and redundant initializers toOleksandr Moliavko1-14/+2
remove static analyzer warnings Issue-ID: SO-1841 Signed-off-by: Oleksandr Moliavko <o.moliavko@samsung.com> Change-Id: I5dee12e1935c152865963359d0fc869673393aad
2019-09-30Add null check for the InfraActiveRequests lookupBonkur, Venkat3-55/+66
Add null check for the InfraActiveRequests lookup move it into a separate method for InfraActiveRequests lookup Issue-ID: SO-2374 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: I84ff23b4da12719b589d43135a7604a2d4b24fef
2019-09-24Update Resume Logic and Add Workflow ListenersSmokowski, Steven12-620/+735
Updated with the error log messages Changed the code to do string compare for eventName update workflowaction to only persist if not resume Issue-ID: SO-2363 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: I139f2427ae0f0253a15cc51003318686568cb514
2019-09-19update logging to match onap logging libraryPlummer, Brittany1-0/+2
Updated to use changes added to logging library in ONAP Updated RestClient to set mdc rather than extend filter Updated filter removal to include new spring filter Updated to exclude filter causing failure in catdb Excluded filter causing failures in requestdb Updated requestdbatt to exclude filter Updated check for spring filters to fix failing tests Issue-ID: SO-2353 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: Idb081a0f5527690f9dc41c7914a2d721f9022aea
2019-09-17Merge "Remove the declaration of thrown exception ↵Steve Smokowski1-2/+2
'org.onap.so.apihandlerinfra.infra.rest.exception.NoRecipeException', as it cannot be thrown from method's body."
2019-09-10Integrate Logging LibraryPlummer, Brittany9-61/+68
Updated SO to use ONAP provided filters and constants to meet logging standards. Removed redundant classes Updated constant references Issue-ID: SO-2301 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: Ia4e3c2b1a4dcb3881aa34d39885c8b2782880d64
2019-09-10Merge "remove the unused import"Steve Smokowski1-1/+1
2019-09-10Merge "updated all sql files including in tests to use"Steve Smokowski6-12/+12
2019-09-10Upgrade swagger apihandlerinfraArindam Mondal20-145/+324
Issue-ID: SO-2280 Change-Id: If9fb53295ce483b69ff20610da50227062ed5c48 Signed-off-by: arind.mondal <arind.mondal@samsung.com>
2019-09-10General sonar fixesArindam Mondal2-4/+0
+)Format logger ++) Remove toString() +++) Extract nested IF Issue-ID: SO-2226 Change-Id: Iff28408584b04ffd03b6aca0f647d0af9090a9c2 Signed-off-by: arind.mondal <arind.mondal@samsung.com>
2019-09-09updated all sql files including in tests to useChan, Mercy6-12/+12
updated all sql files including in tests to use the correct column name. Updated hibernate mapping to use the correct column name as well. Issue-ID: SO-2297 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: I4a2d3e82a7b182ea1d67d297c0a0d3a35c856255
2019-09-02remove the unused importThugutla sailakshmi1-1/+1
remove the unused import Issue-ID: SO-2174 Change-Id: Idae5e586e08d6b39dcebfccfd5aca5e1c455eb34 Signed-off-by: Thugutla sailakshmi <tsaila10@in.ibm.com>
2019-09-02Remove the declaration of thrown exception ↵Thugutla sailakshmi1-2/+2
'org.onap.so.apihandlerinfra.infra.rest.exception.NoRecipeException', as it cannot be thrown from method's body. remove the exception Issue-ID: SO-2174 Change-Id: Ied64bf5774e3f9ba5d5e640d1f934eb3259e4173 Signed-off-by: Thugutla sailakshmi <tsaila10@in.ibm.com>
2019-08-29added fix for missing Error from SDNC prefixChan, Mercy2-1/+23
added fix for missing Error from SDNC prefix to SDNC callback flow reverted implementation from bpmn-tasks package and moved them to apih side, added junit test renamed error message constant, removed regex check, add error message porefix directly to actual message Issue-ID: SO-2267 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: I440cf9eff12571f576fcc5f2d28d9f2c8130e4b6
2019-08-27Fix issue in mso-api-handler-infraParshad Patel4-45/+50
Either log or rethrow this exception Define a constant instead of duplicating this literal Immediately throw this expression instead of assigning it to the temporary variable Remove the declaration of thrown exception 'org.json.JSONException' which is a runtime exception Issue-ID: SO-1841 Change-Id: I193f21ec2c4214863c8b51faf25fc3561d6be818 Signed-off-by: Parshad Patel <pars.patel@samsung.com>
2019-08-26Added default value for when ErrorCode is null inBoslet, Cory4-130/+9
Added default value for when ErrorCode is null in mdc test to see if 404 log gets enhanced by change. Removed test id from class that was put to test via docker. Removed setting of partner name and tested with using try/catch Reverted change to request uri filter per comments Removed the request filter uri class that rerouted old uri orders Removed request filter from jersey config files Updated junit test that were pointing to the old uri to be failure test corrected formatting issues on ServiceInstancesTest Issue-ID: SO-2259 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: Id8f9daef139a82ee9e934d4d37906ffb7a7aadff
2019-08-21Merge "Javadoc and logging improvement"Seshu Kumar M1-23/+64
2019-08-16Merge "Initial commit of validation framework to APIH"Steve Smokowski16-124/+309
2019-08-16Merge "apih format statusdetail to return granular"Steve Smokowski2-1/+14
2019-08-16Javadoc and logging improvementManamohan1-23/+64
Added Javadocs and logging for these classes. Change-Id: I365fc0677c0d5136e4579de3947d0478b26c22d3 Issue-ID: SO-2052 Signed-off-by: Manamohan <MS00534989@Techmahindra.com>
2019-08-15Initial commit of validation framework to APIHSmokowski, Steven16-124/+309
Move ListenerRunner to common location Adjust request params name, update junit tests Update validations to work properly Properly escape period for the string split Issue-ID: SO-2232 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: Ia468cf7062cccf30e28afeb7a5cddc37ceb2e002
2019-08-15Added check for empty processInstanceListPlummer, Brittany2-13/+26
Added check for empty processInstanceList Issue-ID: SO-2225 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: If4569d94dbda794c9a347e6dc73102acf7664558
2019-08-15apih format statusdetail to return granularPlummer, Brittany2-1/+14
Should return unchanged requestState on statusDetail queryParam Formatted files with changes to fix build Added enum validation for setting requestStatus Updated test to send in "statusDetail" Issue-ID: SO-2230 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: I8f5d79bc287581635a1543a00ddc69fb9eba2295
2019-08-13Merge "Place diamond op in place of type spec"Lukasz Muszkieta1-4/+1
2019-08-13Place diamond op in place of type specsindhu36721-4/+1
Place diamond op in place of type spec MSOCommonBPMN classes Issue-ID: SO-2187 Signed-off-by: sindhu3672 <arcot.sindhuri@huawei.com> Change-Id: I133a9328f5c91c61af24a57a610d36c6d6622f66
2019-08-13Merge "Change variable name-comply with regex"Seshu Kumar M1-2/+2
2019-08-13Merge "Modify variable name-comply with regex"Seshu Kumar M1-2/+2
2019-08-12Merge "Remove repeated conditional test in ​buildServiceErrorResponse"Lukasz Muszkieta1-4/+2
2019-08-12Merge "health check now entirely config based"Steve Smokowski13-338/+459
2019-08-12Merge "All extendable enums should be serializable"Steve Smokowski1-1/+3
2019-08-12Change variable name-comply with regexsindhu36721-2/+2
Change variable name-comply with regex asdc-controller & mso-api-handlers classes Issue-ID: SO-2187 Signed-off-by: sindhu3672 <arcot.sindhuri@huawei.com> Change-Id: I709cbcacc32e57a8b9cf89a963321bfde3b08301
2019-08-12Modify variable name-comply with regexsindhu36721-2/+2
Modify variable name-comply with regex mso api handlers DuplicateRequestException class Issue-ID: SO-2187 Signed-off-by: sindhu3672 <arcot.sindhuri@huawei.com> Change-Id: Ifbd69bffcfce08cc2e9c44817a02f9ddfe28aadc
2019-08-12Change string literal left side-avoid null pointer exsindhu36721-2/+2
Change string literal left side so.adapters.vnfmadapter WebSecurityConfigImpl class Issue-ID: SO-2187 Signed-off-by: sindhu3672 <arcot.sindhuri@huawei.com> Change-Id: I8ba57bd9c3c548a35b90d9324f1d214985c3c539
2019-08-09All extendable enums should be serializableBenjamin, Max (mb388a)1-1/+3
marking items as transient causes them to be lost Issue-ID: SO-2217 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: If66f9034b67f94c8122875ef915043525fb9bdb7
2019-08-09health check now entirely config basedBenjamin, Max13-338/+459
health check now entirely config based api handler now lists itself as an endpoint updated robot test to verify new format fixed formatting issues with modified files updated test case to reflect new statuses fixed duplicate bean issue with converter ignore unit test that never worked added missing class to context configuration removed extraneous spaces from robot file update robot files as well as fix compile issues config format must be correct on startup Issue-ID: SO-2216 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: I86770922c7b7f36e4a4d59615f7336cda7cbe629
2019-08-09Remove repeated conditional test in ​buildServiceErrorResponseArtem Naluzhnyy1-4/+2
Coverity-scan: CID-203826 Issue-ID: SO-2211 Signed-off-by: Artem Naluzhnyy <A.Naluzhnyy@samsung.com> Change-Id: I18d788e361b502e392f7f59ff6bc772dfee394bd
2019-08-08fix sonar issuesarada prasad sahoo5-36/+33
fix sonar issues Issue-ID: SO-1811 Signed-off-by: sarada prasad sahoo <sarada.prasad.sahoo@huawei.com> Change-Id: I137e40866ccbfb634b430ea56028fac87cc6b2bc
2019-08-08fix sonar issuesarada prasad sahoo1-61/+35
fix sonar issues Issue-ID: SO-1811 Signed-off-by: sarada prasad sahoo <sarada.prasad.sahoo@huawei.com> Change-Id: Ia0bb25c9fc10364fddde10d38675540d0c539227
2019-08-08fix sonar issuesarada prasad sahoo1-2/+2
fix sonar issues Issue-ID: SO-1811 Signed-off-by: sarada prasad sahoo <sarada.prasad.sahoo@huawei.com> Change-Id: I79db093a27165fd5d54dfab1c1d25749bf6df533
2019-07-31Updatable to false to prevent setting fk to nullPlummer, Brittany1-1/+1
Updatable to false to prevent setting foreign key to null before delete Issue-ID: SO-2178 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: I9b9f94c0d0b56a61cd8b9c56e80e5a3ec4819a50
2019-07-30Use generic req mapping for CM requestsElena Kuleshov3-1/+35
Do not pass specially preprocessed ServiceRequestParameter to msoToJson mapping for Instance Management requests. Issue-ID: SO-2168 Signed-off-by: Kuleshov, Elena <evn@att.com> Change-Id: Ic6bdd624bd03c7c03213248781dc5e554331feed
2019-07-29apih allowing requests with the same requestidPlummer, Brittany3-26/+102
Updated filters to throw error on duplicate requestId Added message indicating exception will be thrown Added unit tests for requestIdFilters Added access modifier in filter test Updated CloudApiRequests for successful deletion when InfraActiveRequest is deleted Removed changes from CloudApiRequests bean Updated repository to include deleteByRequestId Removed unused import from cloudApiRequests Removed deleteByRequestId from interface Updated to change type of extended jparepository Removed repository added for CloudApiRequests Updated uri check to remove '/' from checked string Updated returned on failing junit test Updated access modifiers for logger and createRequestError Issue-ID: SO-2166 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: Id0cee672567b15e0a3eb1acfbdfb967945494500
2019-07-26Upgrade springboot.version from 2.0.5 to 2.1.5.Sangalang, Felix2-6/+8
Upgrade springboot.version from 2.0.5 to 2.1.5. Fixed APIHandler junit test cases with expected DB error messages. Issue-ID: SO-2157 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: I77ce873018b88268b9221226b95c9c106f93a8d0
2019-07-24Merge "Major Sonar fixes in InstanceManagement"Steve Smokowski1-6/+2
2019-07-24Merge "Removed not used loggers"Steve Smokowski5-20/+10
2019-07-24Merge "Major Sonar fixes in E2EServiceInstances"Steve Smokowski1-18/+15
2019-07-24Merge "enhance get orchestration request"Steve Smokowski15-72/+753
2019-07-24Removed not used loggersr.bogacki5-20/+10
-Removed unnecessary loggers according to Sonar. Issue-ID: SO-2102 Signed-off-by: Robert Bogacki <r.bogacki@samsung.com> Change-Id: I05a0cc3187692fa17a6734d1c2a6be33d4b5ee34
2019-07-24Major Sonar fixes in InstanceManagementr.bogacki1-6/+2
-Removed unnecessary code. -Removed unused variables. Issue-ID: SO-2102 Signed-off-by: Robert Bogacki <r.bogacki@samsung.com> Change-Id: Ie85cb51da959dacc80b61aa9d5bb608b4198a5fb
2019-07-24Major Sonar fixes in E2EServiceInstancesr.bogacki1-18/+15
-Removed unnecessary code. -Removed unused variables. -Introduced constants for repeating Strings. Issue-ID: SO-2102 Signed-off-by: Robert Bogacki <r.bogacki@samsung.com> Change-Id: I4ac692849508178390796d149b2c3f2fddcd093b