summaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/test/java/org/onap
AgeCommit message (Collapse)AuthorFilesLines
2020-11-27Update VID SO API call generation - include PNF instanceName parameter in SO ↵Mateusz Gołuchowski6-34/+61
API call (macro) Creation of functionality to prepare service with PNF request which call SO. Issue-ID: VID-695 Signed-off-by: Mateusz Goluchowski <mateusz.goluchowski@nokia.com> Change-Id: I5285ac2ab5e95665244ca18c6549249d9330b1ed
2020-08-31Pause Upon VF Module FailurePATTANAYAK, SAUMYA SWARUP (sp931a)3-9/+22
Issue-ID: VID-862 Currently in VID, once a failure is received from SO on the instantiation of a VF Module, it is assumed that other VF Modules may continue with the execution without stopping. However, in most of the cases, it is a good idea to stop further requests to SO if one of the VF Module instantiation returns an error. This user story, makes sure this functionality is achieved. Change-Id: I07c51b81111f805b61c8b3714a65171d7cbaa254 Signed-off-by: PATTANAYAK, SAUMYA SWARUP (sp931a) <sp931a@att.com>
2020-05-21Set JobStatus as COMPLETED_AND_PAUSED when needed so we can present it on ↵Einat Vinouze3-65/+82
instantiationStatus Issue-ID: VID-821 Signed-off-by: Einat Vinouze <einat.vinouze@intl.att.com> Change-Id: I19328ce643ea984a97dc04183626dea133be517d Signed-off-by: Einat Vinouze <einat.vinouze@intl.att.com>
2020-05-19Introduce FeatureManager to ResourceCommandEinat Vinouze6-47/+83
Issue-ID: VID-821 Signed-off-by: Einat Vinouze <einat.vinouze@intl.att.com> Change-Id: Id6c663d4612d69a48b4a9425db082fb6c33e08b1 Signed-off-by: Einat Vinouze <einat.vinouze@intl.att.com>
2020-05-17Move pauseInstantiation from VfModule to BaseResourceEinat Vinouze2-2/+2
Issue-ID: VID-821 Change-Id: Iacb80bba25596b26cb33fd91d9b2c4a4f9a6d08b Signed-off-by: Einat Vinouze <einat.vinouze@intl.att.com>
2020-05-05Add pause after completion for vfModuleEinat Vinouze7-7/+93
Issue-ID: VID-821 Signed-off-by: Einat Vinouze <einat.vinouze@intl.att.com> Change-Id: Ie3088cd2795c94121c45874d15c319151a10cc95 Signed-off-by: Einat Vinouze <einat.vinouze@intl.att.com>
2020-05-04When cloud region is missing then omit the cloudConfiguration objectAmichai Hemli1-4/+16
Issue-ID: VID-820 Signed-off-by: Amichai Hemli <amichai.hemli@intl.att.com> Change-Id: I0780649982c0a1ae0a5bc56da438d422a710e4bf Signed-off-by: Amichai Hemli <amichai.hemli@intl.att.com>
2020-04-16add network: create test to verify payload to MSOAlexey Sandler1-0/+28
Issue-ID: VID-802 Signed-off-by: Alexey Sandler <alexey.sandler@intl.att.com> Change-Id: Ib150b9d67f7ba50eb619b5483b99eb4ae906b9d8 Signed-off-by: Alexey Sandler <alexey.sandler@intl.att.com>
2020-04-07Limit the length of logged responses in outgoingRequestLogIttay Stern1-1/+36
Currently truncated after 1 MB. Issue-ID: VID-804 Change-Id: Ic99c33eede488db60c296d7272850cadee9f2925 Signed-off-by: Ittay Stern <ittay.stern@att.com>
2020-04-06Add another VNF to the new view/edit screen - Integration testEinat Vinouze1-0/+23
Issue-ID: VID-803 Signed-off-by: Einat Vinouze <einat.vinouze@intl.att.com> Change-Id: I9e2a58863855353b75edab44129c96b319511dde Signed-off-by: Einat Vinouze <einat.vinouze@intl.att.com>
2020-04-02when deleting a vf module from the modern ui verify that correct delete is ↵Amichai Hemli1-0/+73
sent to mSO Issue-ID: VID-798 Change-Id: I1c8422ccbd15f12b6e516abb6e77229daa65ffe1 Signed-off-by: Amichai Hemli <amichai.hemli@intl.att.com> Signed-off-by: Ittay Stern <ittay.stern@att.com>
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-15Extend timeout in DB-related tests of JobsBrokerServiceIttay Stern1-3/+4
Issue-ID: VID-433 Change-Id: Ib33c7621c8315595a341486e475ad15a90330369 Signed-off-by: Ittay Stern <ittay.stern@att.com>
2020-03-12Extend timeout in test JobsBrokerServiceIttay Stern1-1/+1
This resolves instability in tests, e.g.: java.lang.RuntimeException: java.util.concurrent.TimeoutException at ...JobsBrokerServiceTest.waitForFutureOptionalJob() at ...JobsBrokerServiceTest.getAlotOfJobs() Redo commit 8aff973214f44a1f4cf95e5330cb9687be1bfa76 Issue-ID: VID-433 Change-Id: Ib366d7c7ffff7ee75a78ff5be5ccd5c970c783dd Signed-off-by: Ittay Stern <ittay.stern@att.com>
2020-03-11add new format to fetch requests from MSO to the CMAmichai Hemli3-3/+8
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-03-08isVfModuleBaseModule() will not throw on model mismatchIttay Stern2-50/+60
In addition, the model-info comparision is by customization id or customization name instead of the version id. Issue-ID: VID-603 Change-Id: I8efee06f470e5d5681c264de01ed1315ee1f8cc6 Signed-off-by: Ittay Stern <ittay.stern@att.com>
2020-03-01when signaling the frontend about templates check the correct flag ↵Amichai Hemli1-2/+2
FLAG_2004_CREATE_ANOTHER_INSTANCE_FROM_TEMPLATE Issue-ID: VID-739 Signed-off-by: Amichai Hemli <amichai.hemli@intl.att.com> Change-Id: Iaed25f1932eed675310c8d0003d415352991d19e
2020-02-26Test many POJOs getters/settersIttay Stern3-92/+147
Issue-ID: VID-768 Change-Id: I891af541bec9aaddaf4d68c8c2b0ae15690bde2c Signed-off-by: Ittay Stern <ittay.stern@att.com>
2020-02-23Topology tree: test fetchCustomizationIdsFromToscaModelsWhileNeededIttay Stern1-0/+51
Issue-ID: VID-771 Change-Id: I5c1bf1f4eba8b5f53702ae2192b8ac9a962f1344 Signed-off-by: Ittay Stern <ittay.stern@att.com>
2020-02-20Topology tree: enrich vfModules data from other versions of same modelIttay Stern3-10/+168
Depends on FLAG_EXP_TOPOLOGY_TREE_VFMODULE_NAMES_FROM_OTHER_TOSCA_VERSIONS Issue-ID: VID-771 Change-Id: Ib25c6cf7269614f2f4d332b3aa84b3307a59ebda Signed-off-by: Ittay Stern <ittay.stern@att.com>
2020-02-20Topology tree: extract AAITreeNodesEnricher out of AAIServiceTreeIttay Stern4-148/+202
Issue-ID: VID-771 Change-Id: I138a89b7b2f00e6e603ff26addefc494aeb019b0 Signed-off-by: Ittay Stern <ittay.stern@att.com>
2020-02-20Learn to get all model versions sorted from high to lowIttay Stern1-10/+27
Issue-ID: VID-771 Change-Id: I9c7cc3f319aa13a2dab33e8c584f7f7ed90cf847 Signed-off-by: Ittay Stern <ittay.stern@att.com>
2020-02-20Learn to inflate models by Customization uuidsIttay Stern1-16/+51
Issue-ID: VID-771 Change-Id: I3996639745e77b8754e8bfa82c153690df683925 Signed-off-by: Ittay Stern <ittay.stern@att.com>
2020-02-17Test AaiController's get-tenants existing flowIttay Stern5-12/+95
Issue-ID: VID-758 Change-Id: I0839260d3e43697cb15e8e0f8998e521c9d3a2f6 Signed-off-by: Ittay Stern <ittay.stern@att.com>
2020-02-16Limit vfmodule tenant and region dictation to "create"Ittay Stern1-2/+17
Other flows (e.g. Delete) are expected to have literal designation. Verified in API test "delete1VnfWithVfModulesAndCreate1VnfFromService". Issue-ID: VID-758 Change-Id: Ib543ff98ecf96e1df0e5741fbdbba2e64e602528 Signed-off-by: Ittay Stern <ittay.stern@att.com>
2020-02-13Translate owning entity name to owning entity ID - update api test to except ↵Einat Vinouze1-3/+1
new behavior Issue-ID: VID-758 Signed-off-by: Einat Vinouze <einat.vinouze@intl.att.com> Change-Id: Ib8b8da5c3267a3668cf29b950233af14b29f2d23
2020-02-13translate owning entity name to owning entity IDEinat Vinouze1-4/+86
Issue-ID: VID-758 Change-Id: Ic89829ac4590537f0279052ceb9e8432ea0de878 Signed-off-by: Einat Vinouze <einat.vinouze@intl.att.com>
2020-02-11Filter owning-entities from /category_parameter by permissionsIttay Stern2-1/+116
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-02-10AsyncInstantiationIntegrationTest: cleanup and enable TENANT_AND_REGION_FROM_VNFIttay Stern1-14/+6
Issue-ID: VID-758 Change-Id: Ie040e7fb3da031cd48b04eb2543a6209b7215f07 Signed-off-by: Ittay Stern <ittay.stern@att.com>
2020-02-06vfmodule tenant and region are dictated by parent VNF valuesIttay Stern3-14/+176
Issue-ID: VID-758 Change-Id: Ie48240442e5b2f858e530858d2e25827e799e4c2 Signed-off-by: Ittay Stern <ittay.stern@att.com>
2020-02-04add owningEntityId to each result of getServicesByOwningEntityIdEylon Malin1-3/+3
Issue-ID: VID-758 Signed-off-by: Eylon Malin <eylon.malin@intl.att.com> Change-Id: I4546b5d86e6a1b929b3430aa41f13980f07cfdaf
2020-02-04regression unit test for getServicesByProjectNamesEylon Malin1-4/+38
Issue-ID: VID-758 Signed-off-by: Eylon Malin <eylon.malin@intl.att.com> Change-Id: Ibb4f6b63448dfb53bae5c262b3d8ce4f253935e0
2020-02-03regression unit test for getServicesByOwningEntityIdEylon Malin1-0/+29
Issue-ID: VID-758 Change-Id: I4e080b6d775feb890f597b1db006e00f8108a987 Signed-off-by: Eylon Malin <eylon.malin@intl.att.com>
2020-02-03Respect owning-entity-id when searching instances by SubscriberIttay Stern1-4/+60
Issue-ID: VID-758 Change-Id: Ife6d8679b3ea00d4bb9efb24810b5a50652f5d76 Signed-off-by: Ittay Stern <ittay.stern@att.com>
2020-01-29RoleValidatorByOwningEntity permits by PermissionPropertiesOwningEntityEinat Vinouze7-37/+77
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-29RoleValidatorFactory respects owning-entity feature flagAlexey Sandler1-0/+77
Add FLAG_2006_USER_PERMISSIONS_BY_OWNING_ENTITY flag to response with correct type of RoleValidator Issue-ID: VID-758 Change-Id: I464fc1a155e72fedbe3f15d9745c80817db22391 Signed-off-by: Alexey Sandler <alexey.sandler@intl.att.com>
2020-01-28create RoleValidatorFactory component.Alexey Sandler6-191/+58
Issue-ID: VID-758 Signed-off-by: Alexey Sandler <alexey.sandler@intl.att.com> Change-Id: Id444ddbe74b6d28d697e130caa73bd7bfae9ce52
2020-01-28Rename Role's subscriberId fieldIttay Stern1-6/+6
It was named subscriberName, although containing the id. Issue-ID: VID-758 Change-Id: I28fd174a6eab642d34aef207e9d3ca69e8091884 Signed-off-by: Ittay Stern <ittay.stern@att.com>
2020-01-28RoleValidatorsComposer composite several RoleValidators togetherIttay Stern1-0/+110
Issue-ID: VID-758 Change-Id: I7bd5a4ebc8a0a451716af09cc76e6db6cd5362f7 Signed-off-by: Ittay Stern <ittay.stern@att.com>
2020-01-28Introduce WithPermissionProperties as validation-points for RoleValidatorEinat Vinouze6-189/+34
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-27create RoleValidatorByOwningEntity class.Alexey Sandler1-0/+64
Issue-ID: VID-758 Signed-off-by: Alexey Sandler <alexey.sandler@intl.att.com> Change-Id: I9c2e2a376e4c1bfb05dc05e1c5187b912f31db1d Signed-off-by: Alexey Sandler <alexey.sandler@intl.att.com>
2020-01-26Rename RoleValidatorByRoles to RoleValidatorBySubscriberAndServiceTypeEinat Vinouze2-16/+19
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-19originalName stored and sent to frontend in a templateEylon Malin5-24/+27
Issue-ID: VID-724 Signed-off-by: Eylon Malin <eylon.malin@intl.att.com> Change-Id: Ie18e16fed62f9a92a4b4d5c72596c36303de1f48 Signed-off-by: Eylon Malin <eylon.malin@intl.att.com>
2020-01-15Async MSO error format: handle more casesIttay Stern2-1/+25
Try better not to fallback to "Http Code:400, null" Notably, handle the case where "serviceException" is inside a "requestError" container. Issue-ID: VID-749 Change-Id: I3c7d609aed893bbbeb71ebe4b465289c71e5c32b Signed-off-by: Ittay Stern <ittay.stern@att.com>
2020-01-15Honor user-cookie to select a temporal feature setIttay Stern1-0/+101
Issue-ID: VID-747 Change-Id: I5acd4685bedfed8570a6fd698101f541d03c8d82 Signed-off-by: Ittay Stern <ittay.stern@att.com>
2020-01-13clear isFailed and statusMessage when get it from frontend requestEylon Malin3-4/+112
Issue-ID: VID-724 Change-Id: I1bc33513250b220a063742233592388c7a108958 Signed-off-by: Eylon Malin <eylon.malin@intl.att.com>