summaryrefslogtreecommitdiffstats
path: root/openecomp-be
AgeCommit message (Collapse)AuthorFilesLines
2019-10-29Bump SDC version 1.6.0Ofir Sonsino138-138/+138
Change-Id: Ibacb46d19d49023a62caa8f5217086cea6c91ac4 Issue-ID: SDC-2560 Signed-off-by: Ofir Sonsino <os0695@intl.att.com>
2019-10-25Avoid duplicated verification if package is signedvasraz2-93/+100
Fix potential thread leak by using try-with-resource. Change-Id: I20eda524cd028b9dfdfa83207a059f4e1dfeff5e Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Issue-ID: SDC-2580
2019-10-24Fix and refactor manifest parsingandre.schmid44-460/+1536
Fix a CMS signature reading expected token. Fix the necessity of a empty line in the end of the manifest. Implement CMS signature, Source checksum algorithm and digest reading. Indicate the line number and content when a manifest error occurs. Remove unnecessary recursive reading. Centralize manifest tokens. Improve tests by checking the expected error. Document the code. Change-Id: I7d12020d8922fc5d4c8d9f238557dfbcc0b65757 Issue-ID: SDC-2563 Signed-off-by: andre.schmid <andre.schmid@est.tech>
2019-10-21Fix factory instance creation instabilityandre.schmid20-272/+216
Refactor the factory registry and instance creation. Remove unnecessary static code in Factory creation. Centralize the responsibility to read the factory registry configuration and cache the factory instances in a Singleton called FactoryRegistryManager. Clean the base abstract factory that was sharing non factory code, it had all the factory registry code statically, never used by the concrete factory classes. Change-Id: Ie2e9c29013acd36ddaf15383dd6b06432fbdbb66 Issue-ID: SDC-1905 Signed-off-by: andre.schmid <andre.schmid@est.tech>
2019-09-10Bump SDC version 1.5.2Ofir Sonsino138-138/+138
Change-Id: Ib672dc8d60a0b6f4b37fd94afe84bc27dfba4c44 Issue-ID: SDC-2560 Signed-off-by: Ofir Sonsino <os0695@intl.att.com>
2019-09-09Updated the sdc cert for ONAP namespace in the kubernetes.k.kedron3-4/+4
Issue-ID: SDC-2539 Signed-off-by: Krystian Kedron <k.kedron@partner.samsung.com> Change-Id: I4dba563d5dd8b041a2a61076a9ccbabcc4d22316
2019-09-04openecomp-be code coverage increasePiotr Darosz9-0/+285
Add tests for classes in sdc.vendorsoftwareproduct.types.schemagenerator package Change-Id: Iabd22f88a5106c881ee687a4b57a62f59c0bc10e Issue-ID: SDC-2326 Signed-off-by: Piotr Darosz <piotr.darosz@nokia.com>
2019-09-04unit tests - NetworkPackageHealerTomasz Golabek2-373/+423
Additional junit tests using mockito Change-Id: I1a48d0dd15a3319dc096816ea36346f4b13322fc Issue-ID: SDC-2326 Signed-off-by: Tomasz Golabek <tomasz.golabek@nokia.com>
2019-09-04common code coverage increasePiotr Darosz1-0/+9
Add tests for classes in sdc.tosca.datatypes.model package Change-Id: Ifc277512d833b2501f0e594b9062d39c26565055 Issue-ID: SDC-2326 Signed-off-by: Piotr Darosz <piotr.darosz@nokia.com>
2019-09-04openecomp-be code coverage increasePiotr Darosz5-0/+422
Add tests for classes in openecomp.core.model.types package Change-Id: I1c8044b2c8d422468dba610b2012e1cb34a75835 Issue-ID: SDC-2326 Signed-off-by: Piotr Darosz <piotr.darosz@nokia.com>
2019-09-04unit tests - openecomp-sdcTomasz Golabek7-0/+234
Additional junit tests mostly for pojos Change-Id: I851d7df94b1e1c225d087b8881c3c1cd30867efb Issue-ID: SDC-2326 Signed-off-by: Tomasz Golabek <tomasz.golabek@nokia.com>
2019-09-03Implement PNFD Model driven conversionandre.schmid100-523/+3636
Change-Id: I7427e82353cac17817457294d78953f867d2d6e8 Issue-ID: SDC-2509 Signed-off-by: andre.schmid <andre.schmid@est.tech>
2019-09-03Onboard Package Handlingaribeiro19-303/+529
Retain the original onboarded package when it comes in zip/csar format. Issue-ID: SDC-2510 Change-Id: Ie293db25eca8872be26ffc8475b25ccace1aab6f Signed-off-by: aribeiro <anderson.ribeiro@est.tech>
2019-09-03unit tests - openecomp-sdcTomasz Golabek11-40/+248
Additional junit tests for action, type etc. Change-Id: I93b088035fca13db4fdcf9da0d58e7f01ee4f976 Issue-ID: SDC-2326 Signed-off-by: Tomasz Golabek <tomasz.golabek@nokia.com>
2019-09-03openecomp-utilities-lib code coverage increasePiotr Darosz2-3/+66
Add tests for RequirementDefinitionDeserializer class Change-Id: I038f73fad4daa3eab931c566668359db9b5f6dc6 Issue-ID: SDC-2326 Signed-off-by: Piotr Darosz <piotr.darosz@nokia.com>
2019-09-03General Sonar fixesArindam Mondal2-15/+64
+)Organize imports ++) log formatter Issue-ID: SDC-2542 Change-Id: Ibb4b568b19ee40a68f783bfa820bd7c73aae5c1f Signed-off-by: arindamm <arind.mondal@samsung.com>
2019-09-03Fixed ready-probe filek.kedron1-2/+1
Fixed ready-probe script url endpoint. Issue-ID: SDC-2548 Signed-off-by: Krystian Kedron <k.kedron@partner.samsung.com> Change-Id: Ibfc2d9199bd01678766810540df594d70812bd9e
2019-09-03openecomp-be code coverage increasePiotr Darosz12-18/+336
Add tests for classes in generator.datatypes.tosca package Change-Id: Ic21b4e05d15e881016fa5f25113625bc441924c9 Issue-ID: SDC-2326 Signed-off-by: Piotr Darosz <piotr.darosz@nokia.com>
2019-09-03openecomp-be code coverage increasePiotr Darosz18-6/+525
Add tests for classes in vendorsoftwareproduct.types.composition package Change-Id: I2b05536a4fd80021bfedd2e7ff0f1747f6227935 Issue-ID: SDC-2326 Signed-off-by: Piotr Darosz <piotr.darosz@nokia.com>
2019-09-02unit tests - openecomp-beTomasz Golabek5-0/+171
Additional junit tests for zusammen models Change-Id: I4593d5c5dfd9619f36c69096462ed5de08b189f0 Issue-ID: SDC-2326 Signed-off-by: Tomasz Golabek <tomasz.golabek@nokia.com>
2019-09-02unit tests - openecomp-bePiotr Darosz8-0/+335
Additional junit tests for dao-types Issue-ID: SDC-2326 Signed-off-by: Piotr Darosz <piotr.darosz@nokia.com> Change-Id: I195610e66628d5d8546846592c98c726ba81824d
2019-09-01Fix artifacts references in main TOSCA descriptorandre.schmid11-479/+745
During package conversion, artifacts can have their path changed. References for those artifacts inside the main TOSCA descriptor must be updated accordingly. Change-Id: Idcffb0724c20875ff1decebfec7c47605bfe20dc Issue-ID: SDC-2540 Signed-off-by: andre.schmid <andre.schmid@est.tech>
2019-08-30unit tests - openecomp-beTomasz Golabek18-0/+551
Additional junit tests for vendor-license-api-types Change-Id: I343d04f001a92d47aa411e6bda498fa772040e5b Issue-ID: SDC-2326 Signed-off-by: Tomasz Golabek <tomasz.golabek@nokia.com>
2019-08-30unit tests - openecomp-beTomasz Golabek46-0/+2114
Additional junit tests for vendor-software-product-rest-types Change-Id: I757fe0eed085b6ce880dda143ad1fceac220aafe Issue-ID: SDC-2326 Signed-off-by: Tomasz Golabek <tomasz.golabek@nokia.com>
2019-08-30Update ready-probe filek.kedron2-8/+13
Update ready-probe file to support the https mode. Issue-ID: SDC-2548 Signed-off-by: Krystian Kedron <k.kedron@partner.samsung.com> Change-Id: I78328d7575d202d1d241785e07fb57573ffe2739
2019-08-29unit tests - openecomp-beTomasz Golabek10-134/+656
Additional junit tests for item-rest-services and unique-type-rest-services Change-Id: I330954ad4eb432c126c7f163f9fdea30d3173cd9 Issue-ID: SDC-2326 Signed-off-by: Tomasz Golabek <tomasz.golabek@nokia.com>
2019-08-29unit tests - openecomp-beTomasz Golabek27-22/+836
Additional junit tests for conflict-rest-types and vendor-license-rest-types Change-Id: I3e58d8a85f40e0f3a2e64c2b3195c97bb71a8fbd Issue-ID: SDC-2326 Signed-off-by: Tomasz Golabek <tomasz.golabek@nokia.com>
2019-08-28remove duplicated dependenciesvasraz7-41/+0
Change-Id: I60962892f035d81943567a0b3d7819ef3cab52f7 Issue-ID: SDC-2388 Signed-off-by: vasraz <vasyl.razinkov@est.tech>
2019-08-26Fixed pom spring version configurationk.kedron1-2/+1
Fixed pom configuration in the application-config-rest-service Issue-ID: SDC-2326 Signed-off-by: Krystian Kedron <k.kedron@partner.samsung.com> Change-Id: I1ea39c42dcb0d257ee3c47e2920550dda07010ce
2019-08-26Add unit test for DuplicateComputeInComponentErrorBuilder and refactor ↵m.kowalski34-7/+42
ComponentDependencyModelErrorBuilder Issue-ID: SDC-2327 Signed-off-by: Marcin Kowalski <m.kowalski3@partner.samsung.com> Change-Id: Icb6cf51f7777a8a9d3b237ecd98579edc11f9ebb
2019-08-22unit tests - sdc-healthcheck-managerTomasz Golabek13-118/+210
Additional junit tests Change-Id: I6562e5085f7bfd692db129bf1706f3f569ebd793 Issue-ID: SDC-2326 Signed-off-by: Tomasz Golabek <tomasz.golabek@nokia.com>
2019-08-22Unit tests - openecomp-sdc-validation-managerTomasz Golabek15-2/+426
Tests for org.openecomp.sdc.validation Change-Id: If0acdb2f453b5cd60d0ec49870f1467cdd212492 Issue-ID: SDC-2326 Signed-off-by: Tomasz Golabek <tomasz.golabek@nokia.com>
2019-08-21unit tests - sdc-common-restTomasz Golabek6-5/+244
Additional junit tests Change-Id: Ieeb6f02e1d5abf131882c530a0ba3a395d56c6cd Issue-ID: SDC-2326 Signed-off-by: Tomasz Golabek <tomasz.golabek@nokia.com>
2019-08-21increasing test coverage in openecomp-be apiBartosz Gardziejewski30-4/+1224
Issue-ID: SDC-2326 Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: I93cc5183190fcbada2349b18f14fbec9c28f1ae5
2019-08-21Unit tests - openecomp-sdc-vsp-managerTomasz Golabek9-0/+347
Tests for org.openecomp.sdc.vendorsoftwareproduct Change-Id: I737b8ca71219c3e241f902a34419c685435e467c Issue-ID: SDC-2326 Signed-off-by: Tomasz Golabek <tomasz.golabek@nokia.com>
2019-08-21Unit tests - togglz-rest-typesTomasz Golabek3-0/+83
Tests for org.openecomp.sdcrests.togglz Change-Id: Ic507eee3e77fbbe727b0deeb3912103d0c7737db Issue-ID: SDC-2326 Signed-off-by: Tomasz Golabek <tomasz.golabek@nokia.com>
2019-08-20Removed dummy subprojectTomasz Golabek4-72/+0
Change-Id: Idb5d33229c76bec9768c8c6c1d73faa96fff2225 Issue-ID: SDC-2326 Signed-off-by: Tomasz Golabek <tomasz.golabek@nokia.com>
2019-08-18Handle 'get_input' syntax for layer_protocols in PnfExtCp typevasraz8-98/+358
Change-Id: I52f91e47dbda20c8c0701ee25f2eec5a83815112 Issue-ID: SDC-2427 Signed-off-by: vasraz <vasyl.razinkov@est.tech>
2019-08-14HTTPS calls for sdc-onboardingr.bogacki8-11/+10
Implement HTTPS calls into sdc-onboarding -Added p12 keystore certificate. -Updated application configuration. -Added trust-store. Issue-ID: SDC-2498 Signed-off-by: Robert Bogacki <r.bogacki@samsung.com> Signed-off-by: Krystian Kedron <k.kedron@partner.samsung.com> Change-Id: Ia96c42cddee5fd94014963c9d2f584b098693a9a
2019-08-13Add unit tests for NicInternalNetworkErrorBuilderm.kowalski31-2/+28
Issue-ID: SDC-2327 Signed-off-by: Marcin Kowalski <m.kowalski3@partner.samsung.com> Change-Id: I8a6127218edf895b8b43d973348cc47794e212c1
2019-08-08Additional unit testsTomasz Golabek1-0/+77
Tests for ItemVersionConflictConverter Change-Id: I5bf7ac9322e44d7021f87c9853ae250024172f0c Issue-ID: SDC-2326 Signed-off-by: Tomasz Golabek <tomasz.golabek@nokia.com>
2019-08-08Additional unit testsTomasz Golabek4-7/+165
Tests for ConflictsDaoImpl Change-Id: I7fd472b55a96a314992be0e49725d8844167ff4d Issue-ID: SDC-2326 Signed-off-by: Tomasz Golabek <tomasz.golabek@nokia.com>
2019-08-08Additional unit testsTomasz Golabek7-2/+170
Tests for conflict-api mostly bean matchers for getters and setters Change-Id: I924b17986dfbc419da391fae0d33bb458d97f465 Issue-ID: SDC-2326 Signed-off-by: Tomasz Golabek <tomasz.golabek@nokia.com>
2019-08-06Validate PM Dictionary and VES Events YAML Filesandre.schmid12-130/+791
Validate, during the package onboarding, YAML files declared in the manifest as type onap_ves_events or onap_pm_dictionary under non_mano_artifact_sets. Check if the file is not empty, if has a yaml extension and if it has a valid yaml content. Change-Id: I260d0f5355e9e77b6499f553f8aa9f7e6d0693da Issue-ID: SDC-2475 Signed-off-by: andre.schmid <andre.schmid@est.tech>
2019-07-28Update SDC version 1.5.1Ofir Sonsino139-139/+139
Change-Id: Id2182099210982248584c1fcf4569a1360d82f1d Issue-ID: SDC-2478 Signed-off-by: Ofir Sonsino <os0695@intl.att.com>
2019-07-23Migrate swagger to openapi v3Wojciech Sliwka67-855/+921
Issue-ID: SDC-2261 Change-Id: I614c15878b9d165a4468570e8318867632c88434 Signed-off-by: Wojciech Sliwka <wojciech.sliwka@nokia.com>
2019-07-21Add unit test for TranslationFileCreationErrorBuilderm.kowalski31-0/+49
Issue-ID: SDC-2327 Signed-off-by: Marcin Kowalski <m.kowalski3@partner.samsung.com> Change-Id: Iedb570e14fdf1169da45321d97807aedad2c16d0
2019-07-21Remove Proprietary noticesOfir Sonsino4-28/+5
Change-Id: I038ed4b764d592d013d8b4b2ae3b69b2961c518a Issue-ID: SDC-2471 Signed-off-by: Ofir Sonsino <os0695@intl.att.com>
2019-07-21Allow relative path for SOL004 descriptors importandre.schmid25-144/+968
Allow the use of relative path on SOL004 descriptors imports. Resolves imports with "/", "../" or "./" entries during validation and package processing. Validate if the reference is inside the package. Fix problem where imported descriptor files, described as a non string scalar yaml entry, were not being checked by the validator. Change-Id: Ie5a32736b6090b4adf178e8714f7460bcd068def Issue-ID: SDC-2422 Signed-off-by: andre.schmid <andre.schmid@est.tech>
2019-07-19SDC alignment SOL004 2.6.1bilal.iqbal6-10/+10
Updating TOSCA.meta metadata Created-by key to Created-By Issue-ID: SDC-2402 Change-Id: Ice17dac288d745292bdd8d296bd1ae3eedbff223 Signed-off-by: bilal.iqbal <bilal.iqbal@est.tech>