aboutsummaryrefslogtreecommitdiffstats
path: root/sli/provider/src/test
AgeCommit message (Collapse)AuthorFilesLines
2018-08-17breaknode executor tests addedGanesh Chandrasekaran1-0/+1
Issue-ID: CCSDK-471 Change-Id: Ice1582299950332292c1fba6052ec85489477ab7 Signed-off-by: Ganesh Chandrasekaran <ganesh.c@samsung.com>
2018-08-01remove static boolSmokowski, Kevin (ks6305)1-5/+2
Don't use static boolean for legacy enumeration mapping, add additional parameter to the function Change-Id: I5d8963a208f3ffdd3af83216aa55f7d34ee39eb9 Issue-ID: CCSDK-396 Signed-off-by: Smokowski, Kevin (ks6305) <ks6305@att.com>
2018-07-25support legacy enumeration mappingSmokowski, Kevin (ks6305)4-0/+92
support legacy enumeration mapping in MdsalHelper Change-Id: I637f5dc368da75e24fb8cc3ebdebd002aae3f025 Issue-ID: CCSDK-396 Signed-off-by: Smokowski, Kevin (ks6305) <ks6305@att.com>
2018-06-12Reset root array length when using setnodeSmokowski, Kevin (ks6305)2-0/+10
Reset root array length when using setnode shortcut to support backwards compatibility Change-Id: I0a51e396a9c75a632759cefd82ef4c6c6ca3a384 Issue-ID: CCSDK-302 Signed-off-by: Smokowski, Kevin (ks6305) <ks6305@att.com>
2018-05-03SetNodeExecutor nulling feature enhancementSmokowski, Kevin (ks6305)3-56/+141
Add special handling for clear a single array element or an entire array Change-Id: Ica73e2af32f4a566219e1487504753276bc98aa2 Issue-ID: CCSDK-265 Signed-off-by: Smokowski, Kevin (ks6305) <ks6305@att.com>
2018-04-05code coverage for ccsdk sli DG nodesprakash.e1-1/+6
Coverage improvement for SqlResourcePropertiesProviderImpl https://jira.onap.org/browse/CCSDK-213?jql=project%20%3D%20CCSDK%20AND%20text%20~%20coverage Issue-ID: CCSDK-213 Change-Id: Ibc26c319801204df8ab9c7b64a1774eae0c59bd0 Signed-off-by: prakash.e <prakash.e@huawei.com>
2018-03-27Add unit tests for sliTimoney, Dan (dt5972)4-24/+36
Added unit tests for ccsdk/sli/core/sli Change-Id: I0d2408c43b9e56a78f3e01e87985aedb6cad5953 Issue-ID: CCSDK-213 Signed-off-by: Timoney, Dan (dt5972) <dt5972@att.com>
2018-03-21Add unit tests for sli/providerTimoney, Dan (dt5972)2-0/+45
Add additional unit testing for configure node Change-Id: I867fd1aae54e956bdbe8a2f2fd406b46304b4a91 Issue-ID: CCSDK-213 Signed-off-by: Timoney, Dan (dt5972) <dt5972@att.com>
2018-03-16Additional enum supportSmokowski, Kevin (ks6305)1-0/+9
support enumerations containing whitespace Change-Id: I91971a111e67e0faf757c954fb6658529e3020d2 Issue-ID: CCSDK-214 Signed-off-by: Smokowski, Kevin (ks6305) <ks6305@att.com>
2018-03-16Add test cases for sliTimoney, Dan (dt5972)6-42/+297
Added test cases for sli in sli/core Change-Id: Ic8614f199ae843a46ec3441f0ae247f065b33322 Issue-ID: CCSDK-213 Signed-off-by: Timoney, Dan (dt5972) <dt5972@att.com>
2018-03-02fix setnode null featureKevin Smokowski3-0/+90
short prefixes could cause bad behavior in the setnode null feature Change-Id: I3876eaece8b8d695b0a98d8b5d69f955f2149402 Issue-ID: CCSDK-190 Signed-off-by: Kevin Smokowski <ks6305@att.com>
2018-03-02Favor interfacesKevin Smokowski2-3/+3
Favor using interfaces over concrete implementations Change-Id: Ie7541eeefa69671cc7ed39fba37fdd2e24380770 Issue-ID: CCSDK-189 Signed-off-by: Kevin Smokowski <ks6305@att.com> Favor interfaces Favor using interfaces over concrete implementations Change-Id: Ie3b71833c0f31f67288430c25ca31ca07c0449e0 Issue-ID: CCSDK-189 Signed-off-by: Kevin Smokowski <ks6305@att.com>
2018-02-09Upgrade sli/core to NitrogenDan Timoney3-12/+13
Use Apache derby for dblib SingleFeatureTest Change-Id: I6b41f7ede1a98b33824fceea9100e75c1ce8dda4 Issue-ID: CCSDK-175 Signed-off-by: Dan Timoney <dtimoney@att.com> Generalization of CCSDK core/utils framework Changes made: * Created generalized version of core/utils/dblib as core/utils/common * Deprecated core/utils/dblib package Change-Id: I0992c43910278fbe254674d1e39d7e4fcad0a592 Issue-ID: CCSDK-168 Signed-off-by: Rich Tabedzki <richard.tabedzki@att.com> Use Apache derby for dblib test Use Apache derby for dblib SingleFeatureTest Change-Id: Ie497557f162e203fa5c5c82c17ddc55ba0c11b38 Issue-ID: CCSDK-175 Signed-off-by: Dan Timoney <dtimoney@att.com>
2017-12-05SLI parser improvementsDan Timoney1-28/+3
Update SLI parser to remove validation based on NODE_TYPE table, which is no longer needed (was introduced prior to use of XSD schema validation). Also, use checksums to avoid needless recompilation if version being loaded already exists in database. Change-Id: Idfcba94de8fb71b17d5e0c5e69e04dee266988b1 Issue-ID: CCSDK-152 Signed-off-by: Dan Timoney <dtimoney@att.com>
2017-10-02Add test cases for MdsalHelperDan Timoney2-2/+85
Fix test case for loadProperties, and added test cases for IpAddress types Change-Id: Iabf182d32ae3937871dc9656105fdda0c1a9411f Issue-ID: CCSDK-106 Signed-off-by: Dan Timoney <dtimoney@att.com>
2017-10-02Add test cases for MdsalHelperDan Timoney2-82/+78
Add test cases for MdsalHelper methods toBuilder() and toProperties(). This requires a Yang model, so added a copy of sliapi/model to sli, since could not use sliapi directly otherwise would create circular dependency (since sliapi depends on sli). Change-Id: I4824afe250f93428c73dbeec9f4a4c36ee4f76e6 Issue-ID: CCSDK-106 Signed-off-by: Dan Timoney <dtimoney@att.com>
2017-09-27Refinements to coreGaurav Agrawal1-167/+226
Changes includes: 1. Simplifying the test cases. 2. Critical Sonar issue fix for MdsalHelper 3. Critical sonar issue fix for SvcLogicServiceImpl 4. Use logger in-built formatting. https://sonar.onap.org/component_issues/index?id=org.onap.ccsdk.sli.core%3Accsdk-sli-core#resolved=false|severities=CRITICAL Change-Id: Ib85637fcd2351970f8d96bf6b855db05cf7d9834 Issue-Id: CCSDK-67 Signed-off-by: Gaurav Agrawal <gaurav.agrawal@huawei.com>
2017-09-21Improve code coverage for MdsalHelperGaurav Agrawal2-0/+147
Changes includes 1. Modified pom to take JUNIT version from parent pom. 2. Added basic testcases for MdsalHelper utilities with test YANG. 3. Made necessary pom additions. Change-Id: Ib46bd9c8a87db33c90aaaf36736d709a7c17cbdd Issue-Id: CCSDK-101 Signed-off-by: Gaurav Agrawal <gaurav.agrawal@huawei.com>
2017-09-13Use oparent-odlparent in sli/coreDan Timoney1-52/+48
Update sli/core to use oparent-odlparent. To prevent verify builds from failing due to unit test errors, also changed unit tests that require database access to use MariaDB4j to start up a local MariaDB database. Change-Id: I928b7e1e83bdb328ca9e0785c8b81f67f982eeda Issue-ID: CCSDK-43 Signed-off-by: Dan Timoney <dtimoney@att.com>
2017-08-28Change 2 sli/core unit tests to int. testsMarcus G K Williams1-1/+1
Change SvcLogicGraphExecutorTest and SvcLogicParserTest to IT Tests because they require outside dependencies (sql database). This change enables running jobs without skipping tests and futher enables SONAR scans of unit tests. Issue-Id: CCSDK-67 Change-Id: I74184b2f2d8cb5fcc7b065c3e2e859b85dd1630b Signed-off-by: Marcus G K Williams <marcus.williams@intel.com>
2017-08-15Fix license headersDan Timoney12-12/+24
Licence headers were accidentally updated incorrectly by previous update. This commit restores the license headers for seed code to the wording from the original seed code Change-Id: Ie73bc836079be7eb1b310c472ee39b58ffeaa01c Issue-ID: CCSDK-31 Signed-off-by: Dan Timoney <dtimoney@att.com>
2017-08-11Compile against CarbonDan Timoney2-4/+4
Update sli/core to compile against OpenDaylight Carbon SR1 Change-Id: Ibb4a3a4cfa64f0539b520f56f11d7bf1fce62357 Issue-ID: CCSDK-23 Signed-off-by: Dan Timoney <dtimoney@att.com>
2017-08-11Remove remaining references to openecompDan Timoney2-9/+9
Remove remaining references to openecomp from properties and sample files Change-Id: I985bae5e80ae130ffb512c9574f13172252bf6f8 Issue-ID: CCSDK-11 Signed-off-by: Dan Timoney <dtimoney@att.com>
2017-08-03Fix unit testsDan Timoney1-4/+4
Corrected typo in jUnit test cases for SLI MdsalHelper class Issue: CCSDK-57 Change-Id: Id014ed5f8855494daafd12aee436880d76c5a1fe Signed-off-by: Dan Timoney <dtimoney@att.com>
2017-08-01Refactor dblibDan Timoney12-100/+92
Changed openecomp references in dblib, filters and sli to onap. Note: these must be committed together to get a clean compile. Issue: CCSDK-11 Change-Id: Ibe0f64fb20f3ae9cdda2f7ea969ca722bbde0d15 Signed-off-by: Dan Timoney <dtimoney@att.com>
2017-07-20Populate seed codeDan Timoney14-0/+898
Add seed code for sli/core repository Issue: CCSDK-6 Change-Id: Iaeb54c6135a94a6ffec0c7fd96505d72d18aeb00 Signed-off-by: Dan Timoney <dtimoney@att.com>