summaryrefslogtreecommitdiffstats
path: root/common-app-api
AgeCommit message (Collapse)AuthorFilesLines
2020-09-29Allow hot reloading of specific config propertiesaribeiro1-0/+5
getGlobalCsarImports and getDefaultImports entries are now not static which will allow to get new values if the config file change during runtime. Issue-ID: SDC-3303 Signed-off-by: aribeiro <anderson.ribeiro@est.tech> Change-Id: I870c13aec5d386aa3c87d6a335b5fb5948073954
2020-09-21Support for Test Topology Auto Design- Service Importzhaoxiangjun6662-0/+18
Add some test code and use lombok in catalog-model Test Topology Auto Design (NFV Testing Automatic Platform) Delete useless test code and add test code for new function Issue-ID: SDC-3179 Issue-ID: SDC-3085 Signed-off-by: zhaoxiangjun666 <xjzhaop@isoftstone.com> Change-Id: I7f555633a00848c273014caa18ea0e30d0b22113
2020-09-08Upgrade to java 11sebdet1-0/+25
MOve SDC to Java 11, this is one of the PR to move to Jdk 11, jenkins will have to be changed as well Issue-ID: SDC-2725 Change-Id: I85f13f14ba8004f6e9656093a837465a2e4af3e1 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Signed-off-by: xuegao <xg353y@intl.att.com> Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2020-09-07Fix Vulnerabilities reported by SONARvasraz15-483/+210
Change-Id: I8f4e173a4ea5111db55eebaf15be86f1583082ad Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Issue-ID: SDC-3248
2020-09-07Make directives options configurablearibeiro1-0/+9
Issue-ID: SDC-3275 Signed-off-by: aribeiro <anderson.ribeiro@est.tech> Change-Id: Ia91655f02c45d033ebae45bd6d9f252c2f6d6f47
2020-09-07Update version to 1.7.1sebdet1-1/+1
Update the pom to 1.7.1 so that we could deliver when we want Issue-ID: SDC-3274 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I1cea02ebe28cc7cbb03ea5dd3ced98953e32dfc1 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2020-09-07Replace artifact folder ONBOARDED_PACKAGE in CSARvasraz1-4/+4
Replace artifact folder ONBOARDED_PACKAGE for ETSI_PACKAGE in TOSCA CSAR. Also included VF artifacts will also have the same folder replaced. Change-Id: If03f13a80894e98a0abe1b849322f86a27dfd3f1 Issue-ID: SDC-3261 Signed-off-by: andre.schmid <andre.schmid@est.tech> Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech>
2020-09-07Rename ONBOARDED_PACKAGE folder to ETSI_PACKAGEKrupaNagabhushan1-0/+1
Issue-ID: SDC-3259 Signed-off-by: KrupaNagabhushan <krupa.nagabhushan@est.tech> Change-Id: I8bcaeb11536aa1c7ad8d15f00bdf5663e6a059b5
2020-09-07Plugin to Generate Service ETSI NSD CSARandre.schmid1-0/+1
Create a catalog backend plugin to generate an ETSI compliant Network Service Descriptor (NSD) CSAR as an artifact in the generated TOSCA CSAR package of a Service. Change-Id: I2b1556148be39d7bf37602335e638d0cee2b291b Issue-ID: SDC-3251 Signed-off-by: andre.schmid <andre.schmid@est.tech>
2020-08-16SDC changes for adding helmSithara Nambiar1-0/+1
Issue-ID: REQ-341 Signed-off-by: Sithara Nambiar <sitharav.aredath@huawei.com> Change-Id: I4721f6e8e2690dc5f7c10bb7b1b2f53ec5f318c7
2020-07-29Config. allowed instances in component compositionandre.schmid1-4/+14
During the creation of Resource and Services components, the allowed types to add in its composition are hard-coded. This change allows those types to be configurable using the configuration.yaml backend file. Change-Id: If48849b57fe5124468db3d55f2f06391348935fb Issue-ID: SDC-3177 Signed-off-by: andre.schmid <andre.schmid@est.tech>
2020-07-22Fix CRITICAL BUGvasraz1-28/+49
https://sonarcloud.io/project/issues?fileUuids=AXF_8JZ3aPDFCRVJURGa&id=onap_sdc&resolved=false&types=BUG Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Issue-ID: SDC-3204 Change-Id: I55f1c6c95c4de59d9ca5493d99c7fd3569379622
2020-06-25Rationalize maven dependenciesJulienBe1-22/+1
Issue-ID: SDC-3149 Signed-off-by: JulienBe <julien.bertozzi@intl.att.com> Change-Id: I1ee42494a4cc5b185b6dfcbee44399d2960cf880
2020-06-25add a new profil for fast buildJulienBe1-0/+1
Issue-ID: SDC-3148 Signed-off-by: JulienBe <julien.bertozzi@intl.att.com> Change-Id: Ie98194fe6d136f57491a0590ab2afc9db59fbfbd
2020-06-15Fix Critical security vulnerabilityvasraz1-0/+12
com.fasterxml.jackson.core : jackson-databind : 2.9.9 Change-Id: I81af7879cb1fbcd158177a3dc220b704ff2f3388 Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Issue-ID: SDC-3111
2020-05-28Allow global types generationaribeiro1-0/+9
This change allows to configure which global type file will be added to the generated CSAR Issue-ID: SDC-3021 Change-Id: I83c0c3f317c4a4e5e8dbf22cb3dbd47e63562d3a Signed-off-by: aribeiro <anderson.ribeiro@est.tech>
2020-05-07Reduce scope from 'compile' to 'test' for 'junit-vintage-engine'vasraz1-0/+1
Change-Id: I39b0be6ba6650c9a7215acf359f3d74e0a24e553 Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Issue-ID: SDC-2844 Issue-ID: SDC-2983
2020-05-07Support configuring of tosca type for categoriesMichaelMorris1-0/+18
Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-2877 Change-Id: I3160c5089979757628f31a44b01836236563b770
2020-05-06Prepare for Junit5vasraz1-297/+305
Remove unused/duplicated dependencies Change-Id: Iee0d9510ffbe3e2e14574e22ba965d6829fd568b Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Issue-ID: SDC-2844 Issue-ID: SDC-2983
2020-04-19Validates artifact configurationandre.schmid5-12/+303
Validates if all the SDC base artifacts are configured. The base artifacts are provided by the ArtifactTypeEnum. Change-Id: Iffa38d6ba276014940afad71f7472bc8d730fcf8 Issue-ID: SDC-2929 Signed-off-by: andre.schmid <andre.schmid@est.tech>
2020-04-19Configure a new Artifact Typeandre.schmid6-115/+331
Centralizes artifact configuration in one yaml entry. Allow the configuration of a new artifact type without the need of code changes. The configuration file now is used as a source of artifacts types instead the artifact type enum. The enum will be used as a source of base artifact types and also in hard coded business rules. Change-Id: Id0383d9fca9bce0519a4d52a4ecb3a68c8713f0f Issue-ID: SDC-2754 Signed-off-by: andre.schmid <andre.schmid@est.tech>
2020-04-19Simplified thread-safety for the `getGson` methodChris André1-5/+1
Issue-ID: SDC-2900 Signed-off-by: Chris Andre <chris.andre@yoppworks.com> Change-Id: I8c687bb408a5e0b1e95316bdae6d53126bc82696
2020-04-19ZipSlip test fails on Mac OSNeil Derraugh1-2/+2
Mac OS has a symlink in the tmp dir that gets created in the test for ZipSlip. Using real paths prevents the test test from failing by using actual paths instead of a potentially different symlinked path to the canonical path. Issue-ID: SDC-2887 Signed-off-by: neil.derraugh <neil.derraugh@yoppworks.com> Change-Id: Iafb0a84f6ab68276c5782c1ef716c59435aa72f5
2020-04-19Removed explicit references to exceptions in log messagesChris André2-9/+9
Issue-ID: SDC-2884 Change-Id: I6f3e9503922cc3a4f4049fced8d23cede7b0455a Signed-off-by: Chris Andre <chris.andre@yoppworks.com>
2020-04-16Upgrade Junit to version 5.6Baumel, Dvir (db384r)1-0/+14
Issue-ID: SDC-2844 Change-Id: I4716bf7920f9bb79c450ebfd48e9d4fba54fdfdd Signed-off-by: Baumel, Dvir (db384r) <dvir.baumel@intl.att.com>
2020-03-16Remove hardcoded timeoutk.kedron1-0/+9
Added configuration for wait seconds for Cassandra connector. Also, increase the timeout value to prevent tests failed. Issue-ID: SDC-2759 Signed-off-by: Krystian Kedron <k.kedron@partner.samsung.com> Change-Id: I1008ecce98efdd8627ac3232b35fecd2a41a9c79
2020-03-12Disable SecurityFilterOfir Sonsino1-1/+1
Bumping version to 1.7.0 Change-Id: I041bb5ce967b687e10be97dbbaa3ba1d119d13ff Issue-ID: SDC-2825 Signed-off-by: Ofir Sonsino <os0695@intl.att.com>
2020-03-05Fix broken CSITvasraz1-1/+2
Change-Id: I92785294ef0e49477e8c33e30285b7d5978910a9 Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Issue-ID: SDC-2759
2020-02-25Support import of custom node type namearibeiro1-0/+9
Issue-ID: SDC-2760 Signed-off-by: aribeiro <anderson.ribeiro@est.tech> Change-Id: I3645c737ba367a3576d58afb581c8118eb0f6011
2020-02-24PM_Dictionary Support in GABTomasz Golabek1-3/+3
Generic Artifact Browser is visible for PM_DICTIONARY artifacts Two agreed formats of the artifact are supported (examples in tests) Small fix for searchable fields and introduced new once for PM_DICTIONARY: measType measDescription measObjClass measFamily measInfoId Change-Id: I2cb609bab6405b55e8099da023ae035205dcd1ab Issue-ID: SDC-2095 Signed-off-by: Tomasz Golabek <tomasz.golabek@nokia.com>
2020-02-18Configuration file runtime reloadandre.schmid12-220/+185
Reloads the backend configuration file when the file listener catches a change. Forces validations errors when the configuration file could not be parsed. Remove not used configurations. Change-Id: Ic6fcb2b557d52ec53074c38ab8e0fcfa96e9be67 Issue-ID: SDC-2758 Signed-off-by: andre.schmid <andre.schmid@est.tech>
2020-02-02Move to version 1.6.1shrek20001-1/+1
Move SDC to version 1.6.1 Issue-ID: SDC-2755 Signed-off-by: shrek2000 <oren.kleks@amdocs.com> Change-Id: If5c55fdebb5bc2591190ee4389487f6dbb0e1831 Signed-off-by: shrek2000 <oren.kleks@amdocs.com>
2020-01-30Upgrade to Cassandra 3shrek20001-0/+6
Creating base dockers suitable for Cassandra 3 remove cqlsh version Change-Id: I996bad2341410cdf45c49f191e998acf4781fc5d Issue-ID: SDC-2596 Signed-off-by: shrek2000 <oren.kleks@amdocs.com>
2020-01-29Fix CLM job for NexusIQ scanOfir Sonsino1-7/+0
Deploying common-app-api so it can be found in Nexus Change-Id: I71401f70fa9c027be3a27be8ff253716961805d4 Issue-ID: SDC-2737 Signed-off-by: Ofir Sonsino <os0695@intl.att.com>
2020-01-23remove unnecessary dependencies from pomYuli Shlosberg1-1/+1
Issue-ID: SDC-2734 Signed-off-by: Yuli Shlosberg <ys9693@att.com> Change-Id: I7ce13f05f646689ae730959d9d81b3b0b95cbbe6
2020-01-22Catalog alignmentys9693158-10239/+7212
Issue-ID: SDC-2724 Signed-off-by: ys9693 <ys9693@att.com> Change-Id: I52b4aacb58cbd432ca0e1ff7ff1f7dd52099c6fe
2019-12-18Revert "Add Option to proxy to plugins"aribeiro1-13/+95
This reverts commit ee4c4d72 Issue-ID: SDC-2648 Change-Id: I1f6cba80d3fb803530573c75f2fc54ca207e768a Signed-off-by: aribeiro <anderson.ribeiro@est.tech>
2019-12-05Add Option to proxy to pluginsilanap1-95/+13
Added option to proxy the plugins throught the catalog proxy. Remove hardcoded redirect to workflow and added to the plugin configuration. Issue-ID: SDC-2691 Signed-off-by: ilanap <ilanap@amdocs.com> Change-Id: Ica479ff00e1a8c281b9280b5495ac022172775c4 Signed-off-by: ilanap <ilanap@amdocs.com>
2019-11-27Add API to retrieve UI configurationilanap5-0/+316
Added configuration file with the menu configuration from catalog-ui. Added to the configuration manager. to chef and to the ui rest APIs. Issue-ID: SDC-2663 Signed-off-by: ilanap <ilanap@amdocs.com> Change-Id: Ia5e014a273238981241821c0d81b0455bd662b28 Signed-off-by: ilanap <ilanap@amdocs.com>
2019-11-25Fix Sonar issuevasraz2-5/+5
Major SmellCode: Replace StringBuffer with StringBuilder Change-Id: I0283e5160e5c1f23423c66110015f18c8163411e Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Issue-ID: SDC-2670
2019-11-06Fix sonarqube issues introduced by ZipSlip changeandre.schmid1-20/+27
Fix major and critical sonarqube issues introduced by ZipSlip change id I721f3d44b34fe6d242c9537f5a515ce1bb534c9a Change-Id: I3aa2cd4116936d715baba99a38d43aa40fd62a29 Issue-ID: SDC-1401 Signed-off-by: andre.schmid <andre.schmid@est.tech>
2019-11-03Create new non-mano Artifact Type entry for pnf software informationaribeiro3-30/+15
Issue-ID: SDC-2615 Change-Id: I4dd879d50b1dec58aceeaf0c265901c62d038071 Signed-off-by: aribeiro <anderson.ribeiro@est.tech>
2019-10-30Fix zip slip security flawandre.schmid10-202/+598
Apply zip slip checking in zip operations throughout the system. Centralizes most of the zip logic in one class. Create tests to zip functionalities and zip slip problem. Change-Id: I721f3d44b34fe6d242c9537f5a515ce1bb534c9a Issue-ID: SDC-1401 Signed-off-by: andre.schmid <andre.schmid@est.tech>
2019-10-29Bump SDC version 1.6.0Ofir Sonsino1-1/+1
Change-Id: Ibacb46d19d49023a62caa8f5217086cea6c91ac4 Issue-ID: SDC-2560 Signed-off-by: Ofir Sonsino <os0695@intl.att.com>
2019-09-10Bump SDC version 1.5.2Ofir Sonsino1-1/+1
Change-Id: Ib672dc8d60a0b6f4b37fd94afe84bc27dfba4c44 Issue-ID: SDC-2560 Signed-off-by: Ofir Sonsino <os0695@intl.att.com>
2019-09-03unit tests - common-app-apiTomasz Golabek4-0/+236
Additional junit tests for common Change-Id: I79dd83e4de767652c019db292bdf7a23d9dca8a4 Issue-ID: SDC-2326 Signed-off-by: Tomasz Golabek <tomasz.golabek@nokia.com>
2019-09-02testing common-app-api utils YamlToObjectConverterBartosz Gardziejewski1-0/+176
Issue-ID: SDC-2326 Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: I10fc2d7a35150e97b90a1c69c4faac949e439db3
2019-08-30testing common-app-api utils ValidationUtilBartosz Gardziejewski1-356/+780
Issue-ID: SDC-2326 Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: I49339dd340b2262f81d750ae7fe6165f3fabca14
2019-08-29refactoring tests in Common-App-Api utilBartosz Gardziejewski9-102/+832
Issue-ID: SDC-2326 Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: Id2c3d3ade4ec176eaee6302c46ddc4009eb40931
2019-08-23increasing test coverage in common-app-api common catalogBartosz Gardziejewski7-4/+450
Issue-ID: SDC-2326 Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: Ida905fc6f0f28d75522c865d33abf636c1fb7fdb