summaryrefslogtreecommitdiffstats
path: root/mso-api-handlers/mso-api-handler-infra/src/test/java
AgeCommit message (Collapse)AuthorFilesLines
2020-04-09Add workflowName and operationName to v8 ofKuleshov, Elena2-0/+90
Add workflowName and operationName to v8 of orchestrationRequests response. Fix typo in the schema for infra_active_requests. Change version matching for the new interface fields. Issue-ID: SO-2799 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: Icc7f3c6271023a578df2c1d969c807a578cc9577 (cherry picked from commit 654db79e01a20632cf1d7c3c6a786160aaa82eed)
2020-04-01fix for getpnfworkflows urltragait1-1/+1
Issue-ID: SO-2756 Signed-off-by: tragait <rahul.tyagi@est.tech> Change-Id: I999d590dd76090a7aaabc84ad49030f24453485f Signed-off-by: tragait <rahul.tyagi@est.tech> (cherry picked from commit f9fc50fee216aea657b9686aa6b8ef37236e719e)
2020-03-18Correct object provider for jerseyBenjamin, Max1-0/+84
Initial setup of aai test for unknown property error updated mapper provider in AAI Client added back support for cxf clients updated aai-schema version to a release version formatted file that was missed moved provider register calls together Issue-ID: SO-2750 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: I0bf694f39bbab9bcbabd85bb30fb9dbf23f00520
2020-03-12Added check to prevent camunda history lookup onPlummer, Brittany1-0/+53
Added check to prevent camunda history lookup on older requests Issue-ID: SO-2726 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: Ie8513626f942404241c351313a791098a0708db4
2020-03-10Merge "false positive on network creates"Steve Smokowski1-28/+70
2020-03-10Merge "create custom spring aop annotation for logging"Steve Smokowski2-2/+2
2020-03-10Merge "remove requestorid from instancereferences in get"Steve Smokowski1-0/+2
2020-03-08false positive on network createsBoslet, Cory1-28/+70
Added a new resourceStatusMessage field to the GET orch request API added new column to infra active request table updated openstack adapter to record the resource status added support of v8 on GET orch request API. Issue-ID: SO-2718 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: I73b35f1562de4df477bf7e5cef01de13440ba98a
2020-03-05create custom spring aop annotation for loggingPlummer, Brittany2-2/+2
Added annotation for setting up scheduled tasks logs Added new annotation to scheduledTasks Moved annotation setup to logging-library Issue-ID: SO-2713 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: I7080c4bb289e454f14167631e2601c954389c0ef
2020-03-04remove requestorid from instancereferences in getPlummer, Brittany1-0/+2
Removed requestorId from get orchestration response Added assertion to show that requestorId isn't set Issue-ID: SO-2699 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: I9f8b8a7619ef54575ab3ee07eee504a5bd57ab29
2020-03-03Added simpleNotTaskInfo format modifierPlummer, Brittany1-0/+51
Added simpleNotTaskInfo format modifier Issue-ID: SO-2697 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: Ifd0c00800e272165885c4a971a3fe5a9beca5686
2020-02-21mso to add tenant name and product family name toKuleshov, Elena2-0/+71
Add productFamilyName and tenantName to requests DB and request status results. Add more JUnits, fix JUnit schema files. Robot test adjustments to create service object in AAI when needed. Update robot tests to verify presence of productFamilyName and tenantName in return data. Add missing return of retrieved productFamilyName in robot test Add checking of tenantName on return to another robot test. Update archiving of infra requests for tenantName and productFamilyName. Issue-ID: SO-2674 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: I2950b7783ee863dc59360c6124f38bee89cb2140
2020-02-21Merge "SO API extenstion to retrieve all PNF workflow"Seshu Kumar M1-32/+76
2020-02-21use pnfName in custom pnf workflow execution procedureUbuntu1-1/+2
Issue-ID: SO-2071 Signed-off-by: Yaoguang Wang <sunshine.wang@huawei.com> Change-Id: Ia97604b3b3d109d758914c04232256cdb262e121
2020-02-19SO API extenstion to retrieve all PNF workflowtragait1-32/+76
This commit implements SO request handler API onap/so/infra/workflowSpecifications/v[x]/pnfWorkFlows. It is used to get all the pnf workflows exist in catalogdb. Issue-ID: SO-2660 Change-Id: Ieeca8a6afef917b6e3ba927d38ed5509dcaf253c Signed-off-by: tragait <rahul.tyagi@est.tech>
2020-02-18extend query parameter to support pnfModelVersionIdYaoguang Wang1-2/+48
Issue-ID: SO-2559 Signed-off-by: Yaoguang Wang <sunshine.wang@huawei.com> Change-Id: I51cb15f6750b378a9de3435951e3ea1644184a55
2020-02-06optimize camunda process instance historyPlummer, Brittany5-63/+32
Set buinessKey to requestId. Added plugin to pass businessKey to subprocesses Updated process-instance and activity-instance lookups to filter response Removed duplicate tests and updated att history lookup Updated businessKey to be set to mso-request-id Updated snapshot version to fix build issues Removed query param from properties. added uribuilder Updated to use uriBuilder.build().toString() Updated unit tests to lookup by procesInstanceId to fix build failure Issue-ID: SO-2650 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: I357053c52a75ee5149a56392ce866dbb654b541d
2020-01-24add manual handling to rainy day handling for bbsKuleshov, Elena1-1/+1
Initial Manual Handling addition to Rainy Day BB handling. Reenable task API, add task variable setup. TaskTimeout will come from the configuration settings. Update the base path for the APIH manual tasks junit. Additional JUNIT tests for manual handling Add Manual as a primary policy for Change Management BBs. Error handling changes and robot tests for manual handling. Correct failure data retrieval when serviceSubscription is unavailable. Correct failure data retrieval when serviceSubscription is unavailable. Keep WorkflowException when manual pause gets invoked; improved error reporting. Issue-ID: SO-2616 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: I98a84c1a489bb7b24b68e567f604aeb074fd7bf9
2020-01-06Merge "Removed CLIENT_ID from tests that was removed from"Steve Smokowski4-11/+11
2020-01-06Merge "Remove references to AIC"Steve Smokowski4-7/+7
2020-01-03Remove references to AICBhatt, Prema4-7/+7
Removed AIC prefix from java files, wherever column AIC_CLOUD_REGION was referenced. Removed AIC prefix from test data files, wherever column AIC_CLOUD_REGION was referenced. Issue-ID: SO-2572 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: Ib380bc39eedf61fff27daa74132d1df20a3ae4b7
2020-01-01Removed CLIENT_ID from tests that was removed fromPlummer, Brittany4-11/+11
Removed CLIENT_ID from tests that was removed from logging library Fixed formatting and imports on tests Issue-ID: SO-2579 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: If886afdb6cc5154055a7e3821e4a24b4458ed45b
2020-01-02SO API to support custom PNF workflowYulian Han1-0/+28
Change-Id: Idaa55084f5ecb0dd3636c232cebc14fa5f064418 Issue-ID: SO-2071 Signed-off-by: Yulian Han <elaine.hanyulian@huawei.com>
2019-12-18Merge "update so to use 1.6.3 snapshot from the logging"Steve Smokowski3-125/+4
2019-12-16Fix requestId returned in GetPlummer, Brittany1-3/+7
Set requestId to be returned to requestId sent on incoming request Issue-ID: SO-2573 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: I7ac20400f2b5f4dc9abff81b263acef5ad52a2fa
2019-12-16update so to use 1.6.3 snapshot from the loggingPlummer, Brittany3-125/+4
Updated snapshot to 1.6.3 and began fixing failing tests Update SOAPLoggingInInterceptor to use new InvocationID value Changed client and server keys to InvocationID BPRestCallback to use ServerInvocationId Removed logging MDC checking from unit tests Began switching bprestcallback to use resttemplate Removed changes to logback replacing invocationIds Updated logic where requestEntity is created on null message Added unit tests for BPRestCallback Set InvocationID in MDC in SOAPLoggingInInterceptor Send in URI to prevent encoding of URI causing % to change to %25 Updated restTemplate to fix issue with interceptors Issue-ID: SO-2571 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: I7e0d80eae9036c993414ae96ebd571c89cb9dfa9
2019-12-13Merge "add application id support to so"Steve Smokowski1-1/+1
2019-12-12Add simple query format, to limit response contentSmokowski, Steven1-1/+34
Add simple query format, to limit response content Add simple query format, to limit response content Add simple query format, to limit response content Issue-ID: SO-2570 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: I7570828d7c47e0635239dba50d0f7f76bd17f4a8
2019-12-11add application id support to soBonkur, Venkat1-1/+1
add application id support to so api Issue-ID: SO-2561 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: Ifc8c4dd5e178b68347a7df01ab1942a59baca9b0
2019-11-22Merge "vnf and vf module replace requests to make"Steve Smokowski6-31/+260
2019-11-21Updated and added to get request processing dataBoslet, Cory1-0/+42
Updated and added to get request processing data by internal data flag Committing file that I forgot to commit. Added junit test and change method to not use bowman client. Added and updated orch request unit test ran formatter so verify job will pass and not cry Added an intergration test for new jpa method. Format unit test class for the verify job build Update param key in jpa and also changed return type. Updated method name in request client to avoid confusion Issue-ID: SO-2534 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: I420f1a887835dd0d9d0ad991e5b17dddb1db5376
2019-11-20vnf and vf module replace requests to makePlummer, Brittany6-31/+260
Added cloudConfiguration when not sent in replace request Added robot test for vfModule request with no cloud config Started adding unit tests for ServiceInstances Added unit tests for BpmnRequestBuilder changes Added ServiceInstances tests to test replace without CloudConfig Removed unused wiremock stubbings from test Added check for replaceInstanceRetainAssignments action Added action to common package to fix failing robot tests Removed new test, updated existing vfModule replace Added jackson annotations to RequestError object Fixed failing unit tests apih common Issue-ID: SO-2523 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: I9470a0a9c7e356ef98ceb7269e066e79e0afb074
2019-11-07remove unused columns infra active requestsChan, Mercy9-11/+1
Removed unused columns in db across codebase Issue-ID: SO-2516 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: Ieedb61ed371bc3626ef94df0bf88b7a9cf139c82
2019-11-04Merge "Add patch method"Steve Smokowski3-6/+6
2019-11-04Merge "refactor repeated duplicate check code to RequestHandlerUtils"Steve Smokowski1-0/+26
2019-11-04add timeout to apih for the camunda activity checkPlummer, Brittany2-303/+396
Added timeout for camunda history lookups Added error strings to be returned on task information lookup Renamed method for getTaskInformation Removed retry for taskInformation and updated logging for errors Added spring logging interceptors to restTemplate Made timeout and retry timeout configurable Issue-ID: SO-2508 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: Ibd5101fc2e0a933a2f8070077c40b02bbbcfea6f
2019-11-04Add patch methodMnushkin, Dmitry3-6/+6
add patch method to requests db client remove null values from junit mock matching Issue-ID: SO-2506 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: I3d6c0b05943958a9e77557cbf643a90cf5bb556b
2019-10-24refactor repeated duplicate check code to RequestHandlerUtilsPlummer, Brittany1-0/+26
Moved repeated code used when checking for duplicate requests to a new method in RequestHandlerUtils. Issue-ID: SO-2488 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: I523bbb0823f384a458f098c349d8c4b17e782469
2019-09-30Add null check for the InfraActiveRequests lookupBonkur, Venkat2-1/+12
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, Steven2-7/+7
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-10Integrate Logging LibraryPlummer, Brittany5-54/+59
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-08-29added fix for missing Error from SDNC prefixChan, Mercy1-0/+16
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-26Added default value for when ErrorCode is null inBoslet, Cory2-65/+7
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-16Merge "Initial commit of validation framework to APIH"Steve Smokowski2-24/+21
2019-08-16Merge "apih format statusdetail to return granular"Steve Smokowski1-0/+8
2019-08-15Initial commit of validation framework to APIHSmokowski, Steven2-24/+21
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, Brittany1-12/+25
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, Brittany1-0/+8
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-09health check now entirely config basedBenjamin, Max1-123/+59
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-07-30Use generic req mapping for CM requestsElena Kuleshov1-0/+13
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