summaryrefslogtreecommitdiffstats
path: root/catalog-be/src/main
AgeCommit message (Collapse)AuthorFilesLines
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
2021-07-28Consider component model when retrieving capability typesKrupaNagabhushan2-4/+5
Issue-ID: SDC-3642 Signed-off-by: KrupaNagabhushan <krupa.nagabhushan@est.tech> Change-Id: Ie09b5f8d64b95fc2db14f19d3857a9935075b2fe
2021-07-23Reduce usage of outdated library JMockit (catalog-be)vasraz4-14/+7
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: I9a0e4cb7a5853e7f0d9e4eb819d4e63dacadfdf2 Issue-ID: SDC-3379
2021-07-23Fix upgrade for different vendor releaseandre.schmid2-23/+47
Change-Id: Id5769b45c4b41fd40b7bac25407c046b8fe787e7 Issue-ID: SDC-3644 Signed-off-by: André Schmid <andre.schmid@est.tech>
2021-07-23Remove commented code from PolicyBusinessLogicandre.schmid1-167/+1
Change-Id: I171a9b613625fd9d34fcfbd6aed8cd44f9fc1892 Issue-ID: SDC-3645 Signed-off-by: André Schmid <andre.schmid@est.tech>
2021-07-21Consider component model when retrieving relationship typesKrupaNagabhushan2-4/+8
Issue-ID: SDC-3640 Signed-off-by: MichaelMorris <michael.morris@est.tech> Change-Id: Ic06a9085b8aa2f44b8d33d7de12eadf691106131 Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Signed-off-by: KrupaNagabhushan <krupa.nagabhushan@est.tech>
2021-07-21Support for associating interface types to modelsdavsad2-7/+17
Issue-ID: SDC-3639 Change-Id: I5eaa9ffbe3c88416bf17ff9a94e76faad79fe888 Signed-off-by: davsad <david.sadlier@est.tech>
2021-07-21Support for associating policy and group types to modelsKrupaNagabhushan4-22/+40
Issue-ID: SDC-3641 Signed-off-by: KrupaNagabhushan <krupa.nagabhushan@est.tech> Change-Id: I68f5d13dd41b577cf76555b11d9c90d7a5cc4832
2021-07-21Display model namearibeiro1-0/+1
Issue-ID: SDC-3632 Signed-off-by: aribeiro <anderson.ribeiro@est.tech> Change-Id: I7c6ec805298dee7b8327769b48c157f2bf0c30f9
2021-07-15Allow only types from selected model in service creationaribeiro8-20/+49
Issue-ID: SDC-3629 Signed-off-by: aribeiro <anderson.ribeiro@est.tech> Change-Id: I98edb8a1133b2df8d884782f3fb2758b42b94158
2021-07-15Specify model at service creationaribeiro4-1/+7
Allows a user to select a model when designing a service Issue-ID: SDC-3621 Signed-off-by: aribeiro <anderson.ribeiro@est.tech> Change-Id: I386e43ddeb649a4ba0805f153e4b47e8a528cff0
2021-07-13Exposing new parameters in chef config for SDCmarine3-5/+11
Issue-ID: SDC-3633 Change-Id: Ib59ecbe151b3d7fb5b52241102f5c7dfc520003b Signed-off-by: xuegao <xue.gao@intl.att.com>
2021-07-05Support for associating node types to modelsaribeiro10-47/+164
Issue-ID: SDC-3597 Signed-off-by: aribeiro <anderson.ribeiro@est.tech> Signed-off-by: MichaelMorris <michael.morris@est.tech> Change-Id: Icd0066240b78ba98d8f0efab66d11756f18cb251
2021-07-05Create REST endpoint to retrieve modelsandre.schmid2-0/+38
Change-Id: Ifca0095d84d5da4ab4b055942d893e9c6a259eb7 Issue-ID: SDC-3622 Signed-off-by: André Schmid <andre.schmid@est.tech>
2021-07-05Refactor Substitution filters structureKrupaNagabhushan1-12/+8
The refactor removes unnecessary component id from the substitution filters structure, as the substitution filters belongs to and only to the component. This also avoid any copying issues during the new version creation, as there is not need to update the structure with a new component id. Issue-ID: SDC-3619 Signed-off-by: KrupaNagabhushan <krupa.nagabhushan@est.tech> Change-Id: Ibcfd9be0c8ceb95d5c1c3bd3f21c3dec26c398f7
2021-06-14Init ONAP model imports using the model APIandre.schmid11-34/+2436
Creates a client for the model endpoint in the catalog init scripts. Introduces the directory structure to provide the models along its imports, separated by init/upgrade phase. Each model structure will be zipped and uploaded to the endpoint, based on the model directory name. Change-Id: I0392c1e6d3a29b30567b11016041a8e9cccbc745 Issue-ID: SDC-3615 Signed-off-by: André Schmid <andre.schmid@est.tech>
2021-06-14Add models imports endpoint and persistence structureandre.schmid4-19/+142
Create the structure to persist the model imports. Changed create model API, allowing to create a model along its TOSCA descriptor import structure. Introduced an endpoint to update the imports of a model. Change-Id: Ic775ef544051c29c721cacc20b37c2fb20338be9 Issue-ID: SDC-3614 Signed-off-by: André Schmid <andre.schmid@est.tech>
2021-06-14Support adding capability types to modelMichaelMorris2-9/+16
Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-3612 Change-Id: I5d3713ba420c2392dd232b5651aef4d51560ab4a
2021-06-08Support adding data types to modelMichaelMorris6-86/+24
Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-3611 Change-Id: Ia9fd2437b71a2cd4fc853ff6a1f4fd37fe09a685
2021-06-08Support adding of relationship type to modelMichaelMorris2-14/+44
Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-3610 Change-Id: If315e21fa40e491cb1977dd9ceaf3e9b607e2f6f
2021-05-28Add Support for creating model typearibeiro3-1/+174
Add new vertex type called "model" was added to represent models Add new edge type called MODEL_ELEMENT was added to connect a tosca type to a model Add new edge type called MODEL was added to connect a resource/service to the model it is based on Issue-ID: SDC-3596 Signed-off-by: MichaelMorris <michael.morris@est.tech> Signed-off-by: aribeiro <anderson.ribeiro@est.tech> Change-Id: I310e14d0cf5a9ca0eb0bda592efe8a3baf73749c
2021-05-27Update vulnerable package dependenciesvasraz32-35/+35
org.apache.commons.lang -> org.apache.commons.lang3:3.10 Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: I5806fd786394d278244fd88ea4925a91c2f05622 Issue-ID: SDC-3572
2021-05-24[SDC] Fix sonar issuessliard34-258/+242
Fix all blocker issues for catalog-be Issue-ID: SDC-3598 Signed-off-by: sliard <samuel.liard@gmail.com> Change-Id: I53907c1be4cac5dd94b6f20ab4e5848f6fcebed9
2021-05-15Improve test coveragevasraz2-25/+9
Change-Id: I2b02d85d9d395d9092d43bd54e21179aff29df91 Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Issue-ID: SDC-3584
2021-05-15Support for selection of capabilitiesandre.schmid9-6/+373
Change-Id: Ib1a3e3e1a59fc84c62620932c408e231acf77024 Issue-ID: SDC-3580 Signed-off-by: André Schmid <andre.schmid@est.tech>
2021-05-12Use integration-java11 Dockerfilesebdet17-124/+108
Use onap/integration-java11:7.1.0 as a source for the images requiring JDK 11 in SDC Issue-ID: SDC-3298 Change-Id: Ifee3d2942dcb9c078f2ebb686bdabc0ecca857b3 Signed-off-by: xuegao <xue.gao@intl.att.com>
2021-04-28Add Service Template instance attributes to TOSCA Exportvasraz3-98/+146
Change-Id: I66c4f682814981b9829ad099e35f96a80927e7dc Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Issue-ID: SDC-3568
2021-04-19Fix VSP update backend processandre.schmid1-1/+5
Fix the VSP update procedure which was being rejected by a condition that checks if a VFC being created has the same name, type and vendor release. This was recently introduced to avoid duplicate VFC creation during the initialization process. This change adds a condition to confirm that no VSP CSAR is involved, before trying to check for the name, type and vendor release. Change-Id: Ie46195e810cd72f7412acc7cb01a764ef010f58d Issue-ID: SDC-3561 Signed-off-by: André Schmid <andre.schmid@est.tech>
2021-04-19Fix 'Unable to save changed attributes default value'vasraz2-54/+244
Implements missing functionality to save changed attribute Change-Id: I1bc828ef133c8a2bf2fd6333a51fb46fc41b6547 Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Issue-ID: SDC-3562
2021-04-19Include 4.1.1 vduCp in deploymentMichaelMorris3-1/+3
Node type was already added, but not include in the list of types to be deployed during install or upgrade Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-3509 Change-Id: I71a3a9942cb7d5b6adb194b7e7f2aa4be6533ac6
2021-04-13Fix 'Unable to delete declared outputs'vasraz5-162/+4
Change-Id: I11cd688f4c3ad25cbcb32e9f9b3dee782fc70fa7 Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Issue-ID: SDC-3557
2021-04-12Fix default imports being amendedMichaelMorris1-2/+2
Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-3552 Change-Id: Ibb5cfbba2075820c798eae1726953871140ddce5
2021-04-09Set default value for ETSI versionMichaelMorris1-1/+2
Sets the default value for ETSI version and updates code to use the default value for any mandatory category specific metdata with null values. Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-3548 Change-Id: I445443d1de9447945fb0dd8babd3fcebd8e8ed7d
2021-04-09Allow property to take its value from defined input listKrupaNagabhushan2-1/+43
Issue-ID: SDC-3547 Change-Id: Ic438e8f8943d0f1c656e386611b88b25f879e83b Signed-off-by: KrupaNagabhushan <krupa.nagabhushan@est.tech> Signed-off-by: andre.schmid <andre.schmid@est.tech>
2021-03-29Fix restricting valid values for ONAP service metadatadavsad1-1/+3
Issue-ID: SDC-3539 Signed-off-by: davsad <david.sadlier@est.tech> Change-Id: I10658e29bc986f9fd9c5d5d6ce34d0bd02d70e11
2021-03-26Improve test coveragexuegao1-39/+7
Add unit tests to improve test coverage. Issue-ID: SDC-3428 Change-Id: I6eb08c6094e0c06bd781b88b00f9301b43f1e965 Signed-off-by: xuegao <xue.gao@intl.att.com>
2021-03-26Fix issue with global substitutionsMichaelMorris1-1/+5
Check if node types in the global substitutions file already exist before attempting to create them Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-3533 Change-Id: I8129e3108e27f3bae4f33e1bd652d8b74ae34de9
2021-03-24Handles ComponentException during Import VSPandre.schmid1-1/+6
The ComponentException was being treated as a GENERAL_ERROR and loosing its message and HTTP status. Change-Id: Ia632ec53f10920a69a53eed3aedee773ef5e4d2f Issue-ID: SDC-3530 Signed-off-by: andre.schmid <andre.schmid@est.tech>
2021-03-24Enable selection of base type of servicevasraz6-16/+92
Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-3506 Change-Id: Iaba39955fac9056cb0d0f1eccd223c05dfb9c5b4 Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech>
2021-03-19Publish swagger files for SDC APIsMichaelMorris56-52/+163
I have created a swagger file for each of the APIs as they are currently listed on the architecture page. Some of the files can be easily be combined if some of the APIs are combined. I have created a single file for SDCE-2 and SDCE-5 as it is not possible to seperate as they are both paritially implemented in the same class with overlapping paths I have copied the generated swagger files to the docs directory as I suspect they need to be under source control for the generation of the readthedocs page Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-3525 Change-Id: Id42412704311a573e3ebf911ad34d909c1c3f1b2
2021-03-19Reformat catalog-bevasraz552-35340/+25333
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Issue-ID: SDC-3449 Change-Id: I45ae9fef826bcd5e3aa65c81d232d349faf02f91
2021-03-18Improve test coveragevasraz1-2/+1
Use Lombok annotations to improve test coverage Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: Iaaed0023960cfe0a31e1b50fb868196ab488cb4c Issue-ID: SDC-3428
2021-03-17Fix Substitution Mapping for inputs created independentlyKrupaNagabhushan2-1/+2
Issue-ID: SDC-3515 Signed-off-by: KrupaNagabhushan <krupa.nagabhushan@est.tech> Change-Id: I90e489ac7f7a244d1338d0d6f6c3c2413a131fcc
2021-03-17Support default value for category specific metadatadavsad1-0/+1
Issue-ID: SDC-3513 Signed-off-by: davsad <david.sadlier@est.tech> Change-Id: I4697b66c6d59c1464cf81f9c68fe76b6ca24472c
2021-03-16Remove unused dcae-be healthcheckChrisC4-36/+1
Remove DCAE-DS backend Healthchecks that are noisy in the logs DCAE-DS was sunset in G release Issue-ID: SDC-3514 Signed-off-by: ChrisC <christophe.closset@intl.att.com> Change-Id: Iad9d6738ec813be9b87766ed189deda34e711ab1
2021-03-16Adding ETSI SOL001 v4.4.1 vduCpMichaelMorris3-0/+66
Previous version does not have 'container_binding' needed for CNF onboarding Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-3509 Change-Id: I0894b3ec818f1448997a99c2754153998bf77151