summaryrefslogtreecommitdiffstats
path: root/sli
AgeCommit message (Collapse)AuthorFilesLines
2020-12-01Migrate sli-core filesJessica Wagantall163-18595/+0
Migrate sli-core repo files into new directory "core". Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
2020-11-25Release version 1.1.0 of sli/coreDan Timoney6-6/+6
Release initial Honolulu version of sli/core and roll version to next snapshot Change-Id: Id65539a7e275c57fce0bc23e88bbc2eaf641cf05 Issue-ID: CCSDK-3002 Signed-off-by: Dan Timoney <dtimoney@att.com>
2020-11-17Fix NPE in toJsonString()Dan Timoney1-1/+5
Fixed SvcLogicContext.toJsonString() to return the empty string () if it cannot find the requested prefix in the service logic context. Change-Id: I5e36864f961b36b6c82a3db8d20483df6686ed15 Issue-ID: CCSDK-2990 Signed-off-by: Dan Timoney <dtimoney@att.com>
2020-10-19Add file path validationDan Timoney5-19/+5
Add file path validation for EnvVarFileResolver. Refactored PathValidator to org.onap.ccsdk.sli.core.utils so it can be used here. Change-Id: Ibb50df0ad020cf376c1ce20e7b598f7ad7223d48 Issue-ID: CCSDK-2918 Signed-off-by: Dan Timoney <dtimoney@att.com>
2020-10-16Add code to validate path names.Dan Timoney5-7/+40
Added code to validate path names to avoid possible attacks due to hidden/special characters and/or embedded new lines. Change-Id: I53d7266e44fbada1d9d5f458dfcdbc452801672c Issue-ID: CCSDK-2918 Signed-off-by: Dan Timoney <dtimoney@att.com>
2020-09-09Roll to initial Honolulu release versionDan Timoney6-12/+12
Roll master branch to initial Honolulu release version Change-Id: I5abee4ba661e665251e7d03e7705096ff9103b5d Issue-ID: CCSDK-2742 Signed-off-by: Dan Timoney <dtimoney@att.com>
2020-09-02secure printer changesSmokowski, Kevin (ks6305)1-9/+41
add method to print properties alphabetically Issue-ID: CCSDK-2721 Signed-off-by: Smokowski, Kevin (ks6305) <kevin.smokowski@att.com> Change-Id: I3bcb46a1f45dc74a2bc97acff08fa8c2c29d0ba7
2020-08-31Add jaxb implementation dependenciesDan Timoney1-0/+8
Add JAXB implementation dependencies (needed for Java 11). Issue-ID: CCSDK-2710 Signed-off-by: Dan Timoney <dtimoney@att.com> Change-Id: I27b5c50425aa9c2091486e087542de16cb254e0c
2020-08-19fix for J11Michael Dürre1-8/+12
add missing dependency in J11 Issue-ID: CCSDK-2669 Signed-off-by: Michael Dürre <michael.duerre@highstreet-technologies.com> Change-Id: Iea66c3658e3d7e847bdb996567402c66ab2ab9a3
2020-08-11add new print methodsKevin Smokowski3-1/+109
create filtered print method for svclogic context Issue-ID: CCSDK-2643 Change-Id: I59261b1e581130d0fbe7d6735f96ee4c6e90ae75 Signed-off-by: Smokowski, Kevin (ks6305) <kevin.smokowski@att.com>
2020-08-07Roll to next snapshotDan Timoney6-12/+12
Roll to snapshot version 1.0.1-SNAPSHOT Change-Id: Ifd7092ac65b40311336f1e696d2198576c5fba85 Issue-ID: CCSDK-2635 Signed-off-by: Dan Timoney <dtimoney@att.com>
2020-07-10upgrade core to sodiumMichael Dürre1-1/+2
fixed unit test due changes in sodium Issue-ID: CCSDK-2543 Signed-off-by: Michael Dürre <michael.duerre@highstreet-technologies.com> Change-Id: I65b725686b480554cec974c05a6b2814901d1d5e
2020-06-19Implement new method to convert SvcLogicContext to JSONDan Timoney13-219/+901
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-06-18Merge "Add sliapi-model-yang to sliapi installer"Dan Timoney1-0/+1
2020-06-18Add sliapi-model-yang to sliapi installerDan Timoney1-0/+1
Add sliapi-model-yang as dependency to installer so that jar will be included in distribution bundle. Change-Id: I6b20e8bb13fb786c92a73d4149125a8e7082570a Issue-ID: CCSDK-2453 Signed-off-by: Dan Timoney <dtimoney@att.com>
2020-06-17MetricLogger MDC changesSmokowski, Kevin (ks6305)2-15/+51
Generate RequestID if not previously set. Generate a unique InvocationID for each request. Issue-ID: CCSDK-2455 Signed-off-by: Smokowski, Kevin (ks6305) <kevin.smokowski@att.com> Change-Id: I3bd8f90efbf98b4bf2a6464d94682bcd80cdd948
2020-04-27metric logger changeSmokowski, Kevin (ks6305)3-15/+52
fix elapsed time in metric logger Issue-ID: CCSDK-2337 Signed-off-by: Smokowski, Kevin (ks6305) <kevin.smokowski@att.com> Change-Id: I81c27bbead8614e2927aa9eddef3621559eb7cc0
2020-04-13Add special handling for BGP RouteDistinguisherDan Timoney2-2/+24
Add special case code in MdsalHelper for BGP RouteDistinguisher class - a custom class implemented by OpenDaylight that does NOT follow the pattern of data object classes generated from Yang models by Yangtools Note: this depends on the following ccsdk/parent change to add OpenDaylight BGP dependencies to the dependencyManagement section of our parent poms: https://gerrit.onap.org/r/c/ccsdk/parent/+/105774 Change-Id: Ifebd03091d9ed9225e37c7242ecf7810abca1feb Issue-ID: CCSDK-2307 Signed-off-by: Dan Timoney <dtimoney@att.com>
2020-03-26Use MariaDB instead of DerbyDan Timoney1-1/+1
Use MariaDB instead of Derby as backing store for sliboot Change-Id: Ib9fa4abaaf88bcb1eac2276bc974474f067a06d3 Issue-ID: CCSDK-2188 Signed-off-by: Dan Timoney <dtimoney@att.com>
2020-03-05Roll master to GuilinDan Timoney6-24/+13
Roll versions of master for early Guilin development Change-Id: I9ad7859eb294120542bce6faadb83b383e963fa7 Issue-ID: CCSDK-2152 Signed-off-by: Dan Timoney <dtimoney@att.com>
2020-03-04Use released 1.5.2 CCSDK parentDan Timoney6-6/+6
Update to use released version of CCSDK parent pom Change-Id: I573d5c30a799c1bf828b195aa0dff1b85c9a44ad Issue-ID: CCSDK-2152 Signed-off-by: Dan Timoney <dtimoney@att.com>
2020-02-28Support merge JSON to SvcLogicContextDan Timoney4-7/+71
Add support for merging JSON into SvcLogicContext Change-Id: If13fd6328a36ccff6393d0829319bbd99cd2a1f0 Issue-ID: CCSDK-2096 Signed-off-by: Dan Timoney <dtimoney@att.com>
2020-02-28Adding missing parent relativePath and name tagSingal, Kapil (ks220y)1-1/+3
Change-Id: Id093df2ca432b91f7003196bdeceb928caf60010 Issue-ID: CCSDK-2128 Signed-off-by: Singal, Kapil (ks220y) <ks220y@att.com>
2020-02-27Add execute-graph and vlbcheck to swagger-codegen codeDan Timoney1-1/+1
Add implementation for execute-graph and vlbcheck RPCs. Also, added junit tests. Change-Id: Id2a31c033d25ef12c455bfee98c5aea8439fc2f9 Issue-ID: CCSDK-2096 Signed-off-by: Dan Timoney <dtimoney@att.com>
2020-02-24minor logging updatesSmokowski, Kevin (ks6305)4-17/+198
create error logger, integrate with record node and improve slf4jrecorder Issue-ID: CCSDK-2115 Signed-off-by: Smokowski, Kevin (ks6305) <kevin.smokowski@att.com> Change-Id: I857ce0fac070278a195204195eaae0c53d2d0d52
2020-02-21Merge "Springboot-based SLI-API"Dan Timoney11-115/+28
2020-02-21Springboot-based SLI-APISmokowski, Kevin (ks6305)11-115/+28
Implement SLI-API RESTCONF in springboot Change-Id: I8b9b07e3b1aeb4a5adac977307c6f95c905ea038 Issue-ID: CCSDK-2096 Signed-off-by: Dan Timoney <dtimoney@att.com>
2020-02-19unit test for MdsalHelperSmokowski, Kevin (ks6305)1-0/+14
add testToLowerHyphen to MdsalHelper Issue-ID: CCSDK-2106 Signed-off-by: Smokowski, Kevin (ks6305) <kevin.smokowski@att.com> Change-Id: I851c3887d61ec2ce520a7fa187a1b65dc3616e6c
2020-02-17Refactoring deprecated lang3.StringEscapeUtilsSingal, Kapil (ks220y)2-55/+59
Replace deprecated org.apache.commons.lang3.StringEscapeUtils with org.apache.commons.text.StringEscapeUtils Change-Id: Ib0303919d883a577effbb6fa15ddeb289cb936fc Issue-ID: CCSDK-2104 Signed-off-by: Singal, Kapil (ks220y) <ks220y@att.com>
2020-02-03MdsalHelper testing and logginghSmokowski, Kevin (ks6305)2-316/+701
make one log statement quieter and add unit tests for MdsalHelper Issue-ID: CCSDK-2071 Signed-off-by: Smokowski, Kevin (ks6305) <kevin.smokowski@att.com> Change-Id: I7af1b2c0dce47c2d5970de4950c951c58fa4fb65
2020-01-31minor sli provider base changesSmokowski, Kevin (ks6305)21-63/+199
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
2020-01-24Roll versions to next snapshotDan Timoney7-14/+14
Roll CCSDK to next snapshot version Change-Id: I24f5470165522a4311c611785b323c1f81d41a8a Issue-ID: CCSDK-1963 Signed-off-by: Dan Timoney <dtimoney@att.com>
2020-01-23Use released parent pomDan Timoney7-7/+7
Use released version of ccsdk/parent poms Change-Id: Ice9f18ee402e42f8e26c46640aeb0ae79343d105 Issue-ID: CCSDK-1963 Signed-off-by: Dan Timoney <dtimoney@att.com>
2020-01-21Add report aggregatorDan Timoney2-5/+30
For new Sonar scanner, need to add report aggregate so that tests run in sli/provider against classes in sli/provider-base will be counted correctly. Change-Id: I0a73a0a50353f995ea4b90c09649e55b057f024a Issue-ID: CCSDK-2029 Signed-off-by: Dan Timoney <dtimoney@att.com>
2020-01-16Fix issue of converting camel case to lower hyphen formatEnbo Wang2-4/+4
Fix issue of converting camel case to lower hyphen format when there are continuous capital letters. Issue-ID: CCSDK-2026 Signed-off-by: Enbo Wang <wangenbo@huawei.com> Change-Id: Ifd10b1e82c1f10476bbc6e15689e6025de57bbf4
2019-12-13Refactor features to separate installerTimoney, Dan (dt5972)5-128/+0
Refactor karaf feature.xml files to separate installer Change-Id: I2afade9862227175853d9fe36c5bc9b113e3d582 Issue-ID: CCSDK-1754 Signed-off-by: Timoney, Dan (dt5972) <dtimoney@att.com>
2019-12-04Clean up installersTimoney, Dan (dt5972)1-13/+1
Clean up installers to install only ONAP code, not third party dependencies. Third party dependencies should be installed in ccsdk/distribution/dependencies only. Change-Id: I3459d2d5a82899ad21b1b25daae6f6d182d972af Issue-ID: CCSDK-1979 Signed-off-by: Timoney, Dan (dt5972) <dtimoney@att.com>
2019-12-02Use 1.5.1-SNAPSHOT version of parent pomTimoney, Dan (dt5972)10-10/+10
Fixed version of parent pom to use snapshot version Change-Id: I128d3b55d0ae3adb4a1255a9b00fc129a9c9bc44 Issue-ID: CCSDK-1935 Signed-off-by: Timoney, Dan (dt5972) <dtimoney@att.com>
2019-11-18Merge "Minor Logging Changes"Dan Timoney3-58/+56
2019-11-13Use 1.5.0 parent pomTimoney, Dan (dt5972)10-10/+10
Use released 1.5.0 version of parent pom Change-Id: I92e2f71000a7d651f6a20167dd3861942ea27ced Issue-ID: CCSDK-1920 Signed-off-by: Timoney, Dan (dt5972) <dtimoney@att.com>
2019-11-12Minor Logging ChangesSingal, Kapil (ks220y)3-58/+56
Change-Id: I3ecefccbd1bd5041b9d9b62fe1a0587e72b26c8a Issue-ID: CCSDK-1915 Signed-off-by: Singal, Kapil (ks220y) <ks220y@att.com>
2019-11-01SliProviderBaseUpdatesSmokowski, Kevin (ks6305)7-57/+229
SvcLogicServiceImplBase constructor should have SvcLogicResolver as a parameter,Added HashMapResolver to map svclogic instances without osgi,Added InMemorySvcLogicStore useful for simple demos or junit test Issue-ID: CCSDK-1891 Signed-off-by: Smokowski, Kevin (ks6305) <kevin.smokowski@att.com> Change-Id: I3c3cdd33177ef10133db2672ddd4b308becefc90
2019-10-31pom updatesSmokowski, Kevin (ks6305)1-1/+0
inherit version for org.onap.logging-analytics artifacts Issue-ID: CCSDK-1882 Signed-off-by: Smokowski, Kevin (ks6305) <kevin.smokowski@att.com> Change-Id: I9ab3e996f5f951dae8a00c9c7cf6fcd054905146
2019-10-30remove ODL/karaf from commonSmokowski, Kevin (ks6305)12-266/+27
Don't let sli common use odl or karaf classes Issue-ID: CCSDK-1723 Signed-off-by: Smokowski, Kevin (ks6305) <kevin.smokowski@att.com> Change-Id: I740fa32b9c40a7efdf7ef9ce25b26cf43353c559
2019-10-23Merge "Update metric logger"Dan Timoney2-1/+8
2019-10-17Update metric loggerSmokowski, Kevin (ks6305)2-1/+8
set status during invoke and escape certain characters Issue-ID: CCSDK-1845 Signed-off-by: Smokowski, Kevin (ks6305) <kevin.smokowski@att.com> Change-Id: I3928364f480545ccdcce0af67e198d93152cfbd8
2019-10-15Refactor class/instance loading and resolving in the SLI moduleSamuel Kontris6-112/+51
Code from the static class SvcLogicAdaptorFactory is moved to the SvcLogicClassResolver class. Class SvcLogicClassResolver is created as a bean in the blueprint xml file, not as singleton directly in the code. Then is injected via blueprint into the SvcLogicServiceImpl. Methods registerExecutor and unregisterExecutor from the SvcLogicServiceImpl class are removed - are not used anywhere. This change causes compilation error in the northbound repository. Fix for this error is here: https://gerrit.onap.org/r/#/c/ccsdk/sli/northbound/+/95053/ Issue-ID: CCSDK-1688 Change-Id: I26ce01b761ab5d17f1cc19e39af581b1963658a5 Signed-off-by: Samuel Kontris <samuel.kontris@pantheon.tech>
2019-09-19Merge "update filters"Dan Timoney3-41/+33
2019-09-19update filtersSmokowski, Kevin (ks6305)3-41/+33
replace legacy filters with common filters Issue-ID: CCSDK-1698 Signed-off-by: Smokowski, Kevin (ks6305) <kevin.smokowski@att.com> Change-Id: Id6b1f003f19105956d221d5bfd31390ac096c9bc
2019-09-18ReturnNodeExecutor Fixing Logger StatementSingal, Kapil (ks220y)1-1/+1
Adding third variable to the logger so that Expression prints properly Change-Id: I2e4a74ace199506698abede88778e6314b226e59 Issue-ID: CCSDK-1745 Signed-off-by: Singal, Kapil (ks220y) <ks220y@att.com>