summaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-tosca-lib/src/test
AgeCommit message (Collapse)AuthorFilesLines
2019-10-24Fix and refactor manifest parsingandre.schmid27-134/+645
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-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-07-11Added oparent to sdc mainTomasz Golabek1-0/+20
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-08Move import handling to service templateojasdubey4-75/+1
Moving the handling of all import formats parsing to ServiceTemplate class to make it generic and reusable Change-Id: I80595c3654a625275549a3bb3afe8ba7c9455aff Issue-ID: SDC-2421 Signed-off-by: ojasdubey <ojas.dubey@amdocs.com>
2019-03-26Load tosca with no imports sectionshiria3-0/+37
Change-Id: I50df2a149bd8d27973bb66e41f80a3260b8a9b8b Issue-ID: SDC-2192 Signed-off-by: shiria <shiri.amichai@amdocs.com>
2019-03-25Change SOL004 baseline from v2.5.1 to v2.6.1bilal.iqbal3-6/+12
Change-Id: Ic524e25a5f0a9952dd0a2c578034c60e51c7a290 Issue-ID: SDC-2190 Signed-off-by: bilal.iqbal <bilal.iqbal@est.tech>
2019-03-18Fix flat node type interfaceshiria2-0/+35
Change-Id: I45457f1f33f2197c11d0711cedca82f53db5df79 Issue-ID: SDC-2198 Signed-off-by: shiria <shiri.amichai@amdocs.com>
2019-03-17Load TOSCA package into Tosca model objectshiria8-1/+199
Change-Id: I24360bcd988df48359eb6092f6a80e989e35f026 Issue-ID: SDC-2192 Signed-off-by: shiria <shiri.amichai@amdocs.com>
2019-03-14Add source supportbilal.iqbal1-25/+32
Change-Id: I71f578764f666dd33c4aa42c7e8613b58ecb2f93 Issue-ID: SDC-2173 Signed-off-by: bilal.iqbal <bilal.iqbal@est.tech>
2019-03-07Parse Tosca.meta filekooper6-0/+90
Change-Id: I50521fb62999322c99b39024097ab5729f3c1580 Issue-ID: SDC-2151 Signed-off-by: kooper <sergey.sachkov@est.tech>
2019-03-04Add manifest non mano set supportkooper9-0/+280
Issue-ID: SDC-2141 Change-Id: I056e8f7c1da8f17ce8583207660882f85a4d11a4 Signed-off-by: kooper <sergey.sachkov@est.tech>
2018-10-22Test coverage : ToscaFileOutputServiceCsarImplTestsiddharth09051-128/+148
openecomp-tosca-lib Change-Id: I2448672b685c591ebbb27af26761b891e52d44d7 Issue-ID: SDC-1673 Signed-off-by: siddharth0905 <siddharth.singh4@amdocs.com>
2018-10-22Test coverage : ToscaAnalyzerServiceImplTestsiddharth09051-44/+180
openecomp-tosca-lib : Increase test coverage Change-Id: I8a17c19841338705c84f2c1cc20d97da4a8f0215 Issue-ID: SDC-1673 Signed-off-by: siddharth0905 <siddharth.singh4@amdocs.com>
2018-10-15Test coverage : openecomp-tosca-libsiddharth09052-119/+1074
Increase test coverage Change-Id: I6d6a9005d16b03f36b50c867d13db5f063fe3d07 Issue-ID: SDC-1673 Signed-off-by: siddharth0905 <siddharth.singh4@amdocs.com>
2018-10-08Add support of interface in TOSCA datatypesshiria7-210/+298
Move all interface functionality from DataModelUtil class to TOSCA datatype relevant class Change-Id: Ifea22b60e9a71fe024e87f9987a749e9d56aad82 Issue-ID: SDC-1781 Signed-off-by: shiria <shiri.amichai@amdocs.com>
2018-10-08SOL004 compliant CSAR Manifest fileudhay_vz1-0/+0
Change-Id: I7f63fb12f413155072a5f35204f2b80ad8b7517b Issue-ID: SDC-1745 Signed-off-by: udhay<udhayachandran.m@verizon.com>
2018-09-09Add support for service substitution filtershiria3-0/+80
Change-Id: Id320380b83f072e0b8f5a81831111cbe96957d78 Issue-ID: SDC-1740 Signed-off-by: shiria <shiri.amichai@amdocs.com>
2018-07-29re base codeMichael Lando4-13/+7
Change-Id: I12a5ca14a6d8a87e9316b9ff362eb131105f98a5 Issue-ID: SDC-1566 Signed-off-by: Michael Lando <ml636r@att.com>
2018-07-11Add support for CapabilityDefinition isTypeOfshiria1-0/+40
Change-Id: Id84b5b67ef85b6e252676f1004184fb3180cd053 Issue-ID: SDC-1475 Signed-off-by: shiria <shiri.amichai@amdocs.com>
2018-07-05Fix node filter get methodsshiria2-32/+41
Support normative properties and capabilities as regular get methods Issue-ID: SDC-1455 Change-Id: I1ab709a17a2e03f81a7ae789b8c8fb83a1d03e81 Signed-off-by: shiria <shiri.amichai@amdocs.com>
2018-07-02Fix getFlat for datatypeshiria4-39/+364
Fix getFlat when we driven from primitive type like string Adding support for service filter as tosca extension Issue-ID: SDC-1455 Change-Id: I57f05af13b394239ca55b71a946d69f56675bf19 Signed-off-by: shiria <shiri.amichai@amdocs.com>
2018-06-05fix get flat node typeshiria13-789/+2203
update node type interface update return value to object which include the type hierarchy Change-Id: I97623c7bbad0223a174370d13aabf4c3efe9c21e Issue-ID: SDC-1394 Signed-off-by: shiria <shiri.amichai@amdocs.com>
2018-05-23new node filter implementationkaty.rotman4-431/+560
Issue-ID: SDC-1363 Change-Id: I0bd8b482e8e55f92ac3bccf8725d64f1b4929a43 Signed-off-by: katy.rotman <katy.rotman@amdocs.com>
2018-05-01Fix TOSCA Analyzer - null point exceptionshiria2-0/+216
In case there is import to not exist TOSCA file, exception with relevant error message should be thrown In getRequirementAssignment, when there is no Requirement, Optional.Empty is returned Change-Id: I8aabde177815dec2f69307f6be3c5114c5c8efa3 Issue-ID: SDC-1281 Signed-off-by: shiria <shiri.amichai@amdocs.com>
2018-04-30Rename packages from openecomp to onap.amitjai8-61/+71
This task is all about package name space change also make changes to pom for common module Change-Id: Ie9bda0f958a9a05826c0374830cc9cb7d6d196b6 Issue-ID: SDC-1272 Signed-off-by: amitjai <amitjai@amdocs.com>
2018-04-08Reducing onboarding backend maven build timeshrikantawachar1-9/+6
Reducing onboarding backend maven build time Change-Id: I3fe5f8d6d9b21591018243d16809451c6b8c2d14 Issue-ID: SDC-1189 Signed-off-by: shrikantawachar <shrikant.awachar@amdocs.com>
2018-03-22Update FlatEntity in TOSCAshiria2-1/+92
Add support of dataType entity flat hierarchy in TOSCA Fix existing nodeType entity flat hierarchy in TOSCA Change-Id: I52cd188c595a263c70c2067fd1aac9752f7e24a4 Issue-ID: SDC-1147 Signed-off-by: shiria <shiri.amichai@amdocs.com>
2018-03-21Add support in TOSCA isTypeOfshiria1-38/+131
Add support for InterfaceDefinitionType entity type Add support for PropertyDefinition entity type Add support for ParameterDefinition entity type Change-Id: I10ba0f6c3f16a0d476e254d40b4fcd463392cb52 Issue-ID: SDC-1153 Signed-off-by: shiria <shiri.amichai@amdocs.com>
2018-03-21Handle OperationDefinition in Tosca Data Modelshiria3-37/+192
Change-Id: Ib1a7f0c5548fc9c7a98cff1182ff02300353443d Issue-ID: SDC-1154 Signed-off-by: shiria <shiri.amichai@amdocs.com>
2018-03-15Interface definitiontalio3-19/+21
Add separate Interface definition for node type and node template Change-Id: I0c4446227dd096959158fd4a4741cb5aa043e495 Issue-ID: SDC-1043 Signed-off-by: talio <tali.orenbach@amdocs.com>
2018-03-15Change Tosca structuretalio5-21/+498
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-06SDC-TOSCA Parser Integrationpriyanshu2-0/+46
SDC Onboarding Tosca Library to call SDC-Tosca Parser Change-Id: I12c92def4ff8e17431d73b0d39f62d5d79ea6f21 Issue-ID: SDC-1043 Signed-off-by: priyanshu <pagarwal@amdocs.com>
2018-02-04change capabilities datatypetalio3-4/+3
change node template capabilities datatype from list of map to map Change-Id: Ie0fa71b8a41ec732ae5290a72c4d8e908701ce17 Issue-ID: SDC-968 Signed-off-by: talio <tali.orenbach@amdocs.com>
2018-01-11Fix ToscaFileOutputServiceCsarImplTestAbhai Singh1-3/+6
Above mentioned test class has tests with shared state and can fail unexpectedly during parallel execution. Change-Id: I97772caaba60afca15f62166ba3b1c1d939bcc14 Issue-ID: SDC-904 Signed-off-by: Abhai Singh <Abhai.Singh@amdocs.com>
2018-01-09Fixed sonar issues - ToscaAnalyzerServiceImplsheetalm2-9/+212
Resolve code review comments.Fixed cyclomatic complexity and nested try/if/else issues. Corrected Copyright. Added junit for changes done as part of sonar fix. Change-Id: If7ecc53acd82c49ab5ca73f0330a792fc1fc6d5c Issue-ID: SDC-343 Signed-off-by: sheetalm <sheetal.mudholkar@amdocs.com>
2017-12-21Add collaboration featuretalig1-6/+6
Issue-ID: SDC-767 Change-Id: I14fb4c1f54086ed03a56a7ff7fab9ecd40381795 Signed-off-by: talig <talig@amdocs.com>
2017-10-24Fixed resources not being closed in testsvempo3-125/+135
Fixed static analysis violations in a few modules of SDC onboarding - high-severity issues like not releasing resources (e.g. FileInputStream). Did some minor code cleanup. Change-Id: I89a229ad6bc150951f1f3cc437b3a175a663e203 Issue-ID: SDC-291 Signed-off-by: vempo <vitaliy.emporopulo@amdocs.com>
2017-09-18Fixed SONAR issuesDivesh Mirchandani1-0/+5
Fixed blocker, critical, major & minor SONAR issues. Issue-ID: SDC-343 Change-Id: I72e5a3a7fa7d7407a92f98f77e4334827f70f926 Signed-off-by: dd4616 <Divesh.Mirchandani@amdocs.com>
2017-07-18[SDC] Onboarding 1710 rebase.Avi Ziv5-6/+6
Change-Id: If3b6b81d221fde13908f1e8160db6f7d9433c535 Signed-off-by: Avi Ziv <avi.ziv@amdocs.com>
2017-06-09[SDC-29] Amdocs OnBoard 1707 initial commit.AviZi23-160/+371
Change-Id: Ie4d12a3f574008b792899b368a0902a8b46b5370 Signed-off-by: AviZi <avi.ziv@amdocs.com>
2017-02-19push addional codeMichael Lando25-0/+3464
Change-Id: Ia427bb3460cda3a896f8faced2de69eaf3807b74 Signed-off-by: Michael Lando <ml636r@att.com>