summaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-common-lib/src/main
AgeCommit message (Collapse)AuthorFilesLines
2019-11-20Validate non-mano software information artifactandre.schmid1-221/+225
Change-Id: Ie9fabd6af821b830e211ff1068fb287357fd38ee Issue-ID: SDC-2619 Signed-off-by: andre.schmid <andre.schmid@est.tech>
2019-11-06Fix sonarqube issues introduced by ZipSlip changeandre.schmid1-4/+0
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-03Validate artifacts signature in SOL004 packageandre.schmid1-0/+4
Change-Id: Ib048f4501fd8a81cdf11fab19f149350011f772e Issue-ID: SDC-2632 Signed-off-by: andre.schmid <andre.schmid@est.tech>
2019-11-03Centralize onboarding package validationandre.schmid3-1/+72
Change-Id: I3cc58cf15f62008e83cfc7ddb095d07ab216b82a Issue-ID: SDC-2583 Signed-off-by: andre.schmid <andre.schmid@est.tech>
2019-10-30Fix zip slip security flawandre.schmid1-84/+34
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-30Validate SOL004 manifest signature orderandre.schmid1-1/+2
SOL004 Manifest signature must be the last entry of the manifest. Change-Id: Ie3835f7140ccdf92ef5518ca2d7571930de81971 Issue-ID: SDC-2587 Signed-off-by: andre.schmid <andre.schmid@est.tech>
2019-10-24Fix and refactor manifest parsingandre.schmid1-4/+18
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-08-06Validate PM Dictionary and VES Events YAML Filesandre.schmid1-1/+5
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-21Allow relative path for SOL004 descriptors importandre.schmid1-5/+14
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-11Added oparent to sdc mainTomasz Golabek2-0/+40
Removed errors regarding to a missing license and others. Started locally and executed basic api tests Change-Id: Iea37613defc97f7b40613d60c10990841cb2a209 Issue-ID: SDC-2419 Signed-off-by: Tomasz Golabek <tomasz.golabek@nokia.com>
2019-07-08Add validation of non referenced file in packageandre.schmid1-0/+1
Add the validation specified in SOL004, that all files in the package should be listed in the Manifest file. Fix Validator related Test class, adapting to the new validation. Create a manifest builder to help the tests. Fix minor typos. Update .gitignore to remove ajcore files. Change-Id: Ib9a99bf3d7905349e0ec8fef8fd960028bb83f8d Issue-ID: SDC-2412 Signed-off-by: andre.schmid <andre.schmid@est.tech>
2019-06-17BeanUtils upgrade to 1.9.xOren Kleks1-16/+0
Transitive dependency to beanutils 1.8.3 removed. Refactor of existing usage of beanutils proposed. Change-Id: Ice5a996dc6f782d787309bd9c604335710627b2c Issue-ID: SDC-2269 Signed-off-by: shrek2000 <orenkle@amdocs.com>
2019-06-16BeanUtils upgrade to 1.9.xTomasz Golabek1-32/+5
Transitive dependency to beanutils 1.8.3 removed. Refactor of existing usage of beanutils proposed. Change-Id: I6614a5794979225376338c778b25f71911ae9c50 Issue-ID: SDC-2269 Signed-off-by: Tomasz Golabek <tomasz.golabek@nokia.com>
2019-04-02Verify signaturekooper1-1/+2
Change-Id: I8fc5d50d74d3dd8031c96ee16708489dc7c789b8 Issue-ID: SDC-2163 Signed-off-by: kooper <sergey.sachkov@est.tech>
2019-03-25Change SOL004 baseline from v2.5.1 to v2.6.1bilal.iqbal1-7/+11
Change-Id: Ic524e25a5f0a9952dd0a2c578034c60e51c7a290 Issue-ID: SDC-2190 Signed-off-by: bilal.iqbal <bilal.iqbal@est.tech>
2019-03-14Add source supportbilal.iqbal1-0/+1
Change-Id: I71f578764f666dd33c4aa42c7e8613b58ecb2f93 Issue-ID: SDC-2173 Signed-off-by: bilal.iqbal <bilal.iqbal@est.tech>
2019-03-10CSAR Package validationbilal.iqbal1-0/+15
Change-Id: I11af8d93f5a2cd0566a5caf0dad0519d70bd57d7 Issue-ID: SDC-2147 Issue-ID: SDC-2148 Issue-ID: SDC-2149 Issue-ID: SDC-2150 Signed-off-by: bilal.iqbal <bilal.iqbal@est.tech>
2019-03-07Parse Tosca.meta filekooper1-0/+1
Change-Id: I50521fb62999322c99b39024097ab5729f3c1580 Issue-ID: SDC-2151 Signed-off-by: kooper <sergey.sachkov@est.tech>
2019-03-04Add manifest non mano set supportkooper1-0/+1
Issue-ID: SDC-2141 Change-Id: I056e8f7c1da8f17ce8583207660882f85a4d11a4 Signed-off-by: kooper <sergey.sachkov@est.tech>
2019-02-06Remove FC toggleManzon, Inna (im453s)1-2/+2
Change-Id: I22d97e1dd57c4058bc6987fa88b9485a057b47f8 Issue-ID: SDC-2099 Signed-off-by: Manzon, Inna (im453s) <im453s@intl.att.com>
2018-12-18MainServiceTemplate multiple location supportshaheen_vz1-0/+3
Issue-ID: SDC-1744 Signed-off-by: Shaheen Shaik<shaheen.shaik@verizon.com>: Change-Id: I77e4ede6b2177ba66a4de8da824d9c7fd86f5705
2018-11-12Add UT for CommonUtilSatyaki Mallick1-8/+4
Add UT for CommonUtil in openecomp-be. Issue-ID: SDC-1774 Change-Id: Id197e79ede009f3ca34043f907a48b26af17be53 Signed-off-by: Satyaki Mallick <satyaki.mallick@huawei.com>
2018-10-08SOL004 compliant CSAR Manifest fileudhay_vz1-1/+1
Change-Id: I7f63fb12f413155072a5f35204f2b80ad8b7517b Issue-ID: SDC-1745 Signed-off-by: udhay<udhayachandran.m@verizon.com>
2018-08-13Appears toggle for MRN in toggle uisiddharth09051-8/+5
Appears toggle for MRN in toggle ui Change-Id: I67c9996f256009245a810f359fc5dc2b243d7ec1 Issue-ID: SDC-1642 Signed-off-by: siddharth0905 <siddharth.singh4@amdocs.com>
2018-08-12Toggle for SRIOVShnaider, Marina (ms7589)1-1/+6
Adding Toggle for Fabric Configuration feature Change-Id: I4c8c23c67d215597b0a32212f24416de977ef2eb Issue-ID: SDC-1623 Signed-off-by: Shnaider, Marina (ms7589) <ms7589@intl.att.com>
2018-08-10Inconsistent behavior in license model xmlsshrikantawachar1-3/+1
Removing toggle and fix for Inconsistent behavior in license model xmls Change-Id: I2fd032f25afbdcc17547224beaecf626ed6322bb Issue-ID: SDC-1625 Signed-off-by: shrikantawachar <shrikant.awachar@amdocs.com>
2018-08-07Remove filter and archive toggleayalaben1-6/+0
Change-Id: I7d2a213bbf57897cf7231556798bcc92b59bdbed Issue-ID: SDC-1615 Signed-off-by: ayalaben <ayala.benzvi@amdocs.com>
2018-08-06Add HEAT validation for generated artifactseleonorali1-0/+2
Add heat validation for generated artifacts, like vendor-license-model.xml, vf-license-model.xml, HEAT.meta Change-Id: Ie256b19679b5aebea1290f6b3f67692dfad5e980 Issue-ID: SDC-1600 Signed-off-by: eleonorali <eleonoral@amdocs.com>
2018-07-27Refactoring Consolidation Servicesiddharth09051-0/+6
Changes as per comments Change-Id: Ic2c800513265daf4bbed1f15920864ba0cb28859 Issue-ID: SDC-1330 Signed-off-by: siddharth0905 <siddharth.singh4@amdocs.com>
2018-07-23Fix zip-slip in openecomp-bePiotr Krysiak1-1/+8
Issue-ID: SDC-1401 Change-Id: I92cf8184ab50cb1d3b1ba2f71eab8f5701e1ee57 Signed-off-by: Piotr Krysiak <piotr.krysiak@nokia.com>
2018-07-12Response changedsiddharth09051-0/+5
Error Response changed while collaboration changes Change-Id: I1e634c5da3b2bfb3cf385efe1a015bc3c2cd890f Issue-ID: SDC-1496 Signed-off-by: siddharth0905 <siddharth.singh4@amdocs.com>
2018-07-10Enhance MRN in EP & LKGshrikantawachar1-1/+4
Enhance MRN in EP & LKG , handling healing , unit tests Change-Id: I60b9ec73bfcdd9a53aa507c6401deab372fdcf58 Issue-ID: SDC-1485 Signed-off-by: shrikantawachar <shrikant.awachar@amdocs.com>
2018-06-24Error pop-up contain empty/internal informationolegb1-14/+12
Issue-ID: SDC-1393 Change-Id: Ibb60e21431bb886dd7dd499202cf226af3e2465d Signed-off-by: Oleg Beltz <olegb@amdocs.com>
2018-06-13Remove Toggleeleonorali1-6/+0
Remove Toggle for SIROV and VLAN_TAGGING Change-Id: Ia8b883c1f85de24f5c2000654a0926141cc269e8 Issue-ID: SDC-1418 Signed-off-by: eleonorali <eleonoral@amdocs.com>
2018-03-21Handle OperationDefinition in Tosca Data Modelshiria1-0/+24
Change-Id: Ib1a7f0c5548fc9c7a98cff1182ff02300353443d Issue-ID: SDC-1154 Signed-off-by: shiria <shiri.amichai@amdocs.com>
2018-03-19Archive Itemayalaben2-1/+8
Change-Id: Idd5eedc3b0ca9e3cc72f7de9fd432cdbbf77631d Issue-ID: SDC-1086 Signed-off-by: ayalaben <ayala.benzvi@amdocs.com>
2018-03-15Change Tosca structuretalio1-17/+56
change Tosca Service Template according to Tosca-spec-1.1 Change-Id: I8f689b02e0349fc8c787868661f498d7d530d445 Issue-ID: SDC-1043 Signed-off-by: talio <tali.orenbach@amdocs.com>
2018-03-12Port Mirroring: Incorrect Interfaces list(2)eleonorali1-3/+0
Defect 427115 - Port Mirroring: Incorrect Interfaces list - not correct Port Type Change-Id: I5a58f5a0acf9df455d294d2dbc0b84cb2c1e03e2 Issue-ID: SDC-1107 Signed-off-by: eleonorali <eleonoral@amdocs.com>
2018-02-21Heat Resource Validator code +testskaty.rotman1-13/+6
Change-Id: Ic1e10c15fbbc01580311057e71edf05506bd9e8f Issue-ID: SDC-994 Signed-off-by: katy.rotman <katy.rotman@amdocs.com>
2018-02-19Heat Validation - VirtualMachineInterfacewejs1-0/+4
Issue-ID: SDC-994 Change-Id: I0fd23862eebf65437ab0e1a1ad1d44c9a2944990 Signed-off-by: katy.rotman <katy.rotman@amdocs.com>
2018-02-15Delete Item status Draft - Fix Errorsayalaben1-2/+2
Change-Id: I2e602a82f70ac77545b70658a35bbeffaf713a9b Issue-ID: SDC-1014 Signed-off-by: ayalaben <ayala.benzvi@amdocs.com>
2018-02-11Delete Item Draftayalaben1-0/+3
Change-Id: I13767ab6a7be82ae89f80d50b5857aabe6e55906 Issue-ID: SDC-1014 Signed-off-by: ayalaben <ayala.benzvi@amdocs.com>
2018-02-11SRIOV - add annotationseleonorali1-17/+4
SRIOV - add annotations to input TOSCA parameter converted from HEAT file (2) Change-Id: Id0b0156730ae64093df42d09e2873de047c13ac9 Issue-ID: SDC-996 Signed-off-by: eleonorali <eleonoral@amdocs.com>
2018-02-08VLAN tagging - Enable first stage translationojasdubey1-1/+20
1. Added toggle for vlan tagging feature 2. Enabled existing translation of feature with toggle 3. Enabled unit tests for the same 4. Deleted unused test data 5. Updated license text 6. Updated code based on review comments Change-Id: I755df4889f18a32061e9d4d1ebec09162b2d8b83 Issue-ID: SDC-998 Signed-off-by: ojasdubey <ojas.dubey@amdocs.com>
2018-02-02Fix for Feature Toggle rest modulesiddharth09052-9/+2
Removed ToggleStatus class and replaced it with ToggleableFeature class Change-Id: I6a4ec4504ab697e71a2f4e63d1a73aa78c7b0647 Issue-ID: SDC-988 Signed-off-by: siddharth0905 <siddharth.singh4@amdocs.com>
2018-02-01Removed log constantsvempo1-5/+5
Removed constants associated with audit/metrics logging. Deleted unused code. Some other safe cleanup and refactoring. Change-Id: Idfda72e1fb27ca695a74f2a09cb46381c9caed1a Issue-ID: SDC-772 Signed-off-by: vempo <vitaliy.emporopulo@amdocs.com>
2018-01-09Add Togglz REST APIvempo2-2/+9
Supporting REST API, and Javascript for Togglz Issue-ID: SDC-881 Change-Id: I026d3f190cb95c8943a85b26dfbcd13e856abe64 Signed-off-by: shrek2000 <orenkle@amdocs.com> (cherry picked from commit 5a33f027cd2bc4253d5ebb7a71889ead65d095b2) Signed-off-by: vempo <vitaliy.emporopulo@amdocs.com>
2018-01-04fix failing teststalio1-1/+1
fix failing tests in uploadCSARFileTest.java, and changing error messages Change-Id: Ied1384d87551242d3eb48987990a6e8a72b26916 Issue-ID: SDC-874 Signed-off-by: talio <tali.orenbach@amdocs.com>
2018-01-02Fixing sonar Exception Handlingavigaffa2-13/+34
Change-Id: I04eb047973a3f5c07dd9dc410cb13af974e8ded1 Issue-ID: SDC-810 Signed-off-by: avigaffa <avi.gaffa@amdocs.com> Signed-off-by: vempo <vitaliy.emporopulo@amdocs.com>
2017-12-31Add Item Owner to itemayalaben1-0/+1
Change-Id: I91ce289159057bd5c179c64131d74a24aa83ac9f Issue-ID: SDC-800 Signed-off-by: ayalaben <ayala.benzvi@amdocs.com>