ccsdk/sli/northbound.git
6 years agoFix ueb-listener client name 23/19123/1
Dan Timoney [Mon, 16 Oct 2017 18:42:00 +0000 (14:42 -0400)]
Fix ueb-listener client name

Fix package name of ueb listener client in jar manifest

Change-Id: I1db2acd8b269ffbf88d41f827c3baaa22b253bd7
Issue-ID: SDNC-129
Signed-off-by: Dan Timoney <dtimoney@att.com>
6 years agoFix sli/northbound blueprint 21/18821/1
Dan Timoney [Fri, 13 Oct 2017 19:51:22 +0000 (15:51 -0400)]
Fix sli/northbound blueprint

Wrong package name is used for NotificationPublishService in blueprint,
resulting in asdcApi and dataChange not being loaded properly.

Change-Id: I144f8e4bd48e547e7c7241e9ebaacf744d808022
Issue-ID: CCSDK-119
Signed-off-by: Dan Timoney <dtimoney@att.com>
6 years agoMerge "Add readthedocs documentation for sli/northbound"
Dan Timoney [Thu, 12 Oct 2017 15:03:55 +0000 (15:03 +0000)]
Merge "Add readthedocs documentation for sli/northbound"

6 years agoAdd readthedocs documentation for sli/northbound 37/18537/1
Dan Timoney [Thu, 12 Oct 2017 13:04:22 +0000 (09:04 -0400)]
Add readthedocs documentation for sli/northbound

Add readthedocs documentation for sli/northbound.

Change-Id: I8ca9d7e839408094ab3754500d71fe7463f0b0e4
Issue-ID: CCSDK-107
Signed-off-by: Dan Timoney <dtimoney@att.com>
6 years agoRemove IOException in method declaration 63/18463/1
surya-huawei [Thu, 12 Oct 2017 06:47:55 +0000 (12:17 +0530)]
Remove IOException in method declaration

*This is done because IOException cannot be thrown
from the method and is hence superflous

Issue-Id: CCSDK-117
Change-Id: I0712cfbf610f815e76ed33b0039ecb5e3cc7bbbe
Signed-off-by: surya-huawei <a.u.surya@huawei.com>
6 years agoAdd retry to ueb-listener 81/17681/1
Dan Timoney [Mon, 9 Oct 2017 14:02:22 +0000 (10:02 -0400)]
Add retry to ueb-listener

Added retry mechanism to ueb-listener to handle case where
ueb-listener comes up before DMaap or SDC.

Change-Id: I0d96bd1fe4d3d0fdb5e01d9f42304b54bea0a550
Issue-ID: CCSDK-112
Signed-off-by: Dan Timoney <dtimoney@att.com>
6 years agoAdd a test for DummyDmaapConsumer 19/17319/1
surya-huawei [Thu, 5 Oct 2017 10:19:13 +0000 (15:49 +0530)]
Add a test for DummyDmaapConsumer

*Add a unit test in sli/northbound module
This is to improve code coverage of DummyDmaapConsumer class

Issue-Id: CCSDK-106
Change-Id: Iecd4970a0cd82c94a219b1a2e861fcc3da11f23c
Signed-off-by: surya-huawei <a.u.surya@huawei.com>
6 years agoAdd a test for SdncJsonDmaapConsumer 15/17315/1
surya-huawei [Thu, 5 Oct 2017 09:50:33 +0000 (15:20 +0530)]
Add a test for SdncJsonDmaapConsumer

*Add a unit test in sli/northbound module
This Test checks whether an InvalidMessageException is
thrown when null is passed to processMsg method

Issue-Id: CCSDK-106
Change-Id: I52327377f4582d8c24cef87f0360b977f2f216fc
Signed-off-by: surya-huawei <a.u.surya@huawei.com>
6 years agoTest TOSCA table insertion 91/17291/2
Dan Timoney [Wed, 4 Oct 2017 20:58:38 +0000 (16:58 -0400)]
Test TOSCA table insertion

Add code to create TOSCA tables in test driver to test TOSCA table
insertion in ueb-listener TOSCA parser test.

Change-Id: Ib8c3fcdb25fbdba39b4700553d8c01b684efa384
Issue-ID: CCSDK-102
Signed-off-by: Dan Timoney <dtimoney@att.com>
6 years agoImprove ueb-listener tests 49/17149/1
Dan Timoney [Wed, 4 Oct 2017 00:34:31 +0000 (20:34 -0400)]
Improve ueb-listener tests

Use Maria4JDB to improve test coverage of ueb-listener.

Change-Id: Ifb88916434bb1b293b4bbd6fae069cd1e88c9d8d
Issue-ID: CCSDK-106
Signed-off-by: Dan Timoney <dtimoney@att.com>
6 years agoAdd ueb-listener test case 47/17147/1
Dan Timoney [Wed, 4 Oct 2017 00:04:32 +0000 (20:04 -0400)]
Add ueb-listener test case

Add test case for license-model parsing in ueb-listener.

Change-Id: I279e269f7ba3c6f37c09f71b99b20d4e9e661e23
Issue-ID: CCSDK-106
Signed-off-by: Dan Timoney <dtimoney@att.com>
6 years agoMerge "Improve SDNC coverage"
Dan Timoney [Tue, 3 Oct 2017 20:15:20 +0000 (20:15 +0000)]
Merge "Improve SDNC coverage"

6 years agoAdd ueb-listener unit test 13/17113/1
Dan Timoney [Tue, 3 Oct 2017 18:30:51 +0000 (14:30 -0400)]
Add ueb-listener unit test

Enhance ueb-listener unit test to verify TOSCA parse

Change-Id: Iedc675ead3ef69e4fa7151c8c4c500990c0ee6a7
Issue-ID: CCSDK-106
Signed-off-by: Dan Timoney <dtimoney@att.com>
6 years agoImprove SDNC coverage 05/17005/2
shashikanth [Tue, 3 Oct 2017 11:28:51 +0000 (16:58 +0530)]
Improve SDNC coverage

Added initial test cases for dataChange.

Issue-Id: SDNC-101
Change-Id: I112a6695f4d4ca92b78884d25fef12f382598b37
Signed-off-by: shashikanth.vh <shashikanth.vh@huawei.com>
6 years agoAdd unit test for dmaap-listener 11/17011/1
Dan Timoney [Tue, 3 Oct 2017 11:34:22 +0000 (07:34 -0400)]
Add unit test for dmaap-listener

Add unit test case for dmaap-listener.

Change-Id: I501614016c96d8300bc15cdf1819691f95c467f4
Issue-ID: CCSDK-106
Signed-off-by: Dan Timoney <dtimoney@att.com>
6 years agoAdd unit test for ueb-listener 93/16993/1
Dan Timoney [Tue, 3 Oct 2017 08:04:30 +0000 (04:04 -0400)]
Add unit test for ueb-listener

Add unit test case for ueb-listener.

Change-Id: Ia61f8e5bc0e817aa0f4a042d8e05b02ec9e2013b
Issue-ID: CCSDK-106
Signed-off-by: Dan Timoney <dtimoney@att.com>
6 years agoMerge "Improve SDNC Sonar coverage"
Dan Timoney [Thu, 28 Sep 2017 13:02:39 +0000 (13:02 +0000)]
Merge "Improve SDNC Sonar coverage"

6 years agoMerge "Deleted redundant try catch block"
Dan Timoney [Thu, 28 Sep 2017 13:02:25 +0000 (13:02 +0000)]
Merge "Deleted redundant try catch block"

6 years agoSetup ReadTheDocs 35/16335/1
Brian Freeman [Thu, 28 Sep 2017 11:03:28 +0000 (11:03 +0000)]
Setup ReadTheDocs

Issue-ID: CCSDK-107
Change-Id: I98bc6f3a3827bb1f4e03eb08474b15e26662705f
Signed-off-by: Brian Freeman <bf1936@att.com>
6 years agoImprove SDNC Sonar coverage 13/15913/1
shashikanth [Wed, 27 Sep 2017 10:13:48 +0000 (15:43 +0530)]
Improve SDNC Sonar coverage

Added initial test cases for ASDC-APIs

Issue-Id: SDNC-101
Change-Id: Iad8be979e39099e4ece8210dbd5d2c9c64b60990
Signed-off-by: shashikanth.vh <shashikanth.vh@huawei.com>
6 years agoDeleted redundant try catch block 23/15423/2
shashikanth [Tue, 26 Sep 2017 09:26:41 +0000 (14:56 +0530)]
Deleted redundant try catch block

Extract this nested try block into a separate method.
https://sonar.onap.org/component_issues?id=org.onap.ccsdk.sli.northbound%3Accsdk-sli-northbound#resolved=false|severities=MAJOR|rules=squid%3AS1141

Issue-Id: CCSDK-87
Change-Id: I989791d876b5a199f75983ba5137770f80995ef1
Signed-off-by: shashikanth.vh <shashikanth.vh@huawei.com>
6 years agoFix some sonar issues in sli/northbound 47/15047/1
surya-huawei [Mon, 25 Sep 2017 12:01:57 +0000 (17:31 +0530)]
Fix some sonar issues in sli/northbound

*Replace type specification with diamond operator
This is done to reduce the verbosity of generics code
*Replace ("") with ('') in String.lastIndexOf()
This is more efficient for single character
*Remove temp variable which is immediately returned
New variable is not necessary as the caller cannot see this

Issue-Id: CCSDK-87
Change-Id: I353652de723a624935d819b2bc817b4907af98ed
Signed-off-by: surya-huawei <a.u.surya@huawei.com>
6 years agoMerge "Fix sli dependency"
Dan Timoney [Fri, 22 Sep 2017 19:46:40 +0000 (19:46 +0000)]
Merge "Fix sli dependency"

6 years agoRemove unnecessary constructs 81/14581/1
surya-huawei [Fri, 22 Sep 2017 11:20:44 +0000 (16:50 +0530)]
Remove unnecessary constructs

*Remove unused imports
*Remove useless paranthesis
This is done as sometimes they can be misleading
*Replace type specification with diamond operator(<>)
This is done to reduce verbosity of generics code

Issue-Id: CCSDK-87
Change-Id: Ic356859939fe40cecec2e65c96d79cd6a655787e
Signed-off-by: surya-huawei <a.u.surya@huawei.com>
6 years agoResolved below sonar issues. 39/14239/2
Bharat saraswal [Thu, 21 Sep 2017 12:55:09 +0000 (18:25 +0530)]
Resolved below sonar issues.

Method complextity.
Redudant code and varibales.
Exception handling.
Refacting of code.

Issue-Id:CCSDK-87

Change-Id: I757c6a6d3c403f81f725ad97a7759225d0709468
Signed-off-by: Bharat saraswal <bharat.saraswal@huawei.com>
6 years agoUse Integer.toString for type conversion 05/14205/1
surya-huawei [Thu, 21 Sep 2017 10:25:14 +0000 (15:55 +0530)]
Use Integer.toString for type conversion

*Used Integer.toString instead of implicit type conversion
This is done to make use of static and reduce cycles
*Removed one unused import
*Removed unnecessary parantheses
Sometimes useless parantheses can be misleading hence removed

Issue-Id: CCSDK-87
Change-Id: I23f56cb7c5a6dafa79f64d5cd8faa0994f0ff288
Signed-off-by: surya-huawei <a.u.surya@huawei.com>
6 years agoMerge "Some minor refinements in CCSDK SLI Northbound"
Dan Timoney [Wed, 20 Sep 2017 20:01:37 +0000 (20:01 +0000)]
Merge "Some minor refinements in CCSDK SLI Northbound"

6 years agoSome minor refinements in CCSDK SLI Northbound 59/13859/2
ramu.n [Wed, 20 Sep 2017 11:44:38 +0000 (17:14 +0530)]
Some minor refinements in CCSDK SLI Northbound

Fix few Critical/Major sonar issues in CCSDK SLI Northbound module
* Remove useless parentheses
* Remove useless assignment to local variable
* Use built-in logger method string formatting instead of string concatination
* code indentation
* Replace for loop with foreach

Change-Id: I9a2e3345f23feb2d96045ac714d8acc528de464b
Issue-Id: CCSDK-67
Signed-off-by: Ramu N <ramu.n@huawei.com>
6 years agoRemove useless assigment to local variables 37/13837/1
surya-huawei [Wed, 20 Sep 2017 10:48:41 +0000 (16:18 +0530)]
Remove useless assigment to local variables

*Removed dead stores
This is done to avoid waste of resources

Issue-Id: CCSDK-87
Change-Id: Ie36255c6583792e2535000ee1bd5b2a3018632ff
Signed-off-by: surya-huawei <a.u.surya@huawei.com>
6 years agoMerge "Fix critical sonar issues"
Dan Timoney [Tue, 19 Sep 2017 23:52:47 +0000 (23:52 +0000)]
Merge "Fix critical sonar issues"

6 years agoFix sli dependency 29/13529/1
Brian Freeman [Tue, 19 Sep 2017 16:49:28 +0000 (16:49 +0000)]
Fix sli dependency

Issue-ID: SDNC-86
Change-Id: I91280ab218e2f1f25ab381eaa9f94dce8f2abdc9
Signed-off-by: Brian Freeman <bf1936@att.com>
6 years agoFix critical sonar issues 81/13481/1
Gaurav Agrawal [Tue, 19 Sep 2017 13:36:33 +0000 (19:06 +0530)]
Fix critical sonar issues

Fix critical sonar issues in CCSDK SLI Northbound by either logging or
rethrowing the exception
https://sonar.onap.org/component_issues/index?id=org.onap.ccsdk.sli.northbound%3Accsdk-sli-northbound#resolved=false|severities=CRITICAL

Change-Id: I718f13b5801ea9d69b5c36f75b5387a0ae59cc6a
Issue-Id: CCSDK-67
Signed-off-by: Gaurav Agrawal <gaurav.agrawal@huawei.com>
6 years agoFix Sonar Issues 89/13389/1
surya-huawei [Tue, 19 Sep 2017 10:02:16 +0000 (15:32 +0530)]
Fix Sonar Issues

few major issues in sli/northbound
*Remove unused imports
*Iterate over the "entrySet" instead of the "keySet"
*Replace the type specification with the diamond operator ("<>")

Issue-Id: CCSDK-87
Signed-off-by: surya-huawei <a.u.surya@huawei.com>
Change-Id: Ib2a6f97d3de759b937c1e2acd2e39312e88ad10b

6 years agoMerge "Replace deprecated APIs with newer one"
Dan Timoney [Mon, 18 Sep 2017 20:02:55 +0000 (20:02 +0000)]
Merge "Replace deprecated APIs with newer one"

6 years agoReplace deprecated API with newer one 17/13117/3
Gaurav Agrawal [Mon, 18 Sep 2017 13:07:49 +0000 (18:37 +0530)]
Replace deprecated API with newer one

Replace following deprecated API
1) NotificationProviderService replaced with NotificationPublishService
2) InstanceIdentifier<T> toInstance() replace with build()

Change-Id: I50195bf123052270edf3fd9f74af00262a01e650
Issue-Id: CCSDK-93
Signed-off-by: Gaurav Agrawal <gaurav.agrawal@huawei.com>
6 years agoReplace deprecated APIs with newer one 59/13059/2
Gaurav Agrawal [Mon, 18 Sep 2017 09:24:37 +0000 (14:54 +0530)]
Replace deprecated APIs with newer one

Replace following deprecated API
1) NotificationProviderService replaced with NotificationPublishService

Change-Id: I3d5117e63083ce77553feb3d3f6d6265576da646
Issue-Id: CCSDK-93
Signed-off-by: Gaurav Agrawal <gaurav.agrawal@huawei.com>
6 years agoFix Sonar issue in sli/northbound module 27/12927/1
surya-huawei [Sun, 17 Sep 2017 17:40:57 +0000 (23:10 +0530)]
Fix Sonar issue in sli/northbound module

One major issue
* move string literals to left side of
 string comparison

Issue-Id: CCSDK-87
Change-Id: Ibd1146a8a12dccc56fb620fe5830efb545ac39a1
Signed-off-by: surya-huawei <a.u.surya@huawei.com>
6 years agoUse oparent-odlparent in sli/northbound 43/12543/1
Dan Timoney [Thu, 14 Sep 2017 19:59:25 +0000 (15:59 -0400)]
Use oparent-odlparent in sli/northbound

Update sli/northbound to use oparent-odlparent, used by latest version
of ccsdk odlparent-carbon-sr1 parent.

Change-Id: I77c4452d4af04d3dc4cd0892a9a0dab6c77016bc
Issue-ID: CCSDK-43
Signed-off-by: Dan Timoney <dtimoney@att.com>
6 years agoFix Sonar issues 07/12407/1
surya-huawei [Thu, 14 Sep 2017 09:55:10 +0000 (15:25 +0530)]
Fix Sonar issues

few major issues in sli/northbound module

Issue-Id: CCSDK-87
Change-Id: I2c1a8b41266aae6941c5f2fdbb8b08ea91dde6ec
Signed-off-by: surya-huawei <a.u.surya@huawei.com>
6 years agoFix SDNC service registration 09/10909/2
Ryan Goulding [Thu, 7 Sep 2017 19:21:05 +0000 (15:21 -0400)]
Fix SDNC service registration

Move the northbound to utilize Aries Blueprint instead of ODL's
configuration subsystem

Change-Id: I7388391d40912136176bb28b817157676f71557d
Issue-Id: SDNC-54
Signed-off-by: Ryan Goulding <ryandgoulding@gmail.com>
6 years agoMerge "Fix few Blocker sonar issues"
Dan Timoney [Mon, 11 Sep 2017 15:21:41 +0000 (15:21 +0000)]
Merge "Fix few Blocker sonar issues"

6 years agoCleanup project's name in Sonar 03/11303/1
Jessica Wagantall [Fri, 8 Sep 2017 20:17:30 +0000 (13:17 -0700)]
Cleanup project's name in Sonar

The name parameter in the root pom.xml should
match the project name in gerrit to reflect consistency
in Sonar.

Change-Id: Iecfd1bf6a7937437728e5cf136b63c896da49b44
Issue-id: CIMAN-65
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
6 years agoFix few Blocker sonar issues 09/11109/2
Gaurav Agrawal [Fri, 8 Sep 2017 14:28:55 +0000 (19:58 +0530)]
Fix few Blocker sonar issues

Fix few Blocker sonar issues in CCSDK SLI Northbound
https://sonar.onap.org/component_issues/index?id=org.onap.ccsdk.sli.northbound%3Accsdk-sli-northbound#resolved=false|severities=BLOCKER

Change-Id: I7229c7e2a0dabc0ff789b91ae413b9a15ef3cbad
Issue-Id: CCSDK-67
Signed-off-by: Gaurav Agrawal <gaurav.agrawal@huawei.com>
6 years agoFix few Blocker sonar issues 95/11095/2
Gaurav Agrawal [Fri, 8 Sep 2017 13:58:18 +0000 (19:28 +0530)]
Fix few Blocker sonar issues

Fix few Blocker sonar issues in CCSDK SLI Northbound
https://sonar.onap.org/component_issues/index?id=org.onap.ccsdk.sli.northbound%3Accsdk-sli-northbound#resolved=false|severities=BLOCKER

Change-Id: I8a2f2e9f3bc5bc5c007076e42f77fbf5da1304ac
Issue-Id: CCSDK-67
Signed-off-by: Gaurav Agrawal <gaurav.agrawal@huawei.com>
6 years agoFix SDNC service registration 81/10881/3
Ryan Goulding [Thu, 7 Sep 2017 16:10:08 +0000 (12:10 -0400)]
Fix SDNC service registration

This change converts AsdcApiProvider and AsdcApiSliClient to utilize
Aries Blueprint for service instantiation instead of the ODL Config
Subsystem.

Change-Id: I5eaebe4c6e5b33fc8beb20b2cfe9acb6e8b6d808
Issue-Id: SDNC-54
Signed-off-by: Ryan Goulding <ryandgoulding@gmail.com>
6 years agoFix unimplemented createInstance 19/10619/1
Dan Timoney [Wed, 6 Sep 2017 18:04:27 +0000 (14:04 -0400)]
Fix unimplemented createInstance

The createInstance() method in the provider yang-generated Module class
has a default implementation that throws an UnsupportedOperationException.
Replaced default implementation with correct code to create an instance
of the asdcApi and dataChange provider classes.

Change-Id: I1f2b199702a9094f6808ec077d6752c4c5c0c30d
Issue-ID: CCSDK-77
Signed-off-by: Dan Timoney <dtimoney@att.com>
6 years agoFix staging variables for ccsdk/sli/northbound 37/10437/1
Marcus G K Williams [Wed, 6 Sep 2017 01:19:11 +0000 (18:19 -0700)]
Fix staging variables for ccsdk/sli/northbound

Issue-Id: CCSDK-67
Change-Id: Ib5fe6cc5cb46e9d25cf66b6ab30e0d8b8654c426
Signed-off-by: Marcus G K Williams <marcus.williams@intel.com>
6 years agoEnable surefire unit testing 31/10031/1
Marcus G K Williams [Fri, 1 Sep 2017 23:01:07 +0000 (16:01 -0700)]
Enable surefire unit testing

Issue-Id: CCSDK-67
Change-Id: If05df01e829a7a12ef00a1d778d918664635a48a
Signed-off-by: Marcus G K Williams <marcus.williams@intel.com>
6 years agoCleanup artifactId for ccsdk/sli/northbound 07/9107/2
Dan Timoney [Tue, 29 Aug 2017 12:52:32 +0000 (08:52 -0400)]
Cleanup artifactId for ccsdk/sli/northbound

ArtifactId for ccsdk/sli/northbound pom.xml should not be identical to that for
sdnc/northbound, otherwise import to Eclipse of both will be confusing.
Updated parent artifactId in module pom.xmls under ccsdk/sli/northbound

Change-Id: Ie1e1b7a1cd6bb7442a27ca083f37539cbc0497fb
Issue-ID: CCSDK-70
Signed-off-by: Dan Timoney <dtimoney@att.com>
6 years agoFix to start script and annotation dependency 17/8817/1
Brian Freeman [Fri, 25 Aug 2017 17:16:00 +0000 (17:16 +0000)]
Fix to start script and annotation dependency

Change-Id: I38d4ffad440ea5866a398b8a6a7244d8bf156138
Signed-off-by: Brian Freeman <bf1936@att.com>
Issue-Id: SDNC-67

6 years agoPort sli/northbound to Carbon 41/7641/1
Dan Timoney [Tue, 15 Aug 2017 19:18:54 +0000 (15:18 -0400)]
Port sli/northbound to Carbon

Updated sli/northbound repo to compile against OpenDaylight Carbon SR1 release

Change-Id: I6aec68cf436e11f5fd5b7094eb5616536bead44f
Issue-ID: CCSDK-25
Signed-off-by: Dan Timoney <dtimoney@att.com>
6 years agoRefactor rest of sli/northbound 25/7625/1
Dan Timoney [Tue, 15 Aug 2017 18:10:37 +0000 (14:10 -0400)]
Refactor rest of sli/northbound

Update remainder of sli/northbound  to replace references to openECOMP with references to ONAP

Change-Id: I2c321c9ec3f3138f3b7377ce1e0a8ff7e8f29bcc
Issue-ID: CCSDK-25
Signed-off-by: Dan Timoney <dtimoney@att.com>
6 years agoRefactor dataChange 03/7603/1
Dan Timoney [Tue, 15 Aug 2017 13:46:03 +0000 (09:46 -0400)]
Refactor dataChange

Update dataChange to replace references to openECOMP with references to ONAP

Change-Id: I2d495dbc13e6dd38e0c975070969b07e796eb82f
Issue-ID: CCSDK-25
Signed-off-by: Dan Timoney <dtimoney@att.com>
6 years agoRefactor asdcApi 91/7491/1
Dan Timoney [Mon, 14 Aug 2017 20:06:52 +0000 (16:06 -0400)]
Refactor asdcApi

Refactor asdcApi to replace openecomp references with onap

Change-Id: Ic0d61ca75219a57331ba61908fba942a1c0dce7b
Issue-ID: CCSDK-25
Signed-off-by: Dan Timoney <dtimoney@att.com>
6 years ago[CCSDK-6] Populate seed code 05/6005/4
Dan Timoney [Wed, 19 Jul 2017 00:32:15 +0000 (20:32 -0400)]
[CCSDK-6] Populate seed code

Add seed code for sli/northbound repository
Update groupId to org.onap.ccsdk.sli.northbound
Update to use CCSDK version of sli core

Change-Id: Id3a154a53150a74f4b65060544e76f3e0cad932e
Signed-off-by: Dan Timoney <dtimoney@att.com>
7 years agoInitial empty repository
Jessica Wagantall [Tue, 27 Jun 2017 21:35:55 +0000 (21:35 +0000)]
Initial empty repository