summaryrefslogtreecommitdiffstats
path: root/sliPluginUtils/provider/src/test/java
AgeCommit message (Collapse)AuthorFilesLines
2020-12-01Migrate sli-core filesJessica Wagantall6-1659/+0
Migrate sli-core repo files into new directory "core". Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
2020-06-19Implement new method to convert SvcLogicContext to JSONDan Timoney1-13/+0
Added new method toJsonString() to SvcLogicContext class to write out service logic context properties as a JSON string Refactored static method SliPluginUtils.writeJsonToCtx to SvcLogicContext.mergeJson method Change-Id: I4fe134976f93c7d116bc54ad2bae6e486c6fac2c Issue-ID: CCSDK-1760 Signed-off-by: Dan Timoney <dtimoney@att.com>
2020-04-01SliPluginUtils jsonStringToCtx fixSmokowski, Kevin (ks6305)1-3/+4
Support null values in jsonStringToCtx in Slipluginutils Issue-ID: CCSDK-2250 Signed-off-by: Smokowski, Kevin (ks6305) <kevin.smokowski@att.com> Change-Id: I3316fa9e80c9e684fc27d83356bbfad9b1151992
2020-04-01Added code for decoding base64 encoded valueRahul_cool1-0/+9
Issue-ID: SDNC-899 Signed-off-by: Rahul_cool <rahul.tamrkar@huawei.com> Change-Id: I231f891118dabf59518bcf4dbe456df97cd3e5b2
2020-02-21Support updating JSON object string for sliPluginUtilsEnbo Wang1-0/+37
Issue-ID: CCSDK-2111 Signed-off-by: Enbo Wang <wangenbo@huawei.com> Change-Id: Ide6bb06a05fcbb3b88e73cc0fbec6fd46bd29033
2020-01-31minor sli provider base changesSmokowski, Kevin (ks6305)2-4/+4
add more unit testing, use constants for success/failure and improve some logging calls Issue-ID: CCSDK-2064 Signed-off-by: Smokowski, Kevin (ks6305) <kevin.smokowski@att.com> Change-Id: I2c7039c706de1172bd506a20e96eb987cc86f211
2019-12-18enhance SliPluginUtilsSmokowski, Kevin (ks6305)3-128/+332
writeJsonToCtx now supports top level json arrays, add urlDecode to SliStringUtils, rename CheckParametersTest and move unrelated methods into another test class and Add test cases to improve test coverage Issue-ID: CCSDK-2006 Signed-off-by: Smokowski, Kevin (ks6305) <kevin.smokowski@att.com> Change-Id: If1f654ea9c7046b00c977434f87740e54f15b7d3
2019-10-30SliStringUtilsSmokowski, Kevin (ks6305)2-4/+85
additional functions in SliStringUtils added Issue-ID: CCSDK-1847 Signed-off-by: Smokowski, Kevin (ks6305) <kevin.smokowski@att.com> Change-Id: I2e38258abe57d4fcd49cf226877cd38e9dd947d6
2019-05-22add escape and unescape json to SliStringUtilsSmokowski, Kevin (ks6305)1-0/+20
Add escape and unescape json to SliStringUtils. Can be useful when creating payloads from escaped json or sending payloads that involved escaped json. Change-Id: I736024ef91b5e6fff75374802b0fee2370f12b2f Issue-ID: CCSDK-1353 Signed-off-by: Smokowski, Kevin (ks6305) <kevin.smokowski@att.com>
2019-05-10Remove DME2 pluginSmokowski, Kevin (ks6305)1-302/+0
dme2 plugin was used to create dme2ingress proxy urls. This class is not generic enough to be useful to a wide audience. Change-Id: Iadc68d8f22393c3a9a5d21754137cae22b23fafe Issue-ID: CCSDK-1323 Signed-off-by: Smokowski, Kevin (ks6305) <kevin.smokowski@att.com>
2018-10-04Merge "added test cases to CheckParametersTest"Dan Timoney1-1/+31
2018-10-04Merge "added test cases to SliStringUtilsTest"Dan Timoney1-243/+258
2018-10-03added test cases to SliStringUtilsTestSandeep J1-243/+258
to increase code coverage Issue-ID: CCSDK-595 Change-Id: Ice4f938166ab65ea316b683c3865dffc0483738c Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-10-03added test case to SliPluginUtils_ctxSortListSandeep J1-103/+112
to increase code coverage Issue-ID: CCSDK-595 Change-Id: Idb51b525279916e5f7b6fe26dc9b4372243d163a Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-10-03added test cases to CheckParametersTestSandeep J1-1/+31
to increase code coverage Issue-ID: CCSDK-595 Change-Id: Ibf5316cc567cacf52806ef57e69749006fe8b204 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-09-27Merge "added test case to SliStringUtilsTest"Dan Timoney1-5/+13
2018-09-27Merge "added test case to SliPluginUtils_ctxSortList"Dan Timoney1-61/+106
2018-09-26added test case to SliStringUtilsTestSandeep J1-5/+13
to increase code coverage Issue-ID: CCSDK-595 Change-Id: I3cc31ab404fa5ee26bcecd1a5617b2423a10a96c Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-09-26added test case to SliPluginUtils_ctxSortListSandeep J1-61/+106
to increase code coverage Issue-ID: CCSDK-595 Change-Id: I0cfaac418d169542b92b6f60eb1b8c32a1a95f37 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-09-25added test cases to CheckParametersTest.javaSandeep J1-113/+146
to increase code coverage Issue-ID: CCSDK-595 Change-Id: I182eac676dd65c4ef68dd8a479d288615471c712 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-09-24Merge "added test case to Dme2Test.java"Dan Timoney1-1/+20
2018-09-24added test case to Dme2Test.javaSandeep J1-1/+20
to increase code coverage Issue-ID: CCSDK-595 Change-Id: Id3ae2ba9045d1308af2fb09f0c8aacdf5e40605b Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-09-24added test cases to CheckParametersTestSandeep J1-82/+119
to increase code coverage Issue-ID: CCSDK-595 Change-Id: Ief8154612aff27cda10f57623b1cca6baac9a7a7 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-06-27filter partner outSmokowski, Kevin (ks6305)1-0/+1
filter partner out Change-Id: Ia23d5f484c52aed94500bb0bf50ae2654d8aa14b Issue-ID: CCSDK-323 Signed-off-by: Smokowski, Kevin (ks6305) <ks6305@att.com>
2018-06-21additional dme2 improvementsSmokowski, Kevin (ks6305)1-184/+282
add back convenience method to support legacy callers that don't want to switch to new function signature and additional small changes Change-Id: Idebc992c4ddf70feb11fc7faebb0f050c353a4a7 Issue-ID: CCSDK-308 Signed-off-by: Smokowski, Kevin (ks6305) <ks6305@att.com>
2018-06-06dme2 plugin improvementsSmokowski, Kevin (ks6305)1-109/+184
DME2 plugin itself will be coded to generic properties object not any custom object. The code is flexible so new query parameters can easily be added without code changes. Default properties which could previously not be overridden can now be overridden if desired. Change-Id: I56b4dfd4dee350198a23ac57c775bd1adacb1a9a Issue-ID: CCSDK-274 Signed-off-by: Smokowski, Kevin (ks6305) <ks6305@att.com>
2018-04-25add replaceAll to slistringutilsSmokowski, Kevin (ks6305)1-0/+15
add replaceAll to slistringutils because it supports regular expressions and replace does not Change-Id: Ibff7acd339103a6bb897d14ca3d31736a5b568ef Issue-ID: CCSDK-253 Signed-off-by: Smokowski, Kevin (ks6305) <ks6305@att.com>
2017-10-03Add unit test for ccsdk/coresurya-huawei1-0/+12
*Add a unit test for SliStringUtils This is to test substring method of SliStringUtils and improve code coverage Issue-Id: CCSDK-106 Change-Id: I73c5af3b036a92fdcb1d3d1be7eb0b3abc44fd5a Signed-off-by: surya-huawei <a.u.surya@huawei.com>
2017-09-27Add unit test for SliStringUtilssurya-huawei1-0/+6
*Made quotedOrNull method public This is done for accessing this in ut *Added a unit test for the SliStringUtils.quotedOrNull() This is done for increasing code coverage Issue-Id: CCSDK-106 Change-Id: I9d74c6645256227b23beded5179fbb28ac3d3c04 Signed-off-by: surya-huawei <a.u.surya@huawei.com>
2017-09-13Remove unused imports in java filesRyan Goulding6-6/+0
Code sanitation-- remove unused imports. Issue-Id: SDNC-79 Change-Id: I5306a9b90f302086459fcac98d04f541ba7c79a4 Signed-off-by: Ryan Goulding <ryandgoulding@gmail.com>
2017-09-06Merge "Fix service registration for SDNC"Dan Timoney1-4/+6
2017-09-06Enable surefire unit testingMarcus G K Williams1-3/+3
Issue-Id: CCSDK-67 Change-Id: I3d03ff1a3e312edd4af7ab69508760d2fe49be78 Signed-off-by: Marcus G K Williams <marcus.williams@intel.com>
2017-09-06Fix service registration for SDNCRyan Goulding1-4/+6
sliPluginUtils was using a BundleActivator for Service Instantiation, which is prone to heisenbugs due to indeterminate service instantiation logic. This removes the BundleActivator and instantiates services using blueprint. Since dme2.properties are parsed using Properties instead of using a ManagedService, the decision was to just keep them immutable. Future work may involve making instance variables private in DME2, since currently Dme2Test performs direct member access on DME2 instance variables which is considered bad practices (violates encapsulation). Issue-Id: SDNC-54 Change-Id: Ib1155565e04e9a95d222bc4028a0845d9d81bd82 Signed-off-by: Ryan Goulding <ryandgoulding@gmail.com>
2017-08-15Fix license headersDan Timoney7-7/+14
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-07Refactor sliPluginUtils package namesDan Timoney7-9/+13
Update Java package names from org.openecomp to org.onap Issue: CCSDK-11 Change-Id: I7e318565197b5806f6a7d7131bd3118fbe9cf8e0 Signed-off-by: Dan Timoney <dtimoney@att.com>
2017-08-01Refactor dblibDan Timoney7-32/+25
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 Timoney7-0/+1219
Add seed code for sli/core repository Issue: CCSDK-6 Change-Id: Iaeb54c6135a94a6ffec0c7fd96505d72d18aeb00 Signed-off-by: Dan Timoney <dtimoney@att.com>