aboutsummaryrefslogtreecommitdiffstats
path: root/sli/common/src
AgeCommit message (Collapse)AuthorFilesLines
2019-03-05Add junit test casesTimoney, Dan (dt5972)1-0/+15
Add junit test cases for sli/core repository. Change-Id: Ifcec596cf9f835249a7967c9c7830253b53d2ef6 Issue-ID: CCSDK-1128 Signed-off-by: Timoney, Dan (dt5972) <dtimoney@att.com>
2019-02-21Increase code coverageTimoney, Dan (dt5972)1-3/+56
Added junit test cases, and updated jacoco config in provider/base to include provider tests as well Change-Id: I8f384b3a4dd7362f004eaa959cd0c634edf0ddbe Issue-ID: CCSDK-1096 Signed-off-by: Timoney, Dan (dt5972) <dtimoney@att.com>
2019-01-10Code changes to sli/core for ODL FluorineTimoney, Dan (dt5972)2-13/+10
Code changes needed to support port to ODL Fluorine. Change-Id: I539aeaabeab1056cd109b6bee12046d91d61cab1 Issue-ID: CCSDK-870 Signed-off-by: Timoney, Dan (dt5972) <dtimoney@att.com>
2019-01-07fixed sonar issues in PrintYangToProp.javaSandeep J1-10/+8
fixed sonar issues Issue-ID: CCSDK-525 Change-Id: Ifb7328c8b3cf40d412a0efffad6cb55673cf83dc Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-12-18fixed sonar issues in PrintYangToProp.javaSandeep J1-1300/+1300
fixed sonar issues Issue-ID: CCSDK-525 Change-Id: Iade7c7e4c5ffad8afbd2d225291f0df68c1e60d0 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-12-17Merge "fixed sonar issue in SvcLogicExpression.java"Dan Timoney1-1/+3
2018-12-17Merge "fixed sonar issue in SvCLogicExprListener.java"Dan Timoney1-1/+3
2018-12-17Merge "fixed sonar issues in SvcLogicCrawler.java"Dan Timoney1-2/+4
2018-12-14fixed sonar issue in SvcLogicExpression.javaSandeep J1-1/+3
fixed sonar issue Issue-ID: CCSDK-525 Change-Id: Ie7d170334ea0c704bf67ee175ef3cd1932171418 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-12-14fixed sonar issue in SvCLogicExprListener.javaSandeep J1-1/+3
fixed sonar issue Issue-ID: CCSDK-525 Change-Id: I59cfc4c94fe3cb1690ffecc92f10e2543ca645fe Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-12-14fixed sonar issues in SvcLogicCrawler.javaSandeep J1-2/+4
fixed sonar issues Issue-ID: CCSDK-525 Change-Id: I4d5e95cfac8bb04d03752015d64f7c3b61495f1a Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-12-14fixed sonar issues in PrintYangToProp.javaSandeep J1-18/+19
fixed sonar issues Issue-ID: CCSDK-525 Change-Id: Icd98cabe0f1322abbfb580ee37c8c15bbc315463 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-12-11Merge "fixed sonar issues in SvcLogicNode.java"Dan Timoney1-8/+11
2018-12-11Merge "fixed sonar issue in SvcLogicLoader.java"Dan Timoney1-3/+5
2018-12-11Merge "fixed sonar issue in SvcLogicGraoh.java"Dan Timoney1-3/+6
2018-12-11Merge "fixed sonar issues in SvcLogicDblibStore.java"Dan Timoney1-3/+3
2018-12-11Merge "fixed sonar issue in SvcLogicBinaryExpression"Dan Timoney1-1/+3
2018-12-11Merge "fixed sonar issues in PrintYangToProp.java"Dan Timoney1-13/+17
2018-12-07fixed sonar issues in SvcLogicNode.javaSandeep J1-8/+11
fixed sonar issues Issue-ID: CCSDK-525 Change-Id: I2f7e33601cac898069836bc5461e92dc5fe5d442 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-12-07fixed sonar issue in SvcLogicLoader.javaSandeep J1-3/+5
fixed sonar issues Issue-ID: CCSDK-525 Change-Id: I515fcdbae28518e0a25f1370173b1dd4f77b816e Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-12-07fixed sonar issue in SvcLogicGraoh.javaSandeep J1-3/+6
fixed sonar issues Issue-ID: CCSDK-525 Change-Id: If14288410ad7be50d8fdfb942f11383a9f58eab0 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-12-07fixed sonar issues in SvcLogicDblibStore.javaSandeep J1-3/+3
fixed sonar issue Issue-ID: CCSDK-525 Change-Id: Ia1ddf9787311b786c71b19e651730b65c2c0835e Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-12-07fixed sonar issue in SvcLogicBinaryExpressionSandeep J1-1/+3
fixed sonar issue Issue-ID: CCSDK-525 Change-Id: Iea683bb51d07daa0f7f3b48b4c83642a427edfbd Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-12-07fixed sonar issues in PrintYangToProp.javaSandeep J1-13/+17
fixed sonar issues Issue-ID: CCSDK-525 Change-Id: Ie44b6710411605e262fd74fa7e4947eb3bd05a90 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-12-04clean up legacy filesSmokowski, Kevin (ks6305)5-1719/+0
clean up legacy files, these files do not belong in sli-common Change-Id: Iba801e0b8e098fc88d80f8d2d3da47b6184e88af Issue-ID: CCSDK-789 Signed-off-by: Smokowski, Kevin (ks6305) <kevin.smokowski@att.com>
2018-11-19Sonar fixes for PrintYangToProp.javaezhil1-18/+3
Fixed sonar issues in PrintYangToProp class Issue-ID: CCSDK-730 Change-Id: If344af657356ee0d2499fbd061e23fbd06617d2b Signed-off-by: ezhil <ezhrajam@in.ibm.com>
2018-10-04implement exit nodeSmokowski, Kevin (ks6305)3-367/+423
exit node functions similar to a return statement in most programming languages Change-Id: I2991590fb700b03a9f3d72ae0bc7b5dd9bb25f74 Issue-ID: CCSDK-611 Signed-off-by: Smokowski, Kevin (ks6305) <kevin.smokowski@att.com>
2018-09-12SvcLogicLoader ImprovementsSmokowski, Kevin (ks6305)5-60/+44
restore storing md5sum and add bulkActivate Change-Id: I27ea86c667d61f435bd2f0a77934d00db57bc218 Issue-ID: CCSDK-473 Signed-off-by: Smokowski, Kevin (ks6305) <ks6305@att.com>
2018-08-02add null check to format stringSmokowski, Kevin (ks6305)2-5/+14
add null check to format string Change-Id: If82f751ec679189620e02fafdcd2e1af9258268f Issue-ID: CCSDK-424 Signed-off-by: Smokowski, Kevin (ks6305) <ks6305@att.com>
2018-07-25Fix sonar issuesParshad Patel1-1/+1
Fix sonar issues in ccsdk/sli/core Issue-ID: CCSDK-332 Change-Id: I2aee69cf410d8f9cb63f3a22aeb793a99e27d2c7 Signed-off-by: Parshad Patel <pars.patel@samsung.com>
2018-07-06sonar issue fixONAP1-2/+2
Issue-ID: CCSDK-332 Change-Id: Iec65b1ff600518b04ab13fb3508827864074a31b Signed-off-by: ONAP <arind.mondal@samsung.com>
2018-05-03TestSvcLogicLoader for windowsSmokowski, Kevin (ks6305)1-4/+4
TestSvcLogicLoader fails when run against a machine running windows Change-Id: I3687ac21c50cde10b1e8a0ed816b67d48c5e77f9 Issue-ID: CCSDK-266 Signed-off-by: Smokowski, Kevin (ks6305) <ks6305@att.com>
2018-03-27Add unit tests for sliTimoney, Dan (dt5972)15-25/+604
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-07re-use parser instanceSmokowski, Kevin (ks6305)2-38/+50
add an additional logging statement and save memory Change-Id: Idc8bdefb00ac61317cc38848dce670d76b6d89f7 Issue-ID: CCSDK-204 Signed-off-by: Smokowski, Kevin (ks6305) <ks6305@att.com>
2018-03-02Favor interfacesKevin Smokowski2-109/+105
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-09Reset MDC after invoking nodeKevin Smokowski1-0/+9
collapse get node into a common metho, reset MDC right before getting next node for certain executor Change-Id: I85b1cf0dfd595deee42dc93f4095ecbc6c831998 Issue-ID: CCSDK-187 Signed-off-by: Kevin Smokowski <ks6305@att.com>
2018-02-09Upgrade sli/core to NitrogenDan Timoney1-14/+28
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>
2018-02-09Iso8601 format fixKevin Smokowski1-1/+1
fix format in method asIso8601 in metric logger Change-Id: I50de2397231ff8b298e3a75b3220315c255c26db Issue-ID: CCSDK-186 Signed-off-by: Kevin Smokowski <ks6305@att.com>
2017-12-18Service logic logging fixesDan Timoney2-7/+2
Update MetricLogger class to properly escape characters within body of response. Also, used SvcLogicGraph.toString method to simplify logging call. Change-Id: I6bcaaf3c67032df041c6d37372016990ff0199d3 Issue-ID: CCSDK-152 Signed-off-by: Dan Timoney <dtimoney@att.com>
2017-12-05SLI parser improvementsDan Timoney11-1128/+1167
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-25Add unit test case for PrintYangToPropDan Timoney1-0/+69
Add junit testing for PrintYangToProp Change-Id: I8c377bb51c812ea9ead32d8e9d5ef871157162a8 Issue-ID: CCSDK-129 Signed-off-by: Dan Timoney <dtimoney@att.com>
2017-10-18added code to convert yang to propertiesSheshi Chinthakayala1-0/+1367
this code is used by dgbuilder to convert the yang to context property names Change-Id: Ib53f57df6e8bd32a3a1b7ba6fa7854497c1f5c6c Issue-ID: SDNC-81 Signed-off-by: Sheshi Chinthakayala <sc2914@att.com>
2017-09-28Added @Override annotationshashikanth1-2/+2
Fix major sonar issues in ccsdk/sli/core module https://sonar.onap.org/component_issues?id=org.onap.ccsdk.sli.core%3Accsdk-sli-core#resolved=false|severities=MAJOR|rules=squid%3AS1161 Add the "@Override" annotation above this method signature Issue-Id:CCSDK-67 Change-Id: I233be3f88547049a5f78c438e87f2f8c0129df78 Signed-off-by: shashikanth.vh <shashikanth.vh@huawei.com>
2017-09-27Refinements to coreGaurav Agrawal1-113/+78
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-27Merge "Use Long.toString instead"Dan Timoney1-1/+1
2017-09-27Use Long.toString insteadsurya-huawei1-1/+1
Major sonar issue in sli/core module *Using static method to reduce memory and cycles Issue-Id: CCSDK-87 Change-Id: Iaf255892a4bd698934f865a707e54f8e740370ab Signed-off-by: surya-huawei <a.u.surya@huawei.com>
2017-09-25Some minor refinements in CCSDK SLI Core moduleramu.n2-2/+9
*Remove useless braces while logging exception stack trace *Register all DG nodes in SvcLogicParser Test file Change-Id: I7916bec20e36e1def15c24806da2f7e01e79bf4b Issue-Id: CCSDK-106 Signed-off-by: Ramu N <ramu.n@huawei.com>
2017-09-21Remove unnecessary parenthesessurya-huawei1-18/+18
*Useless parentheses can sometimes be misleading and hence removed Issue-Id: CCSDK-87 Change-Id: I018d791500a42356296d07d04de45517d061bb7f Signed-off-by: surya-huawei <a.u.surya@huawei.com>
2017-09-20Fix few Major sonar issuesramu.n1-45/+44
Fix few Major sonar issues in CCSDK SLI Core module * Remove useless assignment to local variable * Use built-in logger method string formatting instead of string concatination * code indentation Change-Id: I20fc9d8f4c510f6169e6f989c6f5595371e5f2dd Issue-Id: CCSDK-67 Signed-off-by: Ramu N <ramu.n@huawei.com>
2017-09-19Merge "Use Junit4 instead of Junit3 in sli/common"Dan Timoney1-53/+84