summaryrefslogtreecommitdiffstats
path: root/bpmn/so-bpmn-infrastructure-common/src/main/groovy
AgeCommit message (Collapse)AuthorFilesLines
2019-03-29Refactored SDNCAdapterUtils (groovy)Witold Ficio Kopel26-32/+32
Standardized usage of MsoUtils class in all methods of SDNCAdapterUtils. Removed AbstractServiceTaskProcessor from constructor parameter. Change-Id: I45263aefc980163a927d8a6dce886e299691e025 Issue-ID: SO-1700 Signed-off-by: Witold Ficio Kopel <w.kopel@samsung.com>
2019-03-26Eliminated printStackTrace() callsWitold Ficio Kopel9-33/+23
Eliminated calls to printStackTrace() on Throwable as they go to stdout and are not handled by logger. Occurences has been replaced by calls to logger or modifications to nearby logger calls (Throwable passed as last parameter). Occurences in unit test classes left without modification. Change-Id: I6a771d60a3ea69ceecc29bb21358e565aa5ce101 Issue-ID: LOG-631 Signed-off-by: Witold Ficio Kopel <w.kopel@samsung.com>
2019-03-20Merge "Add cloudOwner to VNF adapter call"Steve Smokowski9-0/+38
2019-03-19Add cloudOwner to VNF adapter callEric Multanen9-0/+38
The BPMN layer has the CloudRegion which includes the CloudOwner attribute, but this is not passed to the VNF adapter layer. Calls to the Multicloud infrastructure workload need the CloudOwner as well. This patch adds CloudOwner to the VNF adapter API. While the intended usage is primarily for the multicloud adapter, it touches a log of other files - though those do not make use of it at this point. Change-Id: I88028096fbd84fc3fe5d53786c70b3c8806bb711 Issue-ID: SO-1447 Signed-off-by: Eric Multanen <eric.w.multanen@intel.com>
2019-03-19Removed logXXX() methods from MsoUtilsWitold Ficio Kopel5-7/+0
Following methods has been removed from MsoUtils (.groovy) class: logContext(requestId, serviceInstanceId) logMetrics(elapsedTime, logtxt) logAudit(logtxt) as no longer required. Remaining uses of them in other groovy clases has been deleted/replaced by apropriate use of logback. Change-Id: I473f01b65c67e90667311cff3b2a671e719f7258 Issue-ID: LOG-631 Signed-off-by: Witold Ficio Kopel <w.kopel@samsung.com>
2019-03-18Removed MsoLogger classr.bogacki45-306/+246
Bye bye MsoLogger class. Extracted constants to separated classes. Fixed imports. Change-Id: I7c8e0527e7dbd097d3ea93b9dab279354652da47 Issue-ID: LOG-631 Signed-off-by: Robert Bogacki <r.bogacki@samsung.com>
2019-03-14Cleaned up content of MsoLoggerr.bogacki43-346/+365
Cleaned java and groovy code from 'getServiceName' method in MsoLogger. Change-Id: I23c3fc8005db5f89e94b87271bb60b7bcce72064 Issue-ID: LOG-631 Signed-off-by: Robert Bogacki <r.bogacki@samsung.com>
2019-03-13Merge "Removed MsoLogger from UUIDChecker"Steve Smokowski1-1/+1
2019-03-13Run groovy bpmn/vcpe testsk.kazak1-0/+1
Fixed groovy tests in bpmn/vcpe/scripts to be runnable Added them to build Reformatted the code and removed unnecessary imports Change-Id: Id85c88bee666fc7f513042e0a4e83f337ab2765c Issue-ID: SO-1649 Signed-off-by: k.kazak <k.kazak@samsung.com>
2019-03-13Removed MsoLogger from UUIDCheckerr.bogacki1-1/+1
Cleaned UUIDChecker from MsoLogger. Fixed imports. Change-Id: Ieecea2fcd08025f950025f3bf8a679dee1626a25 Issue-ID: LOG-631 Signed-off-by: Robert Bogacki <r.bogacki@samsung.com>
2019-03-12Remove MsoLogger form BPMN infrastructure scriptsk.kazak76-3375/+3873
Replaced MsoLogger with plain slf4j. Refactored loging output. Fixed imports. Replaced utils.log() with respective logger calls. Change-Id: I1154682f58206d6e97ae605f4eb9ba8ef8a10e1f Issue-ID: LOG-631 Signed-off-by: Witold Ficio Kopel <w.kopel@samsung.com> Signed-off-by: k.kazak <k.kazak@samsung.com>
2019-03-08Remove MsoLogger from BPMN VCPE scriptsFicio8-456/+508
Replaced MsoLogger with plain slf4j. Refactored login output. Fixed imports. Replaced utils.log() with respective logger calls. Issue-ID: LOG-631 Signed-off-by: Witold Kopel <w.kopel@samsung.com> Change-Id: I7c0f0e4a6b46e9e99f58e7c287b19bb93abc8677
2019-03-01Implement a separate task to query CatalogDB forBenjamin, Max (mb388a)1-19/+1
Restore script value for the script task Implement a separate task to query CatalogDB for CloudSite info for CM flows. Change-Id: Id9dc4da9a7d50b50b691f30a8e0a5ce68eec1739 Issue-ID: SO-1586 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
2019-01-28Merge 'origin/casablanca' into masterBenjamin, Max (mb388a)10-44/+171
Issue-ID: SO-1435 Change-Id: If065ef5c91e769452fd6701fa6c28a23b4bdf2b2 Signed-off-by: Smokowski, Steve (ss835w) <ss835w@us.att.com>
2019-01-24Fix typosubhash kumar singh1-2/+2
Fix typo for typo in method name. Change-Id: I8dde10a5e161ad376469ff1bdc4d649d7fa89c02 Issue-ID: SO-1422 Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
2019-01-21Bug fixes from AT&T January 20thBenjamin, Max (mb388a)1-1/+2
sorted vfmodules by base last for negative action reqs store Response in execution as String on network delete added functionality to skip rollback based on flag # Conflicts: # bpmn/so-bpmn-tasks/src/main/java/org/onap/so/bpmn/infrastructure/workflo w/tasks/WorkflowAction.java require XML in the header for delete network request Update APP-C LCM Client library version to 1.7.0. replaced wiremock style test with mockito test Handle AAIClient Exps in CreateCustomerV1 getServiceInstance() changed default status code to be configurable Replace vnfType by nfRole in the healthcheck request to SDNO. updated error messages in sdnc handler and flow status updated flow status message on completion of flow Send GenericVnf object for AAI VNF update for vnf-api updates Add a JUnit test file for SDNOValidatorImpl.java Set nodeType on the inner SDNO request as per update from SDNO. updated rollbackToAssigned logic to remove unassign flows updated sdnc handler error message for client error added exception handling for httpclienterror in sdnc out map workflow exception so error is reported throws sdnc error message on bad response from sdnc add catalog entries for TRANSPORT service delete flows change script number that was duplicate add find method to NorthBoundRequestRepository include serviceType in hash code use asterisk for all non-TRANSPORT flow db entries alacart true, rm not needed transport srvc model steps correct insert query syntax for orchestration_flow support serviceType (TRANSPORT) process flow fix SDNCAdapterException causing no callback to bpmn use JsonAlias for alternate case when deserializing GRM client will accept both "serviceEndPointList" and "ServiceEndPointList" root node in the JSON response. AAIRestClient now uses getSystemName in headers finishtime should not be returned in requeststatus Change-Id: I81a185252b057020f7f36f125c85c3357756da88 Issue-ID: SO-1403 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
2019-01-15remove unused uuid parameterLukasz Muszkieta5-20/+10
Change-Id: I07793ddafdb8c23ff62ce282c413585c495751ab Issue-ID: SO-729 Signed-off-by: Lukasz Muszkieta <lukasz.muszkieta@nokia.com>
2019-01-11explicitly type defs and strings for templatesBenjamin, Max (mb388a)2-2/+2
explicitly type defs and strings for templates Change-Id: If4af5b0cdf086cd0d30277d1e835e2aa7c8e7f9c Issue-ID: SO-1386 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
2019-01-04Bugfixes for December 2018Benjamin, Max (mb388a)2-27/+19
Changed the way that the cidr is constructed in network utils. added in the if statement to check if selflink already exists removed execution line that was not needed in pull added service instance id to workflowResourceIds for virtualLinkKey network flows wrote test for updating request to complete in db workflow action directly updates db instead of using mso complete process Increase max timeout for SDNO Health Checks dmaap. Added execution variable and corrected type and way data is retrieved to fix defect fixed retry status message in request db for #/5 updated workflowActionBBTasks for flow status message updated flow status to failed on a workflowaction fail Removed slashes and fixed rollbackStatusMessage Updated requestStatus logic for adding status messages Added junit test to validate casue of a defect and cleaned up code and logging added end timestamp to request db on complete request fixed l3Network update of orchestation status in DoUpdateNetworkInstance groovy as well fixed update of l3network orchestration status Add explicit resetting of heatStackId in A&AI to DeleteVfModule and DeleteVolumeGroup BBs. Preserve heatStackId setting in the copiedVfModule when updating the VF Module in A&AI. added functionality to skip rollback based on flag Update snapshot version for logging, add headers fixed optional of error in retrieveErrorMessage method Set heatStackId to null if we want to remove it in A&AI. added in a warn logger statement to keep track of field map network technology from l3network instead of model info for network adapter object mapper Force heatStackId value to empty on an attempt to set it to null on update updated common pom to use aai schema version 1.4.1 removed handle sync error from SDNCHandler bpmn flow Change-Id: I1bd7aa55b06d4e439000b216165c9daafeacc9a4 Issue-ID: SO-1361 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
2019-01-04HttpClientFactory to create HttpClient instancesMichal Kabaj9-48/+36
-Replace constructor calls with existing factory -Add create methods to factory for each required Media Type Change-Id: Ibd03c10230c87a0413c0ec529e0ea9ac800444f9 Issue-ID: SO-1344 Signed-off-by: Michal Kabaj <michal.kabaj@nokia.com>
2018-12-28Merge "Enable use of resource order and input" into casablancaSeshu Kumar M1-1/+1
2018-12-28Merge "Update logging to msoLogger" into casablancaSeshu Kumar M3-189/+92
2018-12-27Update logging to msoLoggersubhash kumar singh3-189/+92
Update logging to msoLogger. Change-Id: I24f09f372d4d5c7572ba37fcb5aee1e39b4992fe Issue-ID: SO-1330 Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
2018-12-26Update logging to msoLoggersubhash kumar singh3-189/+92
Update logging to msoLogger. Change-Id: I24f09f372d4d5c7572ba37fcb5aee1e39b4992fe Issue-ID: SO-1330 Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
2018-12-24Enable use of resource order and inputsubhash kumar singh1-1/+1
Enable use of resource order and input. Change-Id: I4d5b29997068447fc1bc657a6e5ae067d3b43496 Issue-ID: SO-1248 Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
2018-12-17Merge "Bug fix for getInstnaceId"Steve Smokowski1-7/+7
2018-12-15Bug fix for getInstnaceId黄卓垚101122151-8/+8
CreateSDNCNetworkResource.afterCreateSDNCCall can't get instance id from getInstnaceId in afterCreateSDNCCall for modelName default case is missing Issue-ID: SO-1331 Change-Id: Ic9dab916cc17f0175c42f915d5acf4f817a4321c Signed-off-by: Zhuoyao Huang <10112215@zte.com.cn>
2018-12-15Bug fix for getInstnaceIdZhuoyao Huang1-7/+7
CreateSDNCNetworkResource.afterCreateSDNCCall can't get instance id from getInstnaceId for modelName default case is missing Issue-ID: SO-1331 Change-Id: Ia5eb03131a3137e5eede83a97d5b464e66bd2055 Signed-off-by: Zhuoyao Huang <10112215@zte.com.cn>
2018-12-13Add junit tests for CatalogDBUtilsLukasz Muszkieta11-93/+26
Change-Id: I1ea3e92b6dcb3fbca837513e11451be47d8c488b Issue-ID: SO-784 Signed-off-by: Lukasz Muszkieta <lukasz.muszkieta@nokia.com>
2018-12-12Merge "use config value instead hard code of url"Seshu Kumar M1-3/+2
2018-12-12Merge "vfc adapter authentication bug fix"Steve Smokowski3-51/+105
2018-12-12Merge "response from aai is now volumeGroups"Steve Smokowski1-3/+5
2018-12-11response from aai is now volumeGroupsKalkere Ramesh, Sharan (sk720x)1-3/+5
AAI Client response is now expected to be VfModules Change-Id: I13be95496fc711656036dab6c7452638a19139bf Issue-ID: SO-1327 Signed-off-by: Kalkere Ramesh, Sharan (sk720x) <sk720x@att.com>
2018-12-10Added quriedVolumeGroupId to createvfModuleKalkere Ramesh, Sharan (sk720x)1-0/+1
Added quriedVolumeGroupId to create Change-Id: Ife1ad6b3f96918b9d96b52ea509a85ecada5c74d Issue-ID: SO-1314 Signed-off-by: Kalkere Ramesh, Sharan (sk720x) <sk720x@att.com>
2018-12-10object type is l3network in docreatenetworkKalkere Ramesh, Sharan (sk720x)1-1/+1
Change-Id: I2d020e89a8411ccfa067e01975945b64598e9159 Issue-ID: SO-1312 Signed-off-by: Kalkere Ramesh, Sharan (sk720x) <sk720x@att.com>
2018-12-10Merge "Add unit tests for ExternalAPIUtil"Rob Daugherty2-7/+10
2018-12-05use config value instead hard code of urlYulian Han1-3/+2
Change-Id: Idaa55084f5ecb0dd3636c232cebc14fa5f064411 Issue-ID: SO-1249 Signed-off-by: Yulian Han <elaine.hanyulian@huawei.com>
2018-11-30Merge "Fix alacarte homing flows" into casablancaSeshu Kumar M2-7/+74
2018-11-30Fix alacarte homing flowsMarcus G K Williams2-7/+74
This fix adds homingInstance bean and stores homing info in the database. It then retreves that info when homing ala carte and populates homingSiteId and oofDirectives. SO-1254 Issue-ID: SO-1258 Change-Id: I6f8d5d3aff9ebeb669064a02926c779886dc59dd Signed-off-by: Marcus G K Williams <marcus.williams@intel.com>
2018-11-29vfc adapter authentication bug fixYulian Han3-51/+105
update OperationStatus Based On ResourceStatus add Authorization header to get csar from db Change-Id: Idaa55084f5ecb0dd3636c232cebc14fa5f064414 Issue-ID: SO-1256 Signed-off-by: Yulian Han <elaine.hanyulian@huawei.com>
2018-11-29vfc adapter authentication bug fixYulian Han3-149/+124
Change-Id: Idaa55084f5ecb0dd3636c232cebc14fa5f064414 Issue-ID: SO-1256 Signed-off-by: Yulian Han <elaine.hanyulian@huawei.com>
2018-11-27Merge "remove unused parameter in methods"Rob Daugherty6-24/+12
2018-11-27Merge "Fix retrieval of resourceInputObj in delete e2e"Chuanyu Chen2-5/+5
2018-11-27use config value instead hard code of urlYulian Han3-44/+152
Change-Id: Idaa55084f5ecb0dd3636c232cebc14fa5f064412 Issue-ID: SO-1249 Signed-off-by: Yulian Han <elaine.hanyulian@huawei.com>
2018-11-25Fix intgration issue for E2E servicesubhash kumar singh2-15/+11
Fix intgration issue for E2E service. Change-Id: I1b701f137ebc79addfb6914c7c68ac8c73f673d4 Issue-ID: SO-1252 Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
2018-11-24use config value instead hard code of urlYulian Han2-11/+25
Change-Id: Idaa55084f5ecb0dd3636c232cebc14fa5f064411 Issue-ID: SO-1249 Signed-off-by: Yulian Han <elaine.hanyulian@huawei.com>
2018-11-21Add unit tests for ExternalAPIUtilMichal Kabaj2-7/+10
-Add unit tests for ExternalAPIUtil -Add dependency injection via constructor -Add factory for creating ExternalAPIUtil and RESTClient Change-Id: Ied89afa3612de8d51424c95239341a57387ad94f Issue-ID: SO-1195 Signed-off-by: Michal Kabaj <michal.kabaj@nokia.com>
2018-11-20remove unused parameter in methodsLukasz Muszkieta6-24/+12
Change-Id: I444b7b88833c9e6db472c7c531346ff284d4e722 Issue-ID: SO-729 Signed-off-by: Lukasz Muszkieta <lukasz.muszkieta@nokia.com>
2018-11-20Fix retrieval of resourceInputObj in delete e2esubhash kumar singh2-5/+5
Fix retrieval of resourceInputObj in delete e2e. Change-Id: I2e46942e3a6d932d76a420c2c9ee67759579e230 Issue-ID: SO-689 Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com> (cherry picked from commit 11820589a04c67e0ca584a719041835ffe92b0af)
2018-11-20Fix namespace for requestdb updatesubhash kumar singh8-10/+10
Fix namespace for requestdb update. Change-Id: Ib13384e669100ff6db837819a1ba025300d66f0c Issue-ID: SO-689 Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com> (cherry picked from commit ffce4c64a808efa9f979aadac578f2dad511195e)