sdc.git
3 years agoOnboard TOSCA data_types defined in package 90/101490/5
andre.schmid [Wed, 5 Feb 2020 12:13:57 +0000 (12:13 +0000)]
Onboard TOSCA data_types defined in package

Onboard TOSCA data_types defined in a CSAR package
that does not exists in the SDC default data_types
library. Those data_types were being lost.
All data_types declared in the package will be
included in the "GlobalSubstitutionServiceTemplate".
This includes the data_types declared in the main
topology template and in its imported definition
files.
Defines a maven profile to compile the catalog-be
in the main SDC pom.

Change-Id: I39445b0f42e924dc1015945b7e605e804c1d505b
Issue-ID: SDC-2763
Signed-off-by: André Schmid <andre.schmid@est.tech>
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech>
3 years agoFix 'not running Junit5 tests'-issue 61/109061/2
vasraz [Thu, 11 Jun 2020 11:57:25 +0000 (12:57 +0100)]
Fix 'not running Junit5 tests'-issue

Change-Id: Iee67a4af7262e554a86252b411264f55ff1baa88
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech>
Issue-ID: SDC-3109

3 years agoFix Critical security vulnerability 69/109069/2
vasraz [Thu, 11 Jun 2020 16:05:29 +0000 (17:05 +0100)]
Fix Critical security vulnerability

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

3 years agoFix bug in UpdateIsVnfMenu 90/109090/2
xuegao [Fri, 12 Jun 2020 08:39:07 +0000 (10:39 +0200)]
Fix bug in UpdateIsVnfMenu

Fix the unboxing bug reported by Sonar.

Issue-ID: SDC-3112
Signed-off-by: xuegao <xg353y@intl.att.com>
Change-Id: I4ed3f9a48ad21af2f9f67872791df2796c4e4ad1

3 years agoUse dummy info for distribution-engine 35/109135/2
Ofir Sonsino [Sun, 14 Jun 2020 15:18:14 +0000 (18:18 +0300)]
Use dummy info for distribution-engine

Change-Id: I7679e0ed8ce4c4217cf6c5f4a646fe06cf32372d
Issue-ID: SDC-3115
Signed-off-by: Ofir Sonsino <os0695@intl.att.com>
3 years agoFix Doc warnings 30/109130/2
ChrisC [Sat, 13 Jun 2020 07:26:13 +0000 (09:26 +0200)]
Fix Doc warnings

Fix some RST warnings and rendering issues

Issue-ID: SDC-1357
Signed-off-by: ChrisC <christophe.closset@intl.att.com>
Change-Id: I142085dcdbbaf8f1a3de27680548e2c37d0a099e

3 years agoAdd support for directives on VFC 84/107984/6
aribeiro [Wed, 13 May 2020 12:49:31 +0000 (13:49 +0100)]
Add support for directives on VFC

This change also updates the directives values according to Tosca 1.3 spec

Issue-ID: SDC-3074
Change-Id: Ia6a68c9a23a71a2c17ba2c006990342811aa7b4e
Signed-off-by: aribeiro <anderson.ribeiro@est.tech>
3 years agoRewrite of `updateArtifactOnInterfaceOperationByResourceUUID` to remove NPE 46/108746/2
Chris André [Wed, 3 Jun 2020 17:23:40 +0000 (13:23 -0400)]
Rewrite of `updateArtifactOnInterfaceOperationByResourceUUID` to remove NPE

Issue-ID: SDC-2978
Signed-off-by: Chris Andre <chris.andre@yoppworks.com>
Change-Id: I60942ab1767bf65c806ce796ca62365396b20d93

3 years agoSet properties on XML parsers to prevent XXE attack 35/108935/2
Neil Derraugh [Mon, 8 Jun 2020 19:45:58 +0000 (15:45 -0400)]
Set properties on XML parsers to prevent XXE attack

- Set ACCESS_EXTERNAL_DTD and ACCESS_EXTERNAL_SCHEMA properties on XML
parsers to prevent XXE attacks

Issue-ID: SDC-3106
Signed-off-by: Neil Derraugh <neil.derraugh@yoppworks.com>
Change-Id: If4e835858dd3d718d37b3ee41fb2fd0c94574c24

3 years agoFix security issue in SecurityUtil 23/108923/3
Neil Derraugh [Mon, 8 Jun 2020 14:40:10 +0000 (10:40 -0400)]
Fix security issue in SecurityUtil

- Specified mode and padding to address risky algorithm
- Corrected unit test for different exception message
- Moved tests to package

Issue-ID: SDC-3105
Signed-off-by: Neil Derraugh <neil.derraugh@yoppworks.com>
Change-Id: I5773ab555a5468362c775cf99795df4eb8c52136

3 years agoJava 11 migration - 'test-apis-ci' 34/108834/3
Rodrigo Lima [Fri, 5 Jun 2020 18:02:15 +0000 (14:02 -0400)]
Java 11 migration - 'test-apis-ci'

- Removed references to protected packages (sun.net.*)

Issue-ID: SDC-3037
Signed-off-by: Rodrigo Lima <rodrigo.lima@yoppworks.com>
Change-Id: Ibbf25af390e624e15fb2bc8ea17777056fe5f3b5

3 years agoFix sonar bugs 29/108829/4
sebdet [Fri, 5 Jun 2020 14:04:28 +0000 (16:04 +0200)]
Fix sonar bugs

Fix all sonar bugs reported in SwitchoverDetector class + fix all checkstyle issues

Issue-ID: SDC-2931
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Change-Id: Ic86a3526fc7030e10a61b150058c04a391c40c7b

3 years agoclass passed to MdcLogger() is compared by name 78/108778/3
JulienBe [Thu, 4 Jun 2020 17:06:51 +0000 (19:06 +0200)]
class passed to MdcLogger() is compared by name

Issue-ID: SDC-3098
Signed-off-by: JulienBe <julien.bertozzi@intl.att.com>
Change-Id: I8b61218d1164a0ebff7f290ac82f1cdd67a5152a

3 years agoSupport setting SDC-BE configuration at deployment time 25/108425/2
vasraz [Thu, 28 May 2020 10:44:09 +0000 (11:44 +0100)]
Support setting SDC-BE configuration at deployment time

Change-Id: I4b384bc911630d6041a0c5c235d3aaf3ac148090
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech>
Issue-ID: SDC-3076

3 years agoAdd build config in README 20/108820/2
sebdet [Fri, 5 Jun 2020 10:55:28 +0000 (12:55 +0200)]
Add build config in README

Add a required step to build the project, the oparent settings.xml must be installed first in .m2

Issue-ID: SDC-2871
Change-Id: Id69582582849a8937f4e76d24d6a6bfdc8f0a957
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
3 years agoMake Directive values Tosca compliant 81/108081/3
aribeiro [Wed, 20 May 2020 09:05:48 +0000 (10:05 +0100)]
Make Directive values Tosca compliant

Issue-ID: SDC-3079
Signed-off-by: aribeiro <anderson.ribeiro@est.tech>
Change-Id: Ie711c61244a4e2d68a96e2814ba2db52e067c6e4

3 years agoRewrite of `certifyToscaElement` to remove NPE 28/108728/2
Chris André [Tue, 2 Jun 2020 18:18:43 +0000 (14:18 -0400)]
Rewrite of `certifyToscaElement` to remove NPE

- Modularized `certifyToscaElement` in smaller, less complex methods (`handleRelationsBeforeCertifyingAndProcessClone`, `cloneToscaElementAndHandleRelations`, `handleRelationsOfNewestCertifiedToscaElementAndReturn` & `logDebugMessageAndReturnStorageOperationStatus`)
- Removed potential NPE flagged by Sonar in `certifyToscaElement`

Issue-ID: SDC-2966
Signed-off-by: Chris Andre <chris.andre@yoppworks.com>
Change-Id: Id65871cbfd611abdcc878e61c1541f01ff972828

3 years agoRefactor method 'undoCheckout' to simplify it and remove potential NPE 08/108208/3
Chris André [Mon, 25 May 2020 16:51:38 +0000 (12:51 -0400)]
Refactor method 'undoCheckout' to simplify it and remove potential NPE

- Extracted methods 'retrieveAndUpdatePreviousVersion' and 'updateEdgeToCatalogRootAndReturnPreVersionElement' from 'undoCheckout'

Issue-ID: SDC-2965
Signed-off-by: Chris Andre <chris.andre@yoppworks.com>
Change-Id: I52faffdaf2e99a9de8c2e566da26a5be6e7fd667

3 years agoArtifactsBusinessLogic refactor to remove NullPointerException 01/106301/4
Chris André [Tue, 2 Jun 2020 15:37:03 +0000 (11:37 -0400)]
ArtifactsBusinessLogic refactor to remove NullPointerException

- Reformatted `downloadResourceInstanceArtifactByUUIDs`
- Fixed Sonar-related warning regarding a NPE in `validateInput`

Issue-ID: SDC-2979
Signed-off-by: Chris Andre <chris.andre@yoppworks.com>
Change-Id: I5a62daabcc436f28fba1f09317c5723281df15bf

4 years agoAdd constraints structure to ToscaProperty 17/108317/2
andre.schmid [Mon, 25 May 2020 13:54:30 +0000 (14:54 +0100)]
Add constraints structure to ToscaProperty

Add constraints structure to ToscaProperty and implements
the valid_values property.

Change-Id: Id69581582839a8937f0c76c24d6a6bfcc7f0a957
Issue-ID: SDC-3084
Signed-off-by: andre.schmid <andre.schmid@est.tech>
4 years agoRefactor CsarUtils::writeComponentInterface 40/108540/3
Francis Toth [Wed, 20 May 2020 16:19:26 +0000 (12:19 -0400)]
Refactor CsarUtils::writeComponentInterface

This commit aims to decouple the zip file writing logic from the CsarUtils::writeComponentInterface function. This should provide a higher level of testability and maintenance thanks to inversion of control. An extra helper has also been added to help the migration from the FJ library to VAVR.

Signed-off-by: Francis Toth <francis.toth@yoppworks.com>
Change-Id: I4f2df4749cae3082906a80acc39045ac8887ec39
Issue-ID: SDC-2812

4 years agoRemove boolean entries in TOSCA Metadata 48/105148/3
MichaelMorris [Mon, 6 Apr 2020 13:00:13 +0000 (14:00 +0100)]
Remove boolean entries in TOSCA Metadata

Change-Id: I0101bbe35656b4c7d7405429d95939b892e85402
Issue-ID: SDC-2876
Signed-off-by: MichaelMorris <michael.morris@est.tech>
4 years agoAdd interface inputs handling 94/107994/4
vasraz [Wed, 20 May 2020 16:27:25 +0000 (17:27 +0100)]
Add interface inputs handling

Enables interface inputs specified in a node_type to be imported and included in the generated csar

Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech>
Change-Id: Ia3acaad50b4091831d0c0471b07ba2b2e9bd380d
Issue-ID: SDC-3077

4 years agoPlugin to customize prop. during Service creation 31/107731/5
andre.schmid [Wed, 13 May 2020 18:11:38 +0000 (19:11 +0100)]
Plugin to customize prop. during Service creation

Creates an entry point to customize properties of a Service
Component before its creation.

Change-Id: I102a70b37eec498dd9c6df009c38da57d0e5b17f
Issue-ID: SDC-3062
Signed-off-by: andre.schmid <andre.schmid@est.tech>
4 years agoFinalize Documentation R6 80/108380/1
Ofir Sonsino [Wed, 27 May 2020 12:08:59 +0000 (15:08 +0300)]
Finalize Documentation R6

Change-Id: I66837d0b314c1a529bd6ca2e29c9527899286c6f
Issue-ID: SDC-2949
Signed-off-by: Ofir Sonsino <os0695@intl.att.com>
4 years agoFix interface types creation 90/108190/2
andre.schmid [Wed, 20 May 2020 13:24:40 +0000 (14:24 +0100)]
Fix interface types creation

Interface types creation logic was not interpreting some allowed TOSCA
entries, that, when declared, were breaking the interface type
creation. Every entry under the interface type was being considered
as an interface operation, but it is possible to have "derived_from",
"version", "metadata" and "description". Also it is not considering
the Interface Type entries "inputs", "operations" and "notifications".
Another thing is that TOSCA 1.3 changes the way operations should be
declared, deprecating the previous way. Now there should be an entry
"operations" with the operations entries under it, instead of having
the operations entries direct under the interface type. The change
allows both types, following the TOSCA rule: if operations entry is
not present, then the deprecated way is considered.

Change-Id: I13218bda60b29d19b9c5565cbfd63ae3250a78bf
Issue-ID: SDC-3075
Signed-off-by: andre.schmid <andre.schmid@est.tech>
4 years agoEntry points in ToscaExportHandler for plugin use 01/108301/2
andre.schmid [Mon, 25 May 2020 16:47:47 +0000 (17:47 +0100)]
Entry points in ToscaExportHandler for plugin use

Open the access for two methods in ToscaExportHandler so they
can be called in a CsarEntryGenerator plugin.

Change-Id: I0ee1daab348c0fc85db56428369a5ec190cb0101
Issue-ID: SDC-3083
Signed-off-by: andre.schmid <andre.schmid@est.tech>
4 years agoEncapsulate ReportManager's failedVerticesPerTask and resultsPerVertex in Report 17/107617/4
Francis Toth [Mon, 20 Apr 2020 22:43:20 +0000 (18:43 -0400)]
Encapsulate ReportManager's failedVerticesPerTask and resultsPerVertex in Report

This commit aims to encapsulate the static fields failedVerticesPerTask and resultsPerVertex in their own class (called Report). In the short terms, any state needing to be passed around will be stored there. Unfortunately, this commit required many minor changes in functions signature (to pass the Report instance).

Signed-off-by: Francis Toth <francis.toth@yoppworks.com>
Change-Id: I3756d9a939cbd0f2856be72aa2bd24a3980dde49
Issue-ID: SDC-2499

4 years agoExtract artifact component belonging logic 23/107223/8
Francis Toth [Mon, 4 May 2020 22:42:58 +0000 (18:42 -0400)]
Extract artifact component belonging logic

This commit extracts checkArtifactInComponent and checkArtifactInResourceInstance from ArtifactsBusinessLogic. Tests have been added along with a some utility functions designed to generate randomized test data. The former tests were deleted as they were not doing any assertions.

Signed-off-by: Francis Toth <francis.toth@yoppworks.com>
Change-Id: I1b27c55d064cf4e9a40cd7b152e7ea6032a09276
Issue-ID: SDC-2961

4 years agoAllow global types generation 35/107135/7
aribeiro [Tue, 5 May 2020 13:36:38 +0000 (14:36 +0100)]
Allow global types generation

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>
4 years agoRevert "Java 11 migration: fixing problems on 'catalog-fe'" 08/108308/1
aribeiro [Wed, 27 May 2020 10:37:44 +0000 (11:37 +0100)]
Revert "Java 11 migration: fixing problems on 'catalog-fe'"

This reverts commit 50906f4dcd00b0162298d1f86d72dcfc4d3caee9.

Issue-ID: SDC-3088
Change-Id: I13c48243b3a137c7e66da1ef217a0ecbbd55f216
Signed-off-by: aribeiro <anderson.ribeiro@est.tech>
4 years agoRefactor CsarUtils::WriteArtifactDefinition 02/107002/9
Francis Toth [Sat, 2 May 2020 14:16:17 +0000 (10:16 -0400)]
Refactor CsarUtils::WriteArtifactDefinition

Signed-off-by: Francis Toth <francis.toth@yoppworks.com>
Change-Id: I167a05d8fbc2085a3e25eeb5bfd6b30f0e80462e
Issue-ID: SDC-2812

4 years agoAdd ArtifactsBusinessLogic::fetchLatestComponentMetadata 14/107414/7
Francis Toth [Fri, 8 May 2020 22:45:14 +0000 (18:45 -0400)]
Add ArtifactsBusinessLogic::fetchLatestComponentMetadata

Signed-off-by: Francis Toth <francis.toth@yoppworks.com>
Change-Id: Ibb8621a91551a2e4ffcac1145f85ed7983063d02
Issue-ID: SDC-2812

4 years agoWork on unchecked Optional access 93/107693/5
Chris André [Fri, 15 May 2020 12:29:29 +0000 (08:29 -0400)]
Work on unchecked Optional access

- extract code to static methods
- throw an explicit exception now if element not found

Issue-ID: SDC-2987
Signed-off-by: Chris Andre <chris.andre@yoppworks.com>
Change-Id: I693bb53059b056235b567ac1f9f752a33512505a

4 years agoFix for locked component 81/107981/2
aribeiro [Wed, 20 May 2020 08:31:52 +0000 (09:31 +0100)]
Fix for locked component

After add, update or remove node_filter the component was left locked on SDC

Issue-ID: SDC-3072
Change-Id: I27058760704bd6261619946becda3612a6386432
Signed-off-by: aribeiro <anderson.ribeiro@est.tech>
4 years agoFix wrong tests directory structure 49/107949/2
vasraz [Wed, 20 May 2020 09:04:51 +0000 (10:04 +0100)]
Fix wrong tests directory structure

Change-Id: I0538e5ad56c9a77a0e9cb40d629739e979b67495
Issue-ID: SDC-3073
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech>
4 years agoJava 11 migration: fixing problem on 'openecomp-tosca-converter-core' 13/108213/2
Chris André [Tue, 26 May 2020 00:24:26 +0000 (20:24 -0400)]
Java 11 migration: fixing problem on 'openecomp-tosca-converter-core'

- Explicitely indicate the type associated with 'Collection'

Issue-ID: SDC-3030
Signed-off-by: Chris Andre <chris.andre@yoppworks.com>
Change-Id: I557eb205598c337b75b06a2c7d705276aeb543a1

4 years agoJava 11 migration: fixing problems on 'catalog-fe' 53/108153/3
Chris André [Fri, 22 May 2020 18:29:25 +0000 (14:29 -0400)]
Java 11 migration: fixing problems on 'catalog-fe'

- Upgrade `jersey-bom` version variable to the most recent stable one
- Removed `jersey-common` version variable and replaced its references with `jersey-bom`

Issue-ID: SDC-3036
Signed-off-by: Chris Andre <chris.andre@yoppworks.com>
Change-Id: I414e3814d6d4fc1d927b302efb5dd08659676dc2

4 years agoRefactor CsarUtil::addInnerComponentsToCSAR 80/107880/2
Francis Toth [Tue, 19 May 2020 14:36:58 +0000 (10:36 -0400)]
Refactor CsarUtil::addInnerComponentsToCSAR

Signed-off-by: Francis Toth <francis.toth@yoppworks.com>
Change-Id: I7f32d729a96f696c217631cd019105c17cb36a8c
Issue-ID: SDC-2812

4 years agoSupport setting SDC-BE configuration at deployment time 75/107975/2
vasraz [Thu, 14 May 2020 15:09:22 +0000 (16:09 +0100)]
Support setting SDC-BE configuration at deployment time

Change-Id: Id1ebcb01d81b8e0cd681dcb304aa77bb3248d69c
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech>
Issue-ID: SDC-3076

4 years agoFix potential NullPointer in SchemaFileImport 92/107992/2
andre.schmid [Tue, 19 May 2020 15:31:28 +0000 (16:31 +0100)]
Fix potential NullPointer in SchemaFileImport

While reading the YAML to import, if the content was missing
the entry node_types it was causing a NullPointerException.
Also the exception was being suppressed, making very difficult
to understand what happened.

Change-Id: I44badbee1c739ddf6db08b4e518adb33c430fa84
Issue-ID: SDC-3070
Signed-off-by: andre.schmid <andre.schmid@est.tech>
4 years ago500 error at WFD artifact-deliveries api 33/108033/2
Ben David, Elad (eb7504) [Thu, 21 May 2020 10:53:36 +0000 (13:53 +0300)]
500 error at WFD artifact-deliveries api

Change-Id: I9227387c26b6ee4c68c635b78c4980a9c07b3d35
Issue-ID: SDC-3052
Signed-off-by: Ben David, Elad (eb7504) <eb7504@intl.att.com>
4 years agoWork around potential NullPointerExceptions in ToscaElementLifecycleOperation 75/106575/2
Chris André [Fri, 24 Apr 2020 02:24:36 +0000 (22:24 -0400)]
Work around potential NullPointerExceptions in ToscaElementLifecycleOperation

- Rewrite of `checkinToscaELement`
- Extracted methods from `checkinToscaELement`

Issue-ID: SDC-2964
Signed-off-by: Chris Andre <chris.andre@yoppworks.com>
Change-Id: I99d2c5aaa73b955ef5aa60eeb7644bb47ac12bd6

4 years agoRefactor ArtifactsBusinessLogic::getRelatedComponentInstance 10/107410/3
Francis Toth [Fri, 8 May 2020 20:31:04 +0000 (16:31 -0400)]
Refactor ArtifactsBusinessLogic::getRelatedComponentInstance

This commit aims to refactor the ArtifactsBusinessLogic::getRelatedComponentInstance, and getRelatedComponentComponentInstance. It improves how Either is used, fixes a potential NullPointerException, reduces some duplication along with cyclomatic complexity.

Signed-off-by: Francis Toth <francis.toth@yoppworks.com>
Change-Id: I2503f5e2a697f793e4dcf32d7793f83c4a25ff46
Issue-ID: SDC-2812

4 years agoRemove wildcard pattern when retrieving components 78/107278/4
Francis Toth [Wed, 6 May 2020 21:54:27 +0000 (17:54 -0400)]
Remove wildcard pattern when retrieving components

This commit aims to remove a redundant cast while preparing the field for some Either refactoring in ArtifactsBusinessLogic. The reasons for removing the wildcard pattern are explained in SDC-3040 (a sub-task of SDC-2812).

Signed-off-by: Francis Toth <francis.toth@yoppworks.com>
Change-Id: I573c01eca56f096ccb54e564d0144291121bde22
Issue-ID: SDC-2812

4 years agoRefactor ArtifactsBusinessLogic::handleDeleteInternal 95/107395/3
Francis Toth [Fri, 8 May 2020 16:22:41 +0000 (12:22 -0400)]
Refactor ArtifactsBusinessLogic::handleDeleteInternal

This commit is a first step towards the ArtifactsBusinessLogic::handleDeleteInternal function refactoring. It aims to improve how Either is used, and to reduce its cyclomatic complexity along with some duplications.

Signed-off-by: Francis Toth <francis.toth@yoppworks.com>
Change-Id: I1b476ccc0e0341975b80c10dc79c5dc1592267f4
Issue-ID: SDC-2812

4 years agoremove powermock dependency from pom xmls 87/107887/2
Rodrigo Lima [Tue, 19 May 2020 16:10:17 +0000 (12:10 -0400)]
remove powermock dependency from pom xmls

- Remove powermock from pom xml files
- Remove powermock from ActivityLogManagerFactoryImplTest

Issue-ID: SDC-3071
Signed-off-by: Rodrigo Lima <rodrigo.lima@yoppworks.com>
Change-Id: I4c4b8b0751f4ce8895617a951429111fc08d8e2e

4 years agoAdd null test to ComponentInstanceBusinessLogic 08/106308/3
Chris André [Tue, 5 May 2020 18:09:02 +0000 (14:09 -0400)]
Add null test to ComponentInstanceBusinessLogic

- Added test in `changeInstanceVersion` for null value

Issue-ID: SDC-2908
Signed-off-by: Chris Andre <chris.andre@yoppworks.com>
Change-Id: I42a428c4b245a55b7229e2ec9b781e9af4403662

4 years agoRefactor ArtifactsBusinessLogic::generateAndSaveToscaArtifact 99/107499/3
Francis Toth [Mon, 11 May 2020 20:15:18 +0000 (16:15 -0400)]
Refactor ArtifactsBusinessLogic::generateAndSaveToscaArtifact

This commit aims to make some minor refactoring related to the either used in ArtifactsBusinessLogic::generateAndSaveToscaArtifact.

Signed-off-by: Francis Toth <francis.toth@yoppworks.com>
Change-Id: I4923e014146a17f1cd035db3513359a2ab8f38f2
Issue-ID: SDC-2812

4 years agoRefactor CsarUtil::extractVfcArtifact 90/106990/8
Francis Toth [Fri, 1 May 2020 16:42:58 +0000 (12:42 -0400)]
Refactor CsarUtil::extractVfcArtifact

Signed-off-by: Francis Toth <francis.toth@yoppworks.com>
Change-Id: Ica8d17d4f3c763920f406ccb89fb3e464d05eab4
Issue-ID: SDC-2812

4 years agoRefactor tosca representation retrieval in CsarUtils::populateZip 31/107131/4
Francis Toth [Tue, 5 May 2020 16:44:59 +0000 (12:44 -0400)]
Refactor tosca representation retrieval in CsarUtils::populateZip

This commit aims to simplify CsarUtils::populateZip by extracting how a tosca representation is fetched to another function. this enables to reduce the overall cyclomatic complexity of the function. Some additional work still needs to be done especially regarding the ToscaRepresentation and MainYamlWithDependencies classes (These happen to be really similar). This will be done in another change in the near future.

Signed-off-by: Francis Toth <francis.toth@yoppworks.com>
Change-Id: I93600d0752565de523cf2285b1fa2ba43a96334f
Issue-ID: SDC-2812

4 years agoOrchestrationTemplateDaoZusammenImpl - Add tests for the presence of Optional values 70/107070/2
Chris André [Mon, 4 May 2020 20:12:17 +0000 (16:12 -0400)]
OrchestrationTemplateDaoZusammenImpl - Add tests for the presence of Optional values

Issue-ID: SDC-3015
Signed-off-by: Chris Andre <chris.andre@yoppworks.com>
Change-Id: Iae0ce3d1b4bb5a72f04f0cd8a890c84eb15b214c

4 years agoRemove powermock from ContextTracker 88/107688/2
Rodrigo Lima [Thu, 14 May 2020 14:14:34 +0000 (10:14 -0400)]
Remove powermock from ContextTracker

- Remove powermock from ContextTrackerTest
- Add package level constructor to ContextTracker to pass clear and put functions

Issue-ID: SDC-3058
Signed-off-by: Rodrigo Lima <rodrigo.lima@yoppworks.com>
Change-Id: I82519538b763b00f2768801f06929773bfb58013

4 years agoRemove powermock from ValidationConfigManagerTest 36/107736/2
Rodrigo Lima [Fri, 15 May 2020 01:06:05 +0000 (21:06 -0400)]
Remove powermock from ValidationConfigManagerTest

- Remove powermock reference from ValidationConfigManagerTest

Issue-ID: SDC-3064
Signed-off-by: Rodrigo Lima <rodrigo.lima@yoppworks.com>
Change-Id: Ib330b0fcaf132e5d67f65b482a80b5b75f8c336b

4 years agoRemove powermock from ArtifactValidationUtilsTest 42/107742/2
Rodrigo Lima [Fri, 15 May 2020 14:06:29 +0000 (10:06 -0400)]
Remove powermock from ArtifactValidationUtilsTest

- Remove powermock reference from ArtifactValidationUtilsTest
- Use junit 5 imports instead of junit 4

Issue-ID: SDC-3067
Signed-off-by: Rodrigo Lima <rodrigo.lima@yoppworks.com>
Change-Id: I6388e133024ed1e7604e90fc24ba3e84a33da4f7

4 years agoRemove powermock from ReportManagerTest 40/107740/2
Rodrigo Lima [Fri, 15 May 2020 13:37:26 +0000 (09:37 -0400)]
Remove powermock from ReportManagerTest

- Remove powermock reference from ReportManagerTest
- Use Junit 5 imports instead of junit 4

Issue-ID: SDC-3066
Signed-off-by: Rodrigo Lima <rodrigo.lima@yoppworks.com>
Change-Id: Iece6e5741d5f2f5bc5db2ec7c85c63948776d601

4 years agoRemove powermock from HostAddressCacheTest 59/107759/2
Rodrigo Lima [Fri, 15 May 2020 19:50:10 +0000 (15:50 -0400)]
Remove powermock from HostAddressCacheTest

- Remove powermock and easymock from HostAddressCacheTest
- Add package level constructor to HostAddressCache and pass read address function to verified in unit test

Issue-ID: SDC-3068
Signed-off-by: Rodrigo Lima <rodrigo.lima@yoppworks.com>
Change-Id: I749211393d9e0ecb3ff3b587dc0f811b58bb967c

4 years agosdc-backend-init does not restart on healthcheck failure 83/107683/2
Fuss, Areli (af732p) [Thu, 14 May 2020 12:27:12 +0000 (15:27 +0300)]
sdc-backend-init does not restart on healthcheck failure

Issue-ID: SDC-3063
Change-Id: I6c4a796f42060832ee8a37a708dedda7e7e98c70
Signed-off-by: Fuss, Areli (af732p) <areli.fuss@intl.att.com>
4 years agoFix edit deployment artifact icon, and download 62/107662/2
Tufman, Shay (st198j) [Thu, 14 May 2020 07:43:28 +0000 (10:43 +0300)]
Fix edit deployment artifact icon, and download

Change-Id: I9e66870b03fcc5edcea30a18809cf8a2c539e674
Issue-ID: SDC-3053
Signed-off-by: Tufman, Shay (st198j) <st198j@att.com>
4 years agoWork around potential NullPointerExceptions in ComponentInstanceOperation 35/106635/3
Chris André [Fri, 24 Apr 2020 23:43:18 +0000 (19:43 -0400)]
Work around potential NullPointerExceptions in ComponentInstanceOperation

- Rewrite of `updateAttributeValueInResourceInstance`

Issue-ID: SDC-2923
Signed-off-by: Chris Andre <chris.andre@yoppworks.com>
Change-Id: I1becdec8c10515976835e7d8fb0208b9cbad10bb

4 years agoAdd tests for the presence of Optional values 64/107064/3
Chris André [Tue, 5 May 2020 11:54:27 +0000 (07:54 -0400)]
Add tests for the presence of Optional values

Issue-ID: SDC-3014
Signed-off-by: Chris Andre <chris.andre@yoppworks.com>
Change-Id: I041c0109c41bb1a716792074c004fd8f54857038

4 years agoIncrease test coverage - openecomp-sdc-vendor-software-product-core 92/106992/4
vasraz [Fri, 1 May 2020 17:27:11 +0000 (18:27 +0100)]
Increase test coverage - openecomp-sdc-vendor-software-product-core

Change-Id: I1af31c1f14d72fbc30a026f7ae787ae9d4b03b36
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech>
Issue-ID: SDC-3001

4 years agoRemove powermock from SecurityManagerTest 96/107496/2
Rodrigo Lima [Mon, 11 May 2020 19:54:37 +0000 (15:54 -0400)]
Remove powermock from SecurityManagerTest

- Add new package level constructor to SecurityManager
- Remove powermock from SecurityManagerTest

Issue-ID: SDC-3054
Signed-off-by: Rodrigo Lima <rodrigo.lima@yoppworks.com>
Change-Id: I04c53601f31d2aad84de8f8801f6889f8b9d4260

4 years agoRemove unused ArtifactsBusinessLogic::updateArtifactsFlowForInterfaceOperations 00/107500/3
Francis Toth [Mon, 11 May 2020 20:09:38 +0000 (16:09 -0400)]
Remove unused ArtifactsBusinessLogic::updateArtifactsFlowForInterfaceOperations

This commit deletes the ArtifactsBusinessLogic::updateArtifactsFlowForInterfaceOperations function as it is no longer used anywhere.

Signed-off-by: Francis Toth <francis.toth@yoppworks.com>
Change-Id: I1dd950930485fc83bb02c889dafc5461192accbc
Issue-ID: SDC-2812

4 years agoRemove outputFullFilePath from ValidationConfigManager 98/106798/5
Francis Toth [Mon, 20 Apr 2020 00:55:37 +0000 (20:55 -0400)]
Remove outputFullFilePath from ValidationConfigManager

This commit aims to extract the outputFullFilePath field from ValidationConfigManager in order to improve testability. This commit contains multiple minor modifications resulting from bubbling up the outputFullFilePath static field to where it is actually set. Most of the modifications result from changing the signature of the functions which formerly relied on ValidationConfigManager.getOutputFullFilePath.

Change-Id: I0a28e527cabe606de8af62b8dcbc4b4e70db98ed
Signed-off-by: Francis Toth <francis.toth@yoppworks.com>
Issue-ID: SDC-2499

4 years agoFix security issues in SecurityUtil 51/107251/3
Neil Derraugh [Wed, 6 May 2020 15:28:39 +0000 (11:28 -0400)]
Fix security issues in SecurityUtil

- Removed hard coded key
- Specified mode and padding to address risky algorithm

Issue-ID: SDC-3017
Signed-off-by: Neil Derraugh <neil.derraugh@yoppworks.com>
Change-Id: I6c21174003fcb5669de49158d8dd6bf9907f50c6

4 years agoRefactor CsarUtil::writeComponentInterface 79/106979/4
Francis Toth [Fri, 1 May 2020 14:23:18 +0000 (10:23 -0400)]
Refactor CsarUtil::writeComponentInterface

Signed-off-by: Francis Toth <francis.toth@yoppworks.com>
Change-Id: I6a40119540c18469db44e218984b4d4b92d3f4af
Issue-ID: SDC-2812

4 years agoRefactor ArtifactsBusinessLogic::generateToscaArtifact 35/107035/4
Francis Toth [Mon, 4 May 2020 12:14:51 +0000 (08:14 -0400)]
Refactor ArtifactsBusinessLogic::generateToscaArtifact

This commit aims to refactor how Either is used in ArtifactsBusinessLogic::generateToscaArtifact. In order to keep the refactoring relatively small, we evalute its result at the call site.

Change-Id: I669b30b44e9c69d1b3968fd719c5340b2dff83f5
Signed-off-by: Francis Toth <francis.toth@yoppworks.com>
Issue-ID: SDC-2812

4 years agoRefactor to remove false positives from Sonar 52/106952/2
Chris André [Thu, 30 Apr 2020 19:41:41 +0000 (15:41 -0400)]
Refactor to remove false positives from Sonar

- change `updateResourceInstancesNames` to account for case where `preparedResource` is null
- change `findInputByName` to return an Either<InputDefinition, RuntimeException> in order to make exceptions explicit
- create `rollbackWithEither` (+ tests) to make exceptions more explicit

Issue-ID: SDC-2992
Signed-off-by: Chris Andre <chris.andre@yoppworks.com>
Change-Id: I487994a3f9e88b0a2b14d2679c3587d85d8aa12d

4 years agoRefactor ArtifactsBusinessLogic::handleDelete and ArtifactsBusinessLogic::deleteArtif... 86/107386/3
Francis Toth [Fri, 8 May 2020 12:17:33 +0000 (08:17 -0400)]
Refactor ArtifactsBusinessLogic::handleDelete and ArtifactsBusinessLogic::deleteArtifactByInterface

Signed-off-by: Francis Toth <francis.toth@yoppworks.com>
Change-Id: I89f12c70f388375ed13554edf62bf6a442c9036a
Issue-ID: SDC-2812

4 years agoAllow any extension to WORKFLOW artifact type 42/107242/2
andre.schmid [Tue, 5 May 2020 11:45:33 +0000 (12:45 +0100)]
Allow any extension to WORKFLOW artifact type

Allow any extension to WORKFLOW artifact as it was before
the artifact type configuration change SDC-2754.

Change-Id: I6c497cd83e36fe4df0cc800b9301010c22aa79f7
Issue-ID: SDC-3019
Signed-off-by: andre.schmid <andre.schmid@est.tech>
4 years agoRemove powermock from ComponentProcessesImplTest 56/107356/2
Rodrigo Lima [Thu, 7 May 2020 17:50:44 +0000 (13:50 -0400)]
Remove powermock from ComponentProcessesImplTest

- Remove powermock from ComponentProcessesImplTest and add new constructor to ComponentProcessesImpl

Issue-ID: SDC-3042
Signed-off-by: Rodrigo Lima <rodrigo.lima@yoppworks.com>
Change-Id: I1766371a42a65d6b11c9b7b6783a312db2ed723e

4 years agoRemove powermock from NicsImplTest 62/107362/2
Rodrigo Lima [Thu, 7 May 2020 19:03:58 +0000 (15:03 -0400)]
Remove powermock from NicsImplTest

- Remove powermock from NicsImplTest and add new constructor to NicsImpl

Issue-ID: SDC-3043
Signed-off-by: Rodrigo Lima <rodrigo.lima@yoppworks.com>
Change-Id: Iec9343a403278f7db41d1654960c1060c3e75a99

4 years agoRemove powermock from ImagesImplTest 77/107277/2
Rodrigo Lima [Wed, 6 May 2020 21:52:15 +0000 (17:52 -0400)]
Remove powermock from ImagesImplTest

- Remove powermock from ImagesImplTest and add new constructor to ImagesImpl

Issue-ID: SDC-3038
Signed-off-by: Rodrigo Lima <rodrigo.lima@yoppworks.com>
Change-Id: I6439a90a71d9de94c2233f8b64fed9da4860dd2e

4 years agoRemove powermock from ComponentDependenciesImplTest 61/107261/2
Rodrigo Lima [Wed, 6 May 2020 17:18:09 +0000 (13:18 -0400)]
Remove powermock from ComponentDependenciesImplTest

- Remove powermock from ComponentDependenciesImplTest and add new constructor to ComponentDependenciesImpl

Issue-ID: SDC-3027
Signed-off-by: Rodrigo Lima <rodrigo.lima@yoppworks.com>
Change-Id: I045e268230d94d4f52c4b85069eddade7678edee

4 years agoRemove porwermock from ComponentImplTest 47/107247/2
Rodrigo Lima [Wed, 6 May 2020 14:35:01 +0000 (10:35 -0400)]
Remove porwermock from ComponentImplTest

- Remove power mock from ComponentImplTest
- Add new constructor to ComponentsImpl

Issue-ID: SDC-3026
Signed-off-by: Rodrigo Lima <rodrigo.lima@yoppworks.com>
Change-Id: I919fdb55990d813f4ac2950e3950b28e4686acbc

4 years agoRemove powermock from ComponentMonitoringUploadsImplTest 56/107156/2
Rodrigo Lima [Tue, 5 May 2020 20:21:45 +0000 (16:21 -0400)]
Remove powermock from ComponentMonitoringUploadsImplTest

- Remove powermock from ComponentMonitoringUploadsImplTest.
- Add new constructor to ComponentMonitoringUploadsImpl.

Issue-ID: SDC-3024
Signed-off-by: Rodrigo Lima <rodrigo.lima@yoppworks.com>
Change-Id: Ic8583db9c459c4d39258129a3b70cc108b30d7de

4 years agoMoved ArtifactsBusinessLogic::buildJsonStringForCsarVfcArtifact to JsonUtils 87/107387/2
Francis Toth [Fri, 8 May 2020 12:27:25 +0000 (08:27 -0400)]
Moved ArtifactsBusinessLogic::buildJsonStringForCsarVfcArtifact to JsonUtils

Signed-off-by: Francis Toth <francis.toth@yoppworks.com>
Change-Id: Ia3bb9fe9f97e1759e4e5b70eb5e5396ed87d716d
Issue-ID: SDC-2961

4 years agoRemove powermock from ComputeImplTest 97/107397/2
Rodrigo Lima [Fri, 8 May 2020 17:30:55 +0000 (13:30 -0400)]
Remove powermock from ComputeImplTest

- Remove powermock from ComputeImplTest and add new constructor to ComputeImpl

Issue-ID: SDC-3046
Signed-off-by: Rodrigo Lima <rodrigo.lima@yoppworks.com>
Change-Id: Idf3e67c52f1d65e059bbcfcda5a477e2398b0a3e

4 years agoRemove powermock from DeploymentFlavorsImplTest 15/107415/1
Rodrigo Lima [Fri, 8 May 2020 23:43:55 +0000 (19:43 -0400)]
Remove powermock from DeploymentFlavorsImplTest

- Remove powermock from DeploymentFlavorsImplTest and add new constructor to DeploymentFlavorsImpl

Issue-ID: SDC-3050
Signed-off-by: Rodrigo Lima <rodrigo.lima@yoppworks.com>
Change-Id: Ib66937932c58c684de5e6a65fbcfb251c0b55c8e

4 years agoRefactor CsarUtil::addComponentToCache 57/106857/6
Francis Toth [Wed, 29 Apr 2020 15:41:08 +0000 (11:41 -0400)]
Refactor CsarUtil::addComponentToCache

Signed-off-by: Francis Toth <francis.toth@yoppworks.com>
Change-Id: Ib78be78780a97c873e710d805dd26273159d5354
Issue-ID: SDC-2812

4 years agoClean normatives file during mvn clean 09/107309/2
andre.schmid [Thu, 7 May 2020 08:15:56 +0000 (09:15 +0100)]
Clean normatives file during mvn clean

The configuration to clean the normatives.tar.gz was incorrect,
so the file was not being cleaned up during mvn clean, which
could create an inconsistent sdc-backend-init docker image.

Change-Id: I15e3f4c49f404c147532c88c50f131cb61aea9c0
Issue-ID: SDC-3041
Signed-off-by: andre.schmid <andre.schmid@est.tech>
4 years agoReduce scope from 'compile' to 'test' for 'junit-vintage-engine' 80/107280/2
vasraz [Wed, 6 May 2020 22:57:53 +0000 (23:57 +0100)]
Reduce scope from 'compile' to 'test' for 'junit-vintage-engine'

Change-Id: I39b0be6ba6650c9a7215acf359f3d74e0a24e553
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech>
Issue-ID: SDC-2844
Issue-ID: SDC-2983

4 years agoSupport functions in TOSCA Simple Profile in YAML 60/106660/3
vasraz [Fri, 24 Apr 2020 12:57:10 +0000 (13:57 +0100)]
Support functions in TOSCA Simple Profile in YAML

This commit aim to generalize usage of ToscaFunctions enum

Change-Id: Iab3529e101f75db5f856778334a852afb532cdb6
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech>
Issue-ID: SDC-2982

4 years agoSupport configuring of tosca type for categories 63/105163/7
MichaelMorris [Mon, 6 Apr 2020 14:44:56 +0000 (15:44 +0100)]
Support configuring of tosca type for categories

Signed-off-by: MichaelMorris <michael.morris@est.tech>
Issue-ID: SDC-2877
Change-Id: I3160c5089979757628f31a44b01836236563b770

4 years agoPrepare for Junit5 25/106825/13
vasraz [Wed, 29 Apr 2020 17:39:35 +0000 (18:39 +0100)]
Prepare for Junit5

Remove unused/duplicated dependencies

Change-Id: Iee0d9510ffbe3e2e14574e22ba965d6829fd568b
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech>
Issue-ID: SDC-2844
Issue-ID: SDC-2983

4 years agoMake `collectNewCapabilities` return an empty Map 04/106304/4
Chris André [Tue, 5 May 2020 16:39:20 +0000 (12:39 -0400)]
Make `collectNewCapabilities` return an empty Map

- Made `collectNewCapabilities` return an empty HashMap instead of a null value

Issue-ID: SDC-2924
Signed-off-by: Chris Andre <chris.andre@yoppworks.com>
Change-Id: I58c35135be5a2614c3daeafbd766d53f401f917b

4 years agoIncrease test coverage - openecomp-sdc-vendor-software-product-lib 81/106981/2
vasraz [Fri, 1 May 2020 14:35:01 +0000 (15:35 +0100)]
Increase test coverage - openecomp-sdc-vendor-software-product-lib

Change-Id: Id51ce6f488efd6db02aad479ff419b58436be27c
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech>
Issue-ID: SDC-3001

4 years agoIncrease test coverage - openecomp-sdc-tosca-generator-api 75/106975/2
vasraz [Fri, 1 May 2020 10:41:13 +0000 (11:41 +0100)]
Increase test coverage -  openecomp-sdc-tosca-generator-api

Change-Id: I1537d71b11ee440cb01bdee49350336f074ea36d
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech>
Issue-ID: SDC-3001

4 years agoRemove unused ES code and unneeded ES health check 23/107123/2
Neil Derraugh [Tue, 5 May 2020 15:27:28 +0000 (11:27 -0400)]
Remove unused ES code and unneeded ES health check

Remove the ES health check since ES was removed.

Issue-ID: SDC-3022
Signed-off-by: neil.derraugh@yoppworks.com
Change-Id: I918212de39d7b53959ac400975b3c47f889252c1

4 years agofix bug - Error 500 while adding an Operation 17/107117/2
Yuli Shlosberg [Tue, 5 May 2020 15:00:36 +0000 (18:00 +0300)]
fix bug - Error 500 while adding an Operation

Change-Id: I7def95b3688877acbc9332cf4174c9d92226f2e2
Issue-ID: SDC-2953
Signed-off-by: Yuli Shlosberg <ys9693@att.com>
4 years agofix bug - Unable to link CSAR artifact 97/107097/3
Yuli Shlosberg [Tue, 5 May 2020 09:45:46 +0000 (12:45 +0300)]
fix bug - Unable to link CSAR artifact

Change-Id: I586637f988b84b3b858e2c8d567c6844be38322b
Issue-ID: SDC-2972
Signed-off-by: Yuli Shlosberg <ys9693@att.com>
4 years agoRemove powermockito from OrchestrationTemplateCandidateImplTest 96/106996/3
Rodrigo Lima [Fri, 1 May 2020 19:25:06 +0000 (15:25 -0400)]
Remove powermockito from OrchestrationTemplateCandidateImplTest

- Remove powermockito from OrchestrationTemplateCandidateImplTest. Add new constructor to OrchestrationTemplateCandidateImpl

Issue-ID: SDC-3007
Signed-off-by: Rodrigo Lima <rodrigo.lima@yoppworks.com>
Change-Id: I5f0a2061796e8410a5b225c43baa70d7e0269684

4 years agoHandle null case in `addCalculatedCapabilitiesWithPropertiesToComponent` 75/106375/3
Chris André [Tue, 21 Apr 2020 16:25:29 +0000 (12:25 -0400)]
Handle null case in `addCalculatedCapabilitiesWithPropertiesToComponent`

- Change code to handle a null value for `groupDefinitions` as if it was an empty List

Issue-ID: SDC-2910
Signed-off-by: Chris Andre <chris.andre@yoppworks.com>
Change-Id: I5fca0ab76886e5f6a73a8f05ec35d38848f96dd8

4 years agoWork around potential NullPointerExceptions in `ToscaOperationFacade` 60/106560/6
Chris André [Thu, 23 Apr 2020 20:53:42 +0000 (16:53 -0400)]
Work around potential NullPointerExceptions in `ToscaOperationFacade`

- Add tests in `getToscaElementByOperation` and `updateToscaElement` for null values
- rewrite `getLatestCertifiedByToscaResourceName` in a more functional way
- Rewrite some other usages of Either in a more functional way

Issue-ID: SDC-2922
Signed-off-by: Chris Andre <chris.andre@yoppworks.com>
Change-Id: I52b294ec91faf9e1054af572dcca4060e62fe571

4 years agoSetting default store types when not defined in configuration for init of https client 99/107099/3
ilanap [Tue, 5 May 2020 10:51:47 +0000 (13:51 +0300)]
Setting default store types when not defined in configuration for init of https client

Issue-ID: SDC-2962
Signed-off-by: ilanap <ilanap@amdocs.com>
Change-Id: I9d88031c7d20951a4a77138340b1ddc26f47c0b6
Signed-off-by: ilanap <ilanap@amdocs.com>
4 years agoAdd tests for the presence of Optional values 61/107061/2
Chris André [Mon, 4 May 2020 17:58:39 +0000 (13:58 -0400)]
Add tests for the presence of Optional values

Issue-ID: SDC-3012
Signed-off-by: Chris Andre <chris.andre@yoppworks.com>
Change-Id: I56cbf7fb5bd04ad2fbc496231d6abe72066124fe

4 years agoUnifiedCompositionService - Refactor code to handle Optional value 74/107074/2
Chris André [Mon, 4 May 2020 21:00:03 +0000 (17:00 -0400)]
UnifiedCompositionService - Refactor code to handle Optional value

Issue-ID: SDC-3015
Signed-off-by: Chris Andre <chris.andre@yoppworks.com>
Change-Id: I1d15d20e9c603ff894c7c4be46b26d60745cb7e5

4 years agoReplace hashCode and equals methods to cleanup NPE warning 61/106561/4
Neil Derraugh [Thu, 23 Apr 2020 21:03:33 +0000 (17:03 -0400)]
Replace hashCode and equals methods to cleanup NPE warning

Replace hashCode() and equals() with Lombok
@EqualsAndHashCode(callSuper = true)

Issue-ID: SDC-2925
Signed-off-by: neil.derraugh <neil.derraugh@yoppworks.com>
Change-Id: I51056103dc7df953508b2e465a535b46c63e2667

4 years agoRemove call to `get` on Optional variables 76/106776/2
Chris André [Tue, 28 Apr 2020 22:28:27 +0000 (18:28 -0400)]
Remove call to `get` on Optional variables

- Made multiple variables Optional

Issue-ID: SDC-2991
Signed-off-by: Chris Andre <chris.andre@yoppworks.com>
Change-Id: If3dbfd37e933d10698ad1a93b6762c84e30f69b8