aboutsummaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/test/java/org/onap/vid/controller
AgeCommit message (Collapse)AuthorFilesLines
2020-04-01Configure "portal app_password" in DB by environment variableIttay Stern1-0/+93
Issue-ID: VID-801 Change-Id: Ic29912cdbbfe2cad9de957d190224d873d9c1e8c Signed-off-by: Ittay Stern <ittay.stern@att.com>
2020-03-11add new format to fetch requests from MSO to the CMAmichai Hemli1-1/+1
When flag is true VID will use the format=simpleNoTaskInfo parameter in addition to the filter parameter when fetching orchestration requests for the change-management dashboard. Issue-ID: VID-787 Signed-off-by: Amichai Hemli <amichai.hemli@intl.att.com> Change-Id: I18d608db5bab6f095f399ac0f58fe5e49944a6b1 Signed-off-by: Amichai Hemli <amichai.hemli@intl.att.com> Signed-off-by: Alexey Sandler <alexey.sandler@intl.att.com>
2020-02-17Test AaiController's get-tenants existing flowIttay Stern1-0/+83
Issue-ID: VID-758 Change-Id: I0839260d3e43697cb15e8e0f8998e521c9d3a2f6 Signed-off-by: Ittay Stern <ittay.stern@att.com>
2020-02-11Filter owning-entities from /category_parameter by permissionsIttay Stern1-1/+2
Implemented in CategoryParameterServiceWithRoles and injected to MaintenanceController, but still reachable because shouldTreatPermissions() is "false". Issue-ID: VID-758 Change-Id: I716202ca944af9b0de9c151d75d50b5df41a8171 Signed-off-by: Ittay Stern <ittay.stern@att.com>
2020-02-11Merge "Add AsyncInstantiationController tests"Ittay Stern1-0/+178
2020-02-10Add AsyncInstantiationController testskurczews1-0/+178
Issue-ID: VID-470 Change-Id: I99ccf53a89a12454f2f7da70a959508a2183ee13 Signed-off-by: kurczews <krzysztof.kurczewski@nokia.com> Signed-off-by: Amichai Hemli <amichai.hemli@intl.att.com>
2020-01-29RoleValidatorByOwningEntity permits by PermissionPropertiesOwningEntityEinat Vinouze2-6/+6
PermissionPropertiesOwningEntity is sharing a parent interface with PermissionPropertiesServiceType: WithPermissionProperties. Issue-ID: VID-758 Change-Id: I90c04cb8d4331d68329f3a12329244f09c6bc184 Signed-off-by: Einat Vinouze <einat.vinouze@intl.att.com> Signed-off-by: Ittay Stern <ittay.stern@att.com>
2020-01-28create RoleValidatorFactory component.Alexey Sandler1-2/+10
Issue-ID: VID-758 Signed-off-by: Alexey Sandler <alexey.sandler@intl.att.com> Change-Id: Id444ddbe74b6d28d697e130caa73bd7bfae9ce52
2020-01-28Introduce WithPermissionProperties as validation-points for RoleValidatorEinat Vinouze1-1/+2
Issue-ID: VID-758 Change-Id: Id8f1f6faeb10a92cf20ca9a17879bc7e745526b0 Signed-off-by: Einat Vinouze <einat.vinouze@intl.att.com> Signed-off-by: Ittay Stern <ittay.stern@att.com>
2020-01-26Rename RoleValidatorByRoles to RoleValidatorBySubscriberAndServiceTypeEinat Vinouze1-3/+3
Issue-ID: VID-758 Signed-off-by: Einat Vinouze <einat.vinouze@intl.att.com> Change-Id: I61fbfc902afee62e1099e491494065abae523b2e
2020-01-23Revert "Promise Request-id header: Check MDC value if no header"Ittay Stern1-26/+1
This reverts commit 1420dc49 Issue-ID: VID-647 Change-Id: Ib33ae33ba0d1482eddf4d85fcc15f9bc6569e00c Signed-off-by: Ittay Stern <ittay.stern@att.com>
2020-01-23Promise Request-id header: Check MDC value if no headerIttay Stern1-1/+26
Issue-ID: VID-647 Change-Id: I9ed97742db1f37de68bfcf1b9cd58afc996da7bf Signed-off-by: Ittay Stern <ittay.stern@att.com>
2020-01-08VidController sets isInstantiationTemplateExists on Browse SDCAlexey Sandler1-24/+38
Issue-ID: VID-739 Change-Id: I8dea890c8518e3c314e5371eaa982ce7550b27a5 Signed-off-by: Alexey Sandler <alexey.sandler@intl.att.com>
2019-11-27OperationalEnvironment improvementsMichal Kabaj1-0/+24
-added new unit test to AaiControllerTest -OperationalEnvironment and List are now immutable -builder improvements -removed redundant test Issue-ID: VID-706 Signed-off-by: Michal Kabaj <michal.kabaj@nokia.com> Change-Id: I2cf0d0b124458b9306637614b3d26c85c780ca4d Signed-off-by: Michal Kabaj <michal.kabaj@nokia.com>
2019-11-26improve debug logging formatAmichai Hemli1-0/+15
Issue-ID: VID-646 Signed-off-by: Amichai Hemli <amichai.hemli@intl.att.com> Change-Id: Ifa9105455dabdfad3179c36b516fe9833e0e6e60 Signed-off-by: Amichai Hemli <amichai.hemli@intl.att.com>
2019-11-07fix - when retrieve topology we are using threadPool and the MDC values are ↵Ittay Stern1-3/+2
not updated This time for homing-by-vnf-id parallel requests. Issue-ID: VID-253 Change-Id: Ic0be1470445c6fef0e18f9b9d8f1604df508265b Signed-off-by: Ittay Stern <ittay.stern@att.com>
2019-10-17AaiController testsMichal Kabaj1-0/+30
added new unit tests to AaiControllerTest Issue-ID: VID-684 Signed-off-by: Michal Kabaj <michal.kabaj@nokia.com> Change-Id: Ib6a7aaa932ff2909b8a1fd81d5128713d1dc3eb5
2019-10-02MsoRestClientNew not extends RestMsoImplementationEylon Malin2-5/+5
Issue-ID: VID-253 Signed-off-by: Eylon Malin <eylon.malin@intl.att.com> Change-Id: I2e67f31bee79e05286fec4152ae5c85a96186047
2019-09-24Introduce request-id headers enumIttay Stern1-9/+9
Issue-ID: VID-253 Change-Id: I4df5756d14969a2c0daa777c75c1365837f9ad1f Signed-off-by: Ittay Stern <ittay.stern@att.com>
2019-09-24Merge "Add mso configuration tests"Wojciech Sliwka1-0/+131
2019-09-23Add mso configuration testskurczews1-0/+131
Issue-ID: VID-470 Change-Id: I2eeb3780ffe161c8616fb72573d4ce4916edc9ee Signed-off-by: kurczews <krzysztof.kurczewski@nokia.com>
2019-09-23AaiController testsMichal Kabaj1-63/+112
added new unit tests to AaiControllerTest Issue-ID: VID-649 Signed-off-by: Michal Kabaj <michal.kabaj@nokia.com> Change-Id: Ib16f31487e09e0dfdd0813e2a16def620e166be2
2019-09-22Remove injections from filter, as filter is not Spring-controlledIttay Stern1-3/+1
Change-Id: Iecb4d6fbb79c5920d088fe536e6622690f8f881e Issue-ID: VID-253 Signed-off-by: Ittay Stern <ittay.stern@att.com>
2019-09-22Let request-id value derive from alternative request-headersIttay Stern1-11/+135
Issue-ID: VID-253 Change-Id: Icae6caf5f720da0c7587f62380d1783669e69d9f Signed-off-by: Ittay Stern <ittay.stern@att.com>
2019-09-19Rename PromiseRequestIdFilter, extract isWrapNeeded and incomingRequestId ↵Ittay Stern1-21/+27
methods Change-Id: Idb39f7d5e723598e34e737522c4f73d8de3df93c Issue-ID: VID-253 Signed-off-by: Ittay Stern <ittay.stern@att.com>
2019-09-12Reduce vnf data response from A&AI in change management flowsas221v2-89/+88
Issue-ID: VID-596 Signed-off-by: Amir Skalka <as221v@intl.att.com> Change-Id: I4462ef0c2dbc9880d1a0d204f6552e3842aad821 Signed-off-by: Alexey Sandler <alexey.sandler@intl.att.com>
2019-09-12make Logging a service and inject it to SyncRestClientEylon Malin1-3/+6
Issue-ID: VID-611 Change-Id: I120782884351c55b2e0d1b4ca8bae1e2479d1d0a Signed-off-by: Eylon Malin <eylon.malin@intl.att.com>
2019-09-09Merge "Add UT to AaiControllerTest"Ittay Stern1-139/+165
2019-09-09Add UT to AaiControllerTestWeiss, Sara (sw793d)1-139/+165
Issue-ID: VID-378 Signed-off-by: Weiss, Sara (sw793d) <sara.weiss@intl.att.com> Change-Id: I41c49c3b175a11bd4a54bd4d05b7f47c8aa8e676
2019-09-09add UT to PromiseEcompRequestIdFilterTestWeiss, Sara (sw793d)1-0/+15
Issue-ID: VID-378 Signed-off-by: Sara Weiss <sara.weiss@intl.att.com> Change-Id: I57588574858b5d7982d4023165943c458ac7a03f
2019-09-02remove not used feature RoleGeneratorEylon Malin1-80/+0
Issue-ID: VID-378 Signed-off-by: Eylon Malin <eylon.malin@intl.att.com> Change-Id: I0eea2c7305f6faabcb1e54a7f4dd9f51fe37586f
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-01add getNewestModelVersionByInvariant to controller and serviceEylon Malin1-0/+108
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-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-22Add MsoController deletion testskurczews1-0/+202
Change-Id: I534fb06e7bf742f2fe6931e5b6f279f499aeed08 Issue-ID: VID-470 Signed-off-by: kurczews <krzysztof.kurczewski@nokia.com>
2019-08-06use cache for retrieving all subscribers listEylon Malin1-3/+3
Issue-ID: VID-378 Signed-off-by: Eylon Malin <eylon.malin@intl.att.com> Change-Id: I73fcc78ebbd8ee01349ecefa924c20014ca33907
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 Stern1-6/+11
Issue-ID: VID-378 Change-Id: Id1b86b77732768f9b497e2fcd29ee1665381ac57 Signed-off-by: Ittay Stern <ittay.stern@att.com>
2019-07-31Fix /version endpointIttay Stern1-52/+0
* 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-30Implant vid-app-common org.onap.vid.job (main and test)Einat Vinouze7-34/+92
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-22Merge "Pnf pojo improvements"Wojciech Sliwka1-8/+9
2019-07-19Add MsoController testskurczews1-12/+114
Issue-ID: VID-470 Change-Id: If1577f3a1ed625f0c7bf8e1940e1a92073191efc Signed-off-by: kurczews <krzysztof.kurczewski@nokia.com>
2019-07-19Pnf pojo improvementsMichal Kabaj1-8/+9
- added builder - immutable - improved json serialization Change-Id: If0c9128dfd27d1c04e2f8683bade16700789276e Issue-ID: VID-478 Signed-off-by: Michal Kabaj <michal.kabaj@nokia.com>
2019-07-18junits for AaiControllerTomasz Gwozdecki1-0/+23
-Added new test for getVersionByInvariantId method Change-Id: Iba77e8638047ba20ac80816b779575ce5e32df86 Issue-ID: VID-478 Signed-off-by: Tomasz Gwozdecki <tomasz.gwozdecki@nokia.com>
2019-07-04Add controller which create error reportsmichal.banka1-0/+115
Change-Id: Icfba59e90420c0d849c9ba5fae3d0cb1b40ed265 Issue-ID: VID-488 Signed-off-by: michal.banka <michal.banka@nokia.com>
2019-07-01Merge "Extend probe mechanism"Ittay Stern1-2/+2
2019-07-01Extend probe mechanismWojciech Sliwka1-2/+2
Fixes from latest review. Introduce probe interface. ResponseWithRequestInfo is not used - it belongs to aai package and requires javax.ws.rs.core.Response. Fallback in aai client will be removed as soon as sdc provides https support (hopefully in El Alto). Change-Id: I4527d447a273328d38ff2ef7f9d2a93453cec9f2 Issue-ID: VID-490 Signed-off-by: Wojciech Sliwka <wojciech.sliwka@nokia.com>
2019-06-12AaiController unit testsMichal Kabaj1-0/+25
- unit tests for getPNFInstances Change-Id: I9d77ad0e15be23dc169721c6b73bea9fb1ecaf19 Issue-ID: VID-478 Signed-off-by: Michal Kabaj <michal.kabaj@nokia.com>
2019-06-05junits for AaiControllerTomasz Gwozdecki1-0/+35
-Added new test for getSpecificPnf method Change-Id: I1837a364673c3dd04b559eacccd7baeeeb82208f Issue-ID: VID-478 Signed-off-by: Tomasz Gwozdecki <tomasz.gwozdecki@nokia.com>