aboutsummaryrefslogtreecommitdiffstats
path: root/dblib/provider/src
AgeCommit message (Collapse)AuthorFilesLines
2019-11-05minor updates to clean up codeAgarwal, Ruchira (ra1926)2-7/+21
clean up code to sync with internal Issue-ID: CCSDK-1873 Signed-off-by: Agarwal, Ruchira (ra1926) <ra1926@att.com> Change-Id: I1043e3f34176aebf2531bf0581b207694264d6f2
2019-10-30remove EncShellCommandSmokowski, Kevin (ks6305)4-144/+0
remove EncShellCommand to separate dblib from karaf and odl Issue-ID: CCSDK-1848 Signed-off-by: Smokowski, Kevin (ks6305) <kevin.smokowski@att.com> Change-Id: If43abeceb556b4075d2866a18b8c9e92765e14a2
2019-08-14Code changes for OpenDaylight NeonTimoney, Dan (dt5972)1-0/+24
Updated code for OpenDaylight Neon (using ccsdk/parent/tools/fluorine2neon.sh) Change-Id: Ic54b636f691cb2c9dd627dfc3b22b523c0f4f8da Issue-ID: CCSDK-1389 Signed-off-by: Timoney, Dan (dt5972) <dtimoney@att.com>
2019-07-25JUNIT-ConfigurationException.javaanushadasari1-14/+0
JUNIT for ConfigurationException.java Issue-ID: CCSDK-1520 Change-Id: I64e50083b9b0fe40fa0ba32723e30adb0dbce08e Signed-off-by: anushadasari <danush10@in.ibm.com>
2019-03-22Support system variables in property valuesRich Tabedzki3-25/+127
Changes made: * Added code in DBResourceManager to replace with its value * Expanded debug statement by adding processing time Change-Id: I22748daed50063e8e0ac7201e88d69a2609c1788 Issue-ID: CCSDK-1133 Signed-off-by: Rich Tabedzki <richard.tabedzki@att.com>
2019-02-21Increase code coverageTimoney, Dan (dt5972)1-0/+95
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-02-05Merge "Add dummy input"Dan Timoney1-0/+1
2019-02-05Merge "Junit for EncShellCommand.java"Dan Timoney1-0/+41
2019-02-05Add dummy inputTimoney, Dan (dt5972)1-0/+1
Fluorine version of restconf does not handle RPCs with no input correctly. So, need to work around that by defining dummy input for SLI-API vlbcheck and healthcheck APIs Change-Id: I6a78a899937e1bb9bd7674530166a493875ca3bf Issue-ID: CCSDK-1035 Signed-off-by: Timoney, Dan (dt5972) <dtimoney@att.com>
2019-02-01Hack to force classloader t find mariadb driverTimoney, Dan (dt5972)1-0/+7
Container is not coming up because dblib is getting ClassNotFoundException for mariadb driver, even though it is installed. To correct this temporarily, updated code to explicitly create a driver object. Change-Id: I210d042be2c71a4392781ad26f858c916dbd7364 Issue-ID: CCSDK-489 Signed-off-by: Timoney, Dan (dt5972) <dtimoney@att.com>
2019-02-01Junit for EncShellCommand.javaDriptaroop Das1-0/+41
Junit for EncShellCommand.java Issue-ID: CCSDK-1016 Change-Id: I7cbdb49b6e04ce6a69a48f9a507c7db959698140 Signed-off-by: Driptaroop Das <driptaroop.das@in.ibm.com>
2019-01-08Fix sonar issues in ccsdk-sli-coreRich Tabedzki2-11/+10
Changes made: * Updated message template handling in CachedDataSource Change-Id: I9a082753d80f790b77448a5b3de957b404d737fb Issue-ID: CCSDK-647 Signed-off-by: Rich Tabedzki <richard.tabedzki@att.com>
2019-01-07fixed sonar issue in JdbcCachedDataSourceRich Tabedzki5-7/+60
Changes made: * updated cleanup code * added TerminatingConfiguration class Change-Id: Iee16116a5fc419065915b9f84488874dd192af7c Issue-ID: CCSDK-913 Signed-off-by: Rich Tabedzki <richard.tabedzki@att.com>
2019-01-07Merge "Fixed sonar fix in DbConfigPool.java"Dan Timoney1-5/+4
2019-01-04Fixed sonar fix in DbConfigPool.javaezhil1-5/+4
Fixed major sonar issue Issue-ID: CCSDK-796 Change-Id: Id8a655875c972bb3df1f12f211b6a0068922b21d Signed-off-by: ezhil <ezhrajam@in.ibm.com>
2018-12-28Merge "fixed sonar issue in PollingWorker.java"Dan Timoney1-1/+1
2018-12-20fixed sonar issue in PollingWorker.javaSandeep J1-1/+1
fixed sonar issue Issue-ID: CCSDK-525 Change-Id: If242b9995469c0b0a25b1285db1536ff52adce2c Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-12-20fixed sonar issues in DBResourceManager.javaSandeep J1-5/+5
fixed sonar issues Issue-ID: CCSDK-525 Change-Id: I169df48b14e1288271356a972c36e678da1ffa04 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-12-18fixed sonar issues and formatted codeSandeep J1-49/+78
formatted code and added equals and hashcode method as per sonar standards Issue-ID: CCSDK-525 Change-Id: Idaa0a6a0a82315189a9365064d4f196e4689ee57 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-12-13fixed sonar issue in JdbcCachedDataSourceRich Tabedzki2-21/+24
Changes made: * fixed sonar issue Change-Id: I2112b202f8b7eb628fc21c3a972e35704dc827f9 Issue-ID: CCSDK-525 Signed-off-by: Rich Tabedzki <richard.tabedzki@att.com>
2018-12-11Merge "Fixed sonar issues in PollingWorker.java"Dan Timoney1-13/+16
2018-12-11Merge "fixed sonar issue in DBConfigFactory"Dan Timoney1-1/+3
2018-12-11Merge "fixed sonar issues in DbConfigPool.java"Dan Timoney1-2/+3
2018-12-11Merge "fixed sonar issues in DBResourceManager.java"Dan Timoney1-4/+7
2018-12-05Fixed sonar issues in PollingWorker.javaezhil1-13/+16
Fixed logger issues Issue-ID: CCSDK-791 Change-Id: Ie1759c8778ff896b2cff3e187308e6a10265e966 Signed-off-by: ezhil <ezhrajam@in.ibm.com>
2018-12-05fixed sonar issue in DBConfigFactorySandeep J1-1/+3
fixed sonar issue Issue-ID: CCSDK-525 Change-Id: I64adc9bc11c7e4fcac2c1caec614745ebe6887be Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-12-05fixed sonar issues in DbConfigPool.javaSandeep J1-2/+3
fixed sonar issue Issue-ID: CCSDK-525 Change-Id: Ibf082dc71b49b8d657dfbb79ac0ef396eb3f4aa8 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-12-05fixed sonar issues in DBResourceManager.javaSandeep J1-4/+7
fixed sonar issue Issue-ID: CCSDK-525 Change-Id: I29b85aa6066c6a940818443602e3e0e02fad59ab Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-12-05fixed sonar issues in CachedDataSourceFactorySandeep J1-1/+3
removed unnecessary cast to object Issue-ID: CCSDK-525 Change-Id: Iccd4430cdbbadfabbdc21820c1f0f962b7635444 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-11-30Fixed Sonar issue in BaseDBConfiguration.javaezhil1-2/+7
Logged exception in Logger Issue-ID: CCSDK-774 Change-Id: I28d10215daafd9f0dcaf7e0d765afbe72c184053 Signed-off-by: ezhil <ezhrajam@in.ibm.com>
2018-10-02added test cases to CachedDataSourceSandeep J1-0/+24
to increase code coverage Issue-ID: CCSDK-595 Change-Id: I7d5a5ed59538e7d6e1a7d00dfba690eedc7c2e22 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-09-24Merge "added test cases to TestDBResourceManager"Dan Timoney1-24/+39
2018-09-24added test cases to TestDBResourceManagerSandeep J1-24/+39
to increase code coverage Issue-ID: CCSDK-595 Change-Id: I8def1aa2e4108f48bc549e63e533f8a63e7a0377 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-09-24formatted code and added test caseSandeep J1-78/+81
to increase code coverage in CachedDataSourceTest Issue-ID: CCSDK-595 Change-Id: I10c2fec758bfb93587b4f5b096828a43a64039b0 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-07-25Fix sonar issuesParshad Patel1-5/+2
Fix sonar issues in ccsdk/sli/core Issue-ID: CCSDK-332 Change-Id: I2aee69cf410d8f9cb63f3a22aeb793a99e27d2c7 Signed-off-by: Parshad Patel <pars.patel@samsung.com>
2018-05-11Provide support for properties encryptionRich Tabedzki3-0/+110
Changes made: * Implemented code to decrypt password field in property file Change-Id: I97e5f93fd1f8383c1e2a1e6170489dc1db9d6337 Issue-ID: CCSDK-182 Signed-off-by: Rich Tabedzki <richard.tabedzki@att.com>
2018-03-27Add unit tests for sliTimoney, Dan (dt5972)1-1/+6
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-08Fix sonar related itemsRich Tabedzki7-48/+233
Changes made: * Optimized TerminatingCachedDataSource * Added additional unit tests Change-Id: I0a83c993898e2bee11b8d3c5df8f95b4b216e9b8 Issue-ID: CCSDK-151 Signed-off-by: Rich Tabedzki <richard.tabedzki@att.com>
2018-03-02Updated master database detection algorithmRich Tabedzki7-252/+226
Changes made: * updated algorithm in DBResourceManager * Updated CachedDataSource, JdbcDBCachedDataSource * added new unit tests Change-Id: I4f6bbeb3839f55d183d7e762743fbc9171b63b1a Issue-ID: CCSDK-192 Signed-off-by: Rich Tabedzki <richard.tabedzki@att.com>
2018-02-14Fixed Java Code Conventions issueRich Tabedzki1-512/+511
Changes made: * corrected sonar related issue in CachedDataSource class Change-Id: If84b9abcd115ad042f2cc0527b5ab8c8e12cae5a Issue-ID: CCSDK-151 Signed-off-by: Rich Tabedzki <richard.tabedzki@att.com>
2018-02-09Upgrade sli/core to NitrogenDan Timoney2-499/+516
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-01-06Generalization of CCSDK core/utils frameworkdev/nitrogenRich Tabedzki2-888/+889
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>
2017-10-12Add @Override annotationsurya-huawei1-0/+3
*This is improve readability of source code Issue-Id: CCSDK-117 Change-Id: I4bb73a6e4b440ae861045c7548a7e985d1fbf02c Signed-off-by: surya-huawei <a.u.surya@huawei.com>
2017-10-03Add unit tests for dblibDan Timoney2-0/+93
Add unit test case for dblib/provider, using MariaDB4J as database. Change-Id: I18492595a9d54999c3d52b56ecfe33d0d2cae019 Issue-ID: CCSDK-106 Signed-off-by: Dan Timoney <dtimoney@att.com>
2017-09-28Merge "Remove redundant casts"Dan Timoney1-31/+31
2017-09-28Remove redundant castssurya-huawei1-31/+31
*Remove unnecessary cast to "CachedDataSource" These unnecessary casting expressions maked the code harder to read and understand *Replace type specification with diamond operator This is to reduce the verbosity of generics code Issue-Id: CCSDK-87 Change-Id: I6cd2f7d16886ffa6cc26e5dd300b8376705d9366 Signed-off-by: surya-huawei <a.u.surya@huawei.com>
2017-09-28Refined DBLIB blueprint configurationRich Tabedzki1-1/+6
Changes made: 1. updated DBLibService definition by registering service on two interfaces: a) javax.sql.DataSource b) org.onap.ccsdk.sli.core.dblib.DbLibService Change-Id: If187b07db83ebca5428c809a83f546d9178a2b7f Issue-ID: CCSDK-102 Signed-off-by: Rich Tabedzki <richard.tabedzki@att.com>
2017-09-26Updated DBLIB svc definitionRich Tabedzki1-1/+2
Changes made: 1. updated DBLibService definition by adding javax.sql.DataSource Change-Id: I5dd63a81420f451b0ce9bbbc878d351d62ccd819 Issue-ID: CCSDK-102 Signed-off-by: Rich Tabedzki <richard.tabedzki@att.com>
2017-09-23Some minor refinements in CCSDK SLI Core moduleramu.n1-16/+15
Fix few Critical/Major sonar issues in CCSDK SLI Core module * Define and throw a dedicated exception instead of using a generic one * Either log or rethrow the exception * Change "try" to a try-with-resources * Remove useless assignment to local variable * Use built-in logger method string formatting instead of string concatination * code indentation Change-Id: I83dc1fb931b8021118e259c722f7dfbc1621dce8 Issue-Id: CCSDK-67 Signed-off-by: Ramu N <ramu.n@huawei.com>
2017-09-22Merge "Add "@Override" annotation"Dan Timoney1-0/+2