aboutsummaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/test
AgeCommit message (Collapse)AuthorFilesLines
2019-09-09Adding feature: Replace vfmoduleEinat Vinouze6-102/+146
Issue-ID: VID-603 Change-Id: I59068a0979d6fb733e4243c8f78921f396dc9d17 Signed-off-by: Einat Vinouze <einat.vinouze@intl.att.com> Signed-off-by: Amichai Hemli <amichai.hemli@intl.att.com> Signed-off-by: Ittay Stern <ittay.stern@att.com>
2019-09-08send different request id on each mso callEylon Malin2-25/+85
Don't use static headers for ECOMP_REQUEST_ID and ONAP_REQUEST_ID but getting them from request / generate them each time Issue-ID: VID-378 Signed-off-by: Eylon Malin <eylon.malin@intl.att.com> Change-Id: I1be4e8e86195901975d613694acf0082cd555886 Signed-off-by: Eylon Malin <eylon.malin@intl.att.com>
2019-09-05send X-ONAP-RequestID header from MSO clientEylon Malin1-1/+6
Issue-ID: VID-378 Signed-off-by: Eylon Malin <eylon.malin@intl.att.com> Change-Id: Icf215cf8b9711a63561740b22c035595f5281f58 Signed-off-by: Eylon Malin <eylon.malin@intl.att.com>
2019-09-04Merge "add missing test annotation"Ittay Stern1-5/+7
2019-09-04Merge "add AAIServiceTreeIntegrativeTest"Ittay Stern1-0/+454
2019-09-04add missing test annotationEylon Malin1-5/+7
to test extractPortMirroringConfigData_ givenAaiResponseWithoutRegionIdName_yieldException Issue-ID: VID-378 Signed-off-by: Eylon Malin <eylon.malin@intl.att.com> Change-Id: I5ae29bc427b1b0d6a832b10b52102364e789e5ae
2019-09-04Merge "fix getDeactivateAndCloudDeletePath test"Ittay Stern1-10/+4
2019-09-04add AAIServiceTreeIntegrativeTestEylon Malin1-0/+454
Issue-ID: VID-378 Signed-off-by: Eylon Malin <eylon.malin@intl.att.com> Change-Id: Ibebd83ad0359612ab03934da743fda64a9833b66 Signed-off-by: Eylon Malin <eylon.malin@intl.att.com>
2019-09-04Merge "Add UT to ToscaParserImpl"Ittay Stern1-0/+13
2019-09-03fix getDeactivateAndCloudDeletePath testEylon Malin1-10/+4
Use hard coded in test instead of same logic of production code Issue-ID: VID-378 Signed-off-by: Eylon Malin <eylon.malin@intl.att.com> Change-Id: I967432e5e35fde7661fc2145ac3815a4b0a05318
2019-09-03Add UT to ToscaParserImplSara Weiss1-0/+13
Issue-ID: VID-378 Signed-off-by: Sara Weiss <sara.weiss@intl.att.com> Change-Id: If2cf3bd2171b7935702008f7a16fbea1b8523a35
2019-09-02remove not used feature RoleGeneratorEylon Malin2-220/+0
Issue-ID: VID-378 Signed-off-by: Eylon Malin <eylon.malin@intl.att.com> Change-Id: I0eea2c7305f6faabcb1e54a7f4dd9f51fe37586f
2019-09-02improve test to verify also serializationEylon Malin2-38/+10
Issue-ID: VID-378 Signed-off-by: Eylon Malin <eylon.malin@intl.att.com> Change-Id: Iaff42459fc9bd7d843b21af6d710afc9a194680c
2019-09-02add UT for MsoController.testActivateFabricConfigurationEylon Malin1-1/+37
Issue-ID: VID-378 Signed-off-by: Eylon Malin <eylon.malin@intl.att.com> Change-Id: Iddecbfef0378a559a34501e15911b350ec0766a0
2019-09-02Revert "add some UT for MsoBusinessLogicImpl"Eylon Malin1-65/+0
This reverts commit b2805ebd910ecf9cc49597a52bd8f6e6b18f1d31 Reason for revert: duplicated tests. These scenarios already covered by another methods in this class. Issue-ID: VID-378 Signed-off-by: Eylon Malin <eylon.malin@intl.att.com> Change-Id: I645b770d853dc39947222de5b8332d3e9fd23087
2019-09-01Merge "add some UT for MsoBusinessLogicImpl"Ittay Stern1-0/+65
2019-09-01Fix "old-csars" test: csarWithVnfWithVfModuleInModelEylon Malin6-13/+12
Issue-ID: VID-378 Change-Id: Icde5058772379f2d48477c05c986f4fe8a30f446 Signed-off-by: Eylon Malin <eylon.malin@intl.att.com> Signed-off-by: Ittay Stern <ittay.stern@att.com>
2019-09-01add some UT for MsoBusinessLogicImplEylon Malin1-0/+65
Add UT for: deleteSvcInstance, deleteVnf, deleteVfModule Issue-ID: VID-378 Signed-off-by: Eylon Malin <eylon.malin@intl.att.com> Change-Id: I838c69ae4d0209fe8d62ada98e06dcc1817a4d88
2019-09-01add UT for NCF modelEylon Malin1-0/+63
Issue-ID: VID-378 Signed-off-by: Eylon Malin <eylon.malin@intl.att.com> Change-Id: I4f9eaa8a12770d7afb9b51633e70ff799f670b70
2019-09-01add getNewestModelVersionByInvariant to controller and serviceEylon Malin2-0/+116
Also add testGetActiveNetworkList UT Issue-ID: VID-378 Signed-off-by: Eylon Malin <eylon.malin@intl.att.com> Change-Id: I97c2ae029272aba915d5f9699bccff0eb9d49329 Signed-off-by: Eylon Malin <eylon.malin@intl.att.com>
2019-09-01handle non OK response from SDC while getting modelEylon Malin5-28/+128
Issue-ID: VID-378 Signed-off-by: Eylon Malin <eylon.malin@intl.att.com> Change-Id: Idc6e587abb24fbec65ed159db7008e50abee2581
2019-08-29add ut getServiceToscaModel rethrow ExceptionEylon Malin1-20/+67
Issue-ID: VID-378 Signed-off-by: Eylon Malin <eylon.malin@intl.att.com> Change-Id: Ia8a649a281cbc687bbec4f25e6bd67e1681276bc
2019-08-29edit of macro services in new view edit screenEylon Malin1-80/+57
Fix Vid Notion Builder behavior according - all macro non transport services should open the new view edit screen Issue-ID: VID-378 Signed-off-by: Eylon Malin <eylon.malin@intl.att.com> Change-Id: Icd45fcbfcb4bf8928f44f73fb3ddd84ac1f1d341
2019-08-29add UT to ToscaParserImpl and fix little bugEylon Malin6-37/+169
Issue-ID: VID-378 Signed-off-by: Eylon Malin <eylon.malin@intl.att.com> Change-Id: I5ea0f09c2898c3a7e1db60d37dde754138a86121 Signed-off-by: Eylon Malin <eylon.malin@intl.att.com>
2019-08-29add AAITreeNodeUtilsTestEylon Malin1-0/+166
Issue-ID: VID-378 Signed-off-by: Eylon Malin <eylon.malin@intl.att.com> Change-Id: I74dc26492196c4907e1aae208944c412869eef4e Signed-off-by: Eylon Malin <eylon.malin@intl.att.com>
2019-08-29fix url and payload for getting latest modelEylon Malin1-0/+72
Issue-ID: VID-378 Signed-off-by: Eylon Malin <eylon.malin@intl.att.com> Change-Id: I5b2dc7df0202838898ab060a71c144f69a54900f
2019-08-26Log request-id even when no HttpServletRequest param or no user-sessionIttay Stern1-43/+0
1. Catch controllers under org.onap.vid.controller.open. 2. Get HttpServletRequest from Spring's context, if needed. 3. Fix the way SetRequestBasedDefaultsIntoGlobalLoggingContext is used. Change-Id: Iecd46dc10a458bc20d4b3e0bd72ecae37e3218cf Issue-ID: VID-598 Signed-off-by: Ittay Stern <ittay.stern@att.com>
2019-08-26Merge "AaiController tests"Wojciech Sliwka1-38/+193
2019-08-26AaiController testsMichal Kabaj1-38/+193
- improved existing testcases by including spring integration - added new testcases Change-Id: I64abbd91b9c9fc7cdc27ca25f90954b29f065096 Issue-ID: VID-478 Signed-off-by: Michal Kabaj <michal.kabaj@nokia.com>
2019-08-22extract constant in MsoBusinessLogicImplTestEylon Malin1-6/+7
Issue-ID: VID-378 Signed-off-by: Eylon Malin <eylon.malin@intl.att.com> Change-Id: I49a50f0762b2db8bcab06340a6407a0ee7970c86
2019-08-22Merge "make scheduler client tolerance to error messages"Amichai Hemli2-3/+3
2019-08-22make scheduler client tolerance to error messagesEylon Malin2-3/+3
Read response from scheduler as String save them as raw, and only then parse them Issue-ID: VID-378 Signed-off-by: Eylon Malin <eylon.malin@intl.att.com> Change-Id: I38ed8f211b2c111b57741254cb5e90317fefdc7d Signed-off-by: Eylon Malin <eylon.malin@intl.att.com>
2019-08-22Merge "probe mso by retrieving empty list of request status"Amichai Hemli3-55/+223
2019-08-22probe mso by retrieving empty list of request statusEylon Malin3-55/+223
Mso probe component use getRawOrchestrationRequestsByFilter which return HttpResponseWithRequestInfo Issue-ID: VID-378 Signed-off-by: Eylon Malin <eylon.malin@intl.att.com> Change-Id: Icee95af8dbe26296e9fc110170fb758e5133984c Signed-off-by: Eylon Malin <eylon.malin@intl.att.com>
2019-08-22Add MsoController deletion testskurczews1-0/+202
Change-Id: I534fb06e7bf742f2fe6931e5b6f279f499aeed08 Issue-ID: VID-470 Signed-off-by: kurczews <krzysztof.kurczewski@nokia.com>
2019-08-21probe sdc by retrieving service model if uuid configuredEylon Malin3-4/+384
If system.properties has value for probe.sdc.model.uuid then usd this value for retrieving service model otherwise probe only sdc connectivity with sdc2/rest/healthCheck Issue-ID: VID-378 Signed-off-by: Eylon Malin <eylon.malin@intl.att.com> Change-Id: Icd1c31217e56a8c0cfa5c2f2bc5f11e0c8dd7ff8 Signed-off-by: Eylon Malin <eylon.malin@intl.att.com>
2019-08-07use epsdk 2.5.0 in VIDEylon Malin1-11/+0
Issue-ID: VID-378 Signed-off-by: Eylon Malin <eylon.malin@intl.att.com> Change-Id: Id483174b283a5f1eb6160982a446ccb223606c9e
2019-08-07Merge "removing unused ViewLog Controller and jsp"Ittay Stern1-33/+0
2019-08-07removing unused ViewLog Controller and jspEylon Malin1-33/+0
Issue-ID: VID-378 Signed-off-by: Eylon Malin <eylon.malin@intl.att.com> Change-Id: I7d5cdd0091e2c67adc617894386a58a89046880e
2019-08-07fix getNetworkListTest UTEylon Malin2-0/+301
Issue-ID: VID-378 Signed-off-by: Eylon Malin <eylon.malin@intl.att.com> Change-Id: Id28c5b3062f45c217f0bfc93e6d2a7c6333d15c4
2019-08-06use cache for retrieving all subscribers listEylon Malin5-41/+29
Issue-ID: VID-378 Signed-off-by: Eylon Malin <eylon.malin@intl.att.com> Change-Id: I73fcc78ebbd8ee01349ecefa924c20014ca33907
2019-08-06handle errors in change management and tenant isolationEylon Malin1-8/+8
use more tolerance way for parsing responses from MSO so VID can handle error responses with html body Issue-ID: VID-378 Signed-off-by: Eylon Malin <eylon.malin@intl.att.com> Change-Id: I72741ec1bf636a1200e8ecbd684ab1f3b2ab332a Signed-off-by: Ittay Stern <ittay.stern@att.com> Signed-off-by: Eylon Malin <eylon.malin@intl.att.com>
2019-08-04Remove web-filter for incoming scheduler requestsEylon Malin1-111/+0
authentication can be handled in a different way like using AAF (see 48b0c6ee) Issue-ID: VID-378 Signed-off-by: Eylon Malin <eylon.malin@intl.att.com> Change-Id: I68c664bc6a20ce4d8722558e00985b7638fed04b
2019-07-31Handle A&AI Service-Tree and add testsIttay Stern10-90/+1601
Issue-ID: VID-378 Change-Id: Id1b86b77732768f9b497e2fcd29ee1665381ac57 Signed-off-by: Ittay Stern <ittay.stern@att.com>
2019-07-31Fix /version endpointIttay Stern4-52/+139
* Modify maven-replacer-plugin to set value in version.json * Configure features.set.filename=onap.features.properties Issue-ID: VID-507 Change-Id: I692ab3e9221118b836ae7249f483b5277a70bf6b Signed-off-by: Ittay Stern <ittay.stern@att.com>
2019-07-30Take 'contact us' url from configurationRina Roi1-0/+1
Issue-ID: VID-541 Signed-off-by: Rina Roi <rina.roi@intl.att.com> Change-Id: Ia7d829c20a8689f7aab737ea83ed420b6c3448a3
2019-07-30Implant vid-app-common org.onap.vid.job (main and test)Einat Vinouze126-2964/+8868
Issue-ID: VID-378 Change-Id: I41b0bdc2c4e3635f3f3319b1cd63cefc61912dfc Signed-off-by: Einat Vinouze <einat.vinouze@intl.att.com> Signed-off-by: Ittay Stern <ittay.stern@att.com>
2019-07-29Remove restricted notice from TOSCA fileIttay Stern1-8/+8
Issue-ID: VID-499 Change-Id: Ib63c2cec9b29530461ad1ef2313f80548697b1f6 Signed-off-by: Ittay Stern <ittay.stern@att.com>
2019-07-25Don't double-wrap RequestDetails for (de)activateFabricConfigurationIttay Stern2-3/+3
Issue-ID: VID-267 Change-Id: I215bf008442b3bdfd4e80c1ba23e6a86e9d6f52b Signed-off-by: Ittay Stern <ittay.stern@att.com>
2019-07-22Merge "Allow full-path to certificate and remove implicit Optional::toString"Wojciech Sliwka1-0/+31