summaryrefslogtreecommitdiffstats
path: root/catalog-be/src/main
AgeCommit message (Collapse)AuthorFilesLines
2021-11-17Update service import to import self propertiesKrupaNagabhushan3-3/+37
Issue-ID: SDC-3764 Signed-off-by: KrupaNagabhushan <krupa.nagabhushan@est.tech> Change-Id: I6d6c3a40484b0a5df2611c036740ad9965e6a73d
2021-11-15Fix critical cross site scriptingvasraz2-7/+15
Change-Id: I66a220f71a2e950055107a725191b46bcbe8c6a6 Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Issue-ID: SDC-3607 Issue-ID: SDC-3755
2021-11-12Fix broken TC (ExternalRefsServletTest)vasraz2-6/+4
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Issue-ID: SDC-3776 Change-Id: Iac19fea2b6f8a36dc29f4a8d5cea277d226342b2
2021-11-11Fix auth failure to dmaap after upgradevasraz1-0/+8
Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-3756 Change-Id: I58e6f99156e1e64443cd79c2e08f73987329b88d (cherry picked from commit 9e81c0f8d1c759cfe54312fed69b9ba263f4e52e) Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech>
2021-11-05Add UI support for adding tosca artifact typesaribeiro6-46/+109
UI support for adding artifacts to an interface operation implementation Issue-ID: SDC-3768 Signed-off-by: aribeiro <anderson.ribeiro@est.tech> Change-Id: I71b3e49a160521e35a45515ad7adef836f901e78
2021-11-02Support for adding artifact typesaribeiro6-19/+224
Issue-ID: SDC-3763 Change-Id: Ideb63cbb3eb4e383adebaa11de49e91414a2c9a7 Signed-off-by: aribeiro <anderson.ribeiro@est.tech>
2021-11-02Import VSP with non-standard policy typesdavsad5-50/+117
Issue-ID: SDC-3715 Signed-off-by: davsad <david.sadlier@est.tech> Change-Id: I48e9831b8a27341db2d33d85125cb9d42043e71b
2021-10-21Make Service base type optionalandre.schmid9-75/+165
Issue-ID: SDC-3759 Change-Id: I8adf112966ee9303fc965a74cec7203274acd735 Signed-off-by: andre.schmid <andre.schmid@est.tech>
2021-10-18Force encoding while reading files in init scriptsandre.schmid6-8/+8
To avoid system dependency by using the default encoding, this change sets the encoding when opening files in python scripts to "UTF-8". Change-Id: Ib35f4300f10dea309fcc2967448bd80cad0b335f Issue-ID: SDC-3761 Signed-off-by: André Schmid <andre.schmid@est.tech>
2021-10-15Import multiple node types in a single endpointandre.schmid40-758/+1002
Change-Id: I7aa914d459a083146b92ef82197c8df265b8c5b6 Issue-ID: SDC-3752 Signed-off-by: andre.schmid <andre.schmid@est.tech>
2021-10-12Add a display name for the category metadataKeys entriesdavsad2-0/+2
Issue-ID: SDC-3737 Signed-off-by: davsad <david.sadlier@est.tech> Change-Id: Ia9547f02267fd380feeef6be6af10beadd30457b
2021-10-08Allow importing service with no instancesKrupaNagabhushan2-14/+16
Issue-ID: SDC-3751 Signed-off-by: KrupaNagabhushan <krupa.nagabhushan@est.tech> Change-Id: I383d9fd8901b9c3e968ba18bfc31a520a490be0b
2021-10-05Filter categories by model namearibeiro2-22/+48
Issue-ID: SDC-3706 Signed-off-by: aribeiro <anderson.ribeiro@est.tech> Change-Id: I457151f09ce0ed2edfa09340e9e08a126e114002
2021-10-05Allow multiple base types for a servicevasraz3-37/+31
Change-Id: I2e37818a432295a6e9f795f38d730d60f66eef78 Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Issue-ID: SDC-3727
2021-10-01Expand allowed chars in property names to include colonvasraz1-1/+1
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: Ie49630306b44f0a38b35ddee46144295651282f4 Issue-ID: SDC-3729
2021-09-29Fixing distribution to AAI/SO issueMichaelMorris1-1/+41
Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-3740 Change-Id: Ib39125eac6011c393f6ee643e3997e1bff6f43c3
2021-09-20Error re-importing VSPKrupaNagabhushan2-1/+17
Issue-ID: SDC-3728 Signed-off-by: KrupaNagabhushan <krupa.nagabhushan@est.tech> Signed-off-by: André Schmid <andre.schmid@est.tech> Change-Id: I22d6186b8e6922511a7ede584d009cfae041fabd
2021-09-20Fix update VSP missing VSP version idandre.schmid2-0/+6
Fills the gaps of persisting and loading the VSP version id Change-Id: I4d6c63bd2309777fdfb337cf98c1a0f9daaa434b Issue-ID: SDC-3731 Signed-off-by: andre.schmid <andre.schmid@est.tech>
2021-09-17Fix Update VSP when no version id is providedandre.schmid2-1/+6
Issue-ID: SDC-3730 Change-Id: Ic5a5a6ecf3b6775e022be649145e44b0907cbecf Signed-off-by: andre.schmid <andre.schmid@est.tech>
2021-09-15Increase test coverage (TypesUploadServlet)vasraz1-16/+12
Change-Id: I78abc4872d99d4d4fa37c77a2186421ba5f41724 Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Issue-ID: SDC-3684
2021-09-10ETSI SOL001 v2.5.1 model types not deployed in upgradedavsad5-28/+63
Issue-ID: SDC-3707 Signed-off-by: davsad <david.sadlier@est.tech> Change-Id: If1bda517a9295ad380bf4e5e2fc35f15a1ff708e
2021-09-10Fix intermittent upgrade failureMichaelMorris1-1/+2
Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-3722 Change-Id: I56ab3d23aaf53bc02efd58df3bd939a1a2efb12c
2021-09-10Fix model initaribeiro2-4/+2
When upgrading, the model type for "ETSI SOL001 v2.5.1" is being updated and then the request for retrieving all model types with "NORMATIVE" type returns empty Issue-ID: SDC-3720 Signed-off-by: aribeiro <anderson.ribeiro@est.tech> Change-Id: Ibc71bd05426532416eb2ac09f598e7456777403b
2021-09-09[SDC-BE] Remove hardcoded MR apiKeyMichaelMorris3-11/+26
Issue-ID: SDC-3714 Change-Id: Ie154a225bc1c47d6d3b504f915a697047e1b0440 Signed-off-by: MichaelMorris <michael.morris@est.tech>
2021-09-06Not possible to set max occurrences to zeroMichaelMorris1-1/+1
Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-3711 Change-Id: I512abaca1defade0bee259b330eca2fea322eaf7
2021-09-03Fix CSAR generation default imports file conflictandre.schmid3-4/+76
When generating a CSAR for a resource that is associated with a derived model, the default imports for the derived and parent model can conflict in path, therefore causing an issue during the CSAR zip generation which can't stand two entries with the same path. The fix adds a logic to rename a file when conflicting, by adding the model id as the file prefix. Change-Id: Ife7168f1c69f90be9c2cfd8ba75efad316c477f6 Issue-ID: SDC-3710 Signed-off-by: andre.schmid <andre.schmid@est.tech>
2021-09-02Fix mismatch in requirement name in sub mappingMichaelMorris2-4/+12
Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-3701 Change-Id: I0898d8b16c6e5cda035f33024f26644d7c6b1ef5
2021-08-31Fix additional types import file generationandre.schmid7-18/+16
The additional_type_definitions.yaml is missing types entries and header. Also, the solution is not considering the types entries, i.e. 'data_types:', 'policy_types:', etc., when replacing types and generating the new file, which renders the solution broken. This change aims to fix the related problems. Change-Id: I412683b49966c09dd067ecbf8a1d778155b23fa6 Issue-ID: SDC-3703 Signed-off-by: andre.schmid <andre.schmid@est.tech>
2021-08-30Include custom data types from VSP in csar importsandre.schmid3-60/+80
When a model with custom data types is created, the data types are now being added as part of the default model imports files. When a CSAR is generated from a Service Template that is associated to a derived model, the default imports from the parent model are also included in the package. Change-Id: I027d25d7237989a40085edec7fdd399ac09c4db1 Issue-ID: SDC-3692 Signed-off-by: andre.schmid <andre.schmid@est.tech>
2021-08-27Improve invalid artifact label error messageKrupaNagabhushan2-1/+10
Issue-ID: SDC-3691 Signed-off-by: KrupaNagabhushan <krupa.nagabhushan@est.tech> Change-Id: I72f0fbec5839ecb343a73a9ca537e2e0a6437363
2021-08-27Fix get capability type with uidMichaelMorris2-4/+4
Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-3688 Change-Id: I2e74e612d90c984071cbf8f1dd43cf55a26034f5
2021-08-27Support querying of model by typeMichaelMorris7-11/+42
Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-3678 Change-Id: I5fd19eefe475113df501901628b2ee8669004399
2021-08-26Add types to importsvasraz9-109/+180
Change-Id: Ifa1dea17841d8667044aff4e7a9a17b2a75b78e4 Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Issue-ID: SDC-3684
2021-08-26Add ETSI SOL001 v2.5.1 model types to backend initdavsad37-6/+2203
Issue-ID: SDC-3685 Change-Id: I59e56cbe071c21467d0f683c7c977a8ceca6e221 Signed-off-by: davsad <david.sadlier@est.tech>
2021-08-26Remove usage of outdated library JMockit (catalog-dao)vasraz15-125/+137
Move JanusGraph to correct folder Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: I726b2a714e0b59422865ef6ca2e7ba9f5881353b Issue-ID: SDC-3379
2021-08-26Validate the Resource Model before importing VSPandre.schmid4-11/+94
Validates the Resource Model selected during the Import VSP. This model must be aligned with one of the models that the imported VSP relates to. Fix VSP package retrieval to get the exact version from the VSP chosen during the Import VSP process. Introduces a client in the Catalog to retrieve from the Onboarding backend a VSP information using its Id and version Id. Change-Id: Ic8fb52b6daadc0e7203c81a9c15c3e46d5b9fffb Issue-ID: SDC-3675 Signed-off-by: andre.schmid <andre.schmid@est.tech>
2021-08-25Import VSP with non-standard data typesMichaelMorris4-27/+88
Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-3673 Change-Id: I0fd16410788da3a82c74b1d38ffa4458e85e6ccc
2021-08-25Fix service csar with model download failureMichaelMorris1-3/+4
Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-3681 Change-Id: I824b38de5d0669db8aa3d47530fa02dcdf0d4871
2021-08-24Update backend-init to use new endpoints allowing specific modeldavsad5-21/+69
Issue-ID: SDC-3676 Signed-off-by: davsad <david.sadlier@est.tech> Change-Id: I5e77185dcaa0f3172958ac93198ae2df2f17366b
2021-08-24Fix artifact name invalid error messageKrupaNagabhushan3-4/+11
Issue-ID: SDC-3680 Signed-off-by: KrupaNagabhushan <krupa.nagabhushan@est.tech> Change-Id: I859953a9a0d8065437589cd7592137b14b29c7e5
2021-08-23Filter catalog in UI based on modeldavsad1-12/+20
Issue-ID: SDC-3679 Signed-off-by: davsad <david.sadlier@est.tech> Change-Id: Icd0eeb13dbfb1cc27745c7adf6a3212210e00a4a
2021-08-23Load model default imports during CSAR GenerationKrupaNagabhushan3-13/+65
Issue-ID: SDC-3674 Signed-off-by: KrupaNagabhushan <krupa.nagabhushan@est.tech> Change-Id: I89dc555a2a90f1ac44b44655e36a75a79ac38bd0
2021-08-17Validate model exists when associating typesKrupaNagabhushan8-14/+85
Issue-ID: SDC-3665 Signed-off-by: KrupaNagabhushan <krupa.nagabhushan@est.tech> Change-Id: I44de1c5bbd8854d02ae512f65833507aa3cbed6d
2021-08-12Update base types based on modelMichaelMorris10-26/+26
Also made some changes where model was not being considered Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-3666 Change-Id: I450c5261239cf4104c494abe6711cb61368a2b4a
2021-08-06Retrieve data types based on component modelaribeiro22-215/+153
Issue-ID: SDC-3660 Signed-off-by: aribeiro <anderson.ribeiro@est.tech> Change-Id: I09c533eb39277532b29e581e4dd57e9df952e8e6
2021-08-06Consider component model when retrieving interface typesdavsad5-28/+36
Issue-ID: SDC-3414 Signed-off-by: davsad <david.sadlier@est.tech> Change-Id: Ie16a2604cfdff042e32bfa4f9a3a509b5da22226
2021-08-05Disable locking during deploymentdavsad3-10/+114
Issue-ID: SDC-3643 Signed-off-by: davsad <david.sadlier@est.tech> Change-Id: I1a04c253d70bf5aebf33bba7b2b9f83bd559ae64
2021-08-04Import VSP top. template handling non SDC modelMichaelMorris6-90/+330
Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-3649 Change-Id: I2e2004187f5694f92d65b73139436fc990e7a6af
2021-08-04Consider component model when retrieving group and policy typesKrupaNagabhushan9-36/+126
Issue-ID: SDC-3659 Signed-off-by: KrupaNagabhushan <krupa.nagabhushan@est.tech> Change-Id: I6d58e51e70085adf114e6efd0c29b00b14358b39
2021-07-30Fix init upgrade fail for polictyTypesKrupaNagabhushan2-0/+30
Issue-ID: SDC-3658 Signed-off-by: KrupaNagabhushan <krupa.nagabhushan@est.tech> Change-Id: I13a0d97c543213bda289157f602b019c74811cbc