aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-be/src/test/java
AgeCommit message (Collapse)AuthorFilesLines
2023-06-02Revert "[SDC-BE] Add kafka ssl config"MichaelMorris3-24/+34
This reverts commit 3405456c46937352863ce19c39266a51dd7760db. Reason for revert: deployment issues with TLS Change-Id: I58aa51f7d563cf74d3747a5ff59104906b294d18 Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-4476
2023-06-02Support INDEX in node filter tosca functionsfranciscovila1-10/+50
Issue-ID: SDC-4517 Signed-off-by: franciscovila <javier.paradela.vila@est.tech> Change-Id: I36e33821ef72c3375d9525513f2394b9b772c696
2023-06-01Fix formatting error for operation input of complex typeJvD_Ericsson1-175/+83
Issue-ID: SDC-4523 Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech> Change-Id: I3dff94cee1d1dbcb26099d02505a679249a6b46e
2023-05-25Support TOSCA functions in operation inputsfranciscovila1-2/+2
Issue-ID: SDC-4442 Signed-off-by: franciscovila <javier.paradela.vila@est.tech> Change-Id: I1e6135da6f41d512a7758d5494df12da874d7146
2023-05-22Provide index token to tosca function for nested listsimamSidero1-1/+1
Index token capability is provided in tosca function for all nested levels of list and custom types Issue-ID: SDC-4505 Signed-off-by: Imam hussain <imam.hussain@est.tech> Change-Id: If21c0078e0d17c44b5a31b00d6fac3e18ff6831d
2023-05-18UI support for default custom function names with get_input structureJvD_Ericsson1-0/+42
Issue-ID: SDC-4493 Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech> Change-Id: Iba3eda9bb5d57aabbe86045b6150564e17a0ff3e
2023-05-15Fix error in userId handlingMichaelMorris6-0/+25
Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-4468 Change-Id: Iccc61e54876fea732d82334d0bf21bc485b9e1bb
2023-05-12Enable using substitution mapping type directlyshikha02031-0/+1
Issue-ID: SDC-4435 Signed-off-by: shikha0203 <shivani.khare@est.tech> Change-Id: Ia3120eb6f03ad861dc87de64a2cb81a61e048f4e
2023-05-04Support service import with custom tosca functionsJvD_Ericsson1-12/+37
Issue-ID: SDC-4479 Change-Id: I1a98c8a191fc255cb3b2b328b0ea1e72977252d2 Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech>
2023-04-26VFC Property default value enforced forced to comply with restraintsfranciscovila1-0/+14
Issue-ID: SDC-4477 Signed-off-by: franciscovila <javier.paradela.vila@est.tech> Change-Id: Ib9115aae9019e2d36990147dc0ec9f4058352d88
2023-04-25[SDC-BE] Add kafka ssl configefiacor3-34/+24
Signed-off-by: efiacor <fiachra.corcoran@est.tech> Change-Id: I9e7c0e44566c46bd6225397a680015bf1c0f1c0b Issue-ID: SDC-4476
2023-04-03Add robustness to type creation on service importMichaelMorris5-5/+13
Change-Id: I2c6bf2a13f8972c3c336ee032d4d0fda22f90938 Issue-ID: SDC-4355 Signed-off-by: MichaelMorris <michael.morris@est.tech>
2023-03-31Support to change substitution mapping node or version after service creationJvD_Ericsson4-100/+228
Before changing check for service property usage in sub mapping node change Issue-ID: SDC-4439 Issue-ID: SDC-4430 Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech> Change-Id: Ia0f24c626ac836f0b4e7ffbe0004e7ab30089b25
2023-03-21Certifying a template with two connected services results in errorfranciscovila1-0/+3
Issue-ID: SDC-4437 Signed-off-by: franciscovila <javier.paradela.vila@est.tech> Change-Id: Iad53c2204b0db48e115f4133c0a68b1f722626fc
2023-02-17Support for copy/paste tosca functions into operation inputsJvD_Ericsson1-162/+201
Issue-ID: SDC-4394 Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech> Change-Id: I4aedb641e950419677d2509f4944fcf778c2efd8
2023-02-09Consider model in generic substitution type queryandre.schmid1-2/+5
Change-Id: I9905b5f6b1bd658befb88b2dbb6903dfaa1f0f8a Issue-ID: SDC-3794 Signed-off-by: andre.schmid <andre.schmid@est.tech>
2023-02-09Improve getting Service with specific versionvasraz2-16/+5
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: Ia788649016fe261802a081788b8844a80bbc3dcc Issue-ID: SDC-4358
2023-02-07Dont add to additional_types on import failureMichaelMorris2-6/+55
Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-4369 Change-Id: Iaf4a03293ecdb097981bde126aa7376ba237f20d
2023-02-02Fix 'in_range constraints missing from TOSCA template'-bugvasraz1-2/+2
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: Icec2183849a8852621ec98f3ca1d94ac7c4dae31 Issue-ID: SDC-4357
2023-02-01Revert and fix temporary fix of SDC-4352JvD_Ericsson1-3/+3
Revert https://gerrit.onap.org/r/c/sdc/+/133049 and fix initial issue described by SDC-4352 Fix floats not being imported correctly Fix not being able to use equal constraint with bool type Issue-ID: SDC-4352 Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech> Change-Id: I90641838aa40bea211f57f47fe65d09bf0573453
2023-01-27Add TCs to cover Constraintsvasraz2-41/+128
Fix wrong Comparable Property Type and Comparable Constraint Type Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: I59968861834a0f8859fcaf3e590c83bbf223338f Issue-ID: SDC-4347
2023-01-19Download data type from UIKrupaNagabhushan2-0/+22
Issue-ID: SDC-4332 Signed-off-by: KrupaNagabhushan <krupa.nagabhushan@est.tech> Change-Id: If31f7a95eb2d568e716760a33ef2641bad09cf68
2023-01-17Improve test coveragevasraz1-1/+1
- extract duplicated code - remove redundant and unused code Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: I7ae3592951f53bbebf10a80f7cce22d54b2940b6 Issue-ID: SDC-4317
2023-01-16Constraint validation - Policy Properties in a ServiceKrupaNagabhushan1-0/+18
Issue-ID: SDC-4320 Signed-off-by: KrupaNagabhushan <krupa.nagabhushan@est.tech> Change-Id: I5f04b630f89b96d7a662fbab8894961670502f52
2023-01-10Fix resource property constraint values mutable in Service designJvD_Ericsson1-0/+10
Issue-ID: SDC-4290 Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech> Change-Id: Ica942b7a8bb1f03cbf6baec709135287e31def06
2023-01-03Upgrade testing frameworks to latest not-vulnerable versionsvasraz28-111/+108
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: Ie68290a79d075132c73e6cc9e82b9dbda92fbe8c Issue-ID: SDC-4313
2023-01-03Fix 'NPE thrown in editing constraints'-bugvasraz1-1043/+1060
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: Ibbd8a3baa2a2bfdbd6e2c235db5a1d59875f3e6e Issue-ID: SDC-4312
2022-12-21Multitenancy in SDCKartik Hegde3-0/+184
Issue-ID: SDC-4215 Change-Id: Ie24ba38acc9f1998d4a7e722e8f98456dab9201d Signed-off-by: Kartik Hegde <kh00735564@techmahindra.com>
2022-12-02Fix numeric constraint values generated as stringsJvD_Ericsson1-1/+1
When importing a vfc the property constraints are now checked to see if they are the same type as the property If not it will attempt to convert to that type Issue-ID: SDC-4274 Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech> Change-Id: I32c1d930166d10142ad9ca6914550c7946e9128c
2022-11-30View data types in UI catalogKrupaNagabhushan1-0/+6
Issue-ID: SDC-4220 Signed-off-by: KrupaNagabhushan <krupa.nagabhushan@est.tech> Change-Id: I880c7fedb58eafc7524fc6833b9b5d02f3b7d523
2022-11-25Fix issues while importing a Servicevasraz5-87/+15
The import service was ignoring the selected model for imported nodes. It was also trying to set a different icon for resources that already exist in the database, creating a validation error. There was also a nullpointer in relation to not found capability. Change-Id: Ifa9320c5554bbf5e8fed0cc2e2dea6b05503d213 Issue-ID: SDC-4266 Signed-off-by: André Schmid <andre.schmid@est.tech> Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech>
2022-11-23Fix property constraints validationfranciscovila1-1/+78
Fix property constraints validation behaviour when a property is not required shouldnt be validated vs constraints if no value is provided. Also add constraints validation for length measures in list, map and string types. Issue-ID: SDC-4222 Signed-off-by: franciscovila <javier.paradela.vila@est.tech> Change-Id: I48ebb46b3de9ddac3d9dd91400ea0fad983aa94d
2022-11-08Interface is formatted using extended notation when no implementation added ↵vasraz2-7/+4
at VFC level Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: I4e6e6d61b851fe2efaa47c9f8fad0cb546f2fcb7 Issue-ID: SDC-4255
2022-10-25Constraint validation - Node Template Interfacesfranciscovila2-11/+281
Validate constraints in node template interfaces Issue-ID: SDC-4207 Signed-off-by: franciscovila <javier.paradela.vila@est.tech> Change-Id: Ibe4a55342067942a2a29f540c896ecc39811220f
2022-10-25Add default baseType to the substitution typeimamSidero1-0/+5
Enabling default baseType in substitution type to be selected Issue-ID: SDC-4229 Signed-off-by: Imam hussain <imam.hussain@est.tech> Change-Id: I869ede4c4e030adc3c4418c28ed787b4c10248dd
2022-10-25[SDC] Add kafka native messagingdavid.mcweeney5-29/+422
Change-Id: I5ab8f580947cbc264d94bec48a5e8b659dc44c08 Issue-ID: DMAAP-1787 Signed-off-by: david.mcweeney <david.mcweeney@est.tech>
2022-10-24Support import of VFCs with property constraintsMichaelMorris1-0/+50
Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-4216 Change-Id: I19dce9f929535aa22cad6a1d95a213f42dd6e99c
2022-10-18Fix security risk 'Improper Input Validation'vasraz1-0/+54
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: I6a52148aec3b567db43ec57109214e52d106f73c Issue-ID: SDC-4189
2022-10-17Add data type properties workspaceandre.schmid1-0/+27
Implements the properties workspace for a data type, with the list and filter feature. Change-Id: I2ec337a0481bddd5fe32e45644abdc88e197fa49 Issue-ID: SDC-4214 Signed-off-by: André Schmid <andre.schmid@est.tech>
2022-10-14Support import of updated node types with added attributesJvD_Ericsson1-0/+4
Support addition of new attributes, new capabilities, new requirements, and new interfaces Issue-ID: SDC-4142 Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech> Change-Id: I987fdf6b0e7dae275fcc6ac43f3dd7aa21628f4a
2022-10-12Fix response of fetch data type endpointandre.schmid1-1/+5
The catalog endpoint /v1/catalog/data-types/<id> is returning an Optional instead of the Data Type itself. Improves unit test to verify the response payload. Change-Id: I781917fb66225abf911a043370917e7b7a183bb1 Issue-ID: SDC-4211 Signed-off-by: André Schmid <andre.schmid@est.tech>
2022-10-10Constraint validation for instance properties in a serviceimamSidero2-5/+34
Validating the properties of instance in a service against it's constraints Issue-ID: SDC-4190 Signed-off-by: Imam hussain <imam.hussain@est.tech> Change-Id: I04bb907f52229c3d214e15434595e5429ef5101c
2022-10-05Implement API for fetching single data typevasraz1-0/+152
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: Icebf660d67d503250e4f6d4d7fd5a2e169cdc951 Issue-ID: SDC-4184
2022-10-04Fix for VFC version update on composition windowimamSidero1-2/+1
On add service - composition window VFC version update/change is fixed by mapping appropriate requirements and capabilities Issue-ID: SDC-4185 Signed-off-by: Imam hussain <imam.hussain@est.tech> Change-Id: I0de616510ca27c511179f1f34cf7290cd584c7c5
2022-10-04Remove unused codevasraz23-931/+922
clean up 'UserBusinessLogic userBusinessLogic' Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: I868692b617e2efd4001121d8f2495e73f59c77a7 Issue-ID: SDC-4205
2022-09-27Error in update of Component Inputsfranciscovila1-1/+8
Fix error preventing constraints validations Issue-ID: SDC-4191 Signed-off-by: franciscovila <javier.paradela.vila@est.tech> Change-Id: I19190a071fe45cf5ac30c7ec44fbf0fbb2b46c03
2022-09-27Service import - Import unknown interface typesKrupaNagabhushan2-1/+27
Issue-ID: SDC-4186 Signed-off-by: KrupaNagabhushan <krupa.nagabhushan@est.tech> Change-Id: Idfbce90e795136ef2ea1a96f65e458db9206339f
2022-09-26Service import - Import unknown capability typesfranciscovila1-4/+20
When an unknown capability is found in the csar used to import a service, this capability will be added to the model to which the service is being imported Issue-ID: SDC-4187 Signed-off-by: franciscovila <javier.paradela.vila@est.tech> Change-Id: If43b14008e18195bff237c35c5fc1154e57239ff
2022-09-23Revert "Fix 'Wrong Inputs creation on (Add Service)'"Vasyl Razinkov2-106/+89
This reverts commit ae24e28cda8247fdce38330356b63db1377be58f. Reason for revert: problem reported with 'default' values Issue-ID: SDC-4097 Change-Id: I8966470070329cc8aafcb45255f2febb9b00ab4e Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech>
2022-09-19Import unknown group types during Service importvasraz1-0/+4
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: Ic435ee0c440dd8ed64339bab08e921687d23b9c0 Issue-ID: SDC-4176