appc.git
5 years agoAdded Junit For VNFResolverDataReader 17/81917/3
Sudarshan Kumar [Mon, 11 Mar 2019 09:17:48 +0000 (14:47 +0530)]
Added Junit For VNFResolverDataReader

Added Junit Class for VNFResolverDataReader

Issue-ID: APPC-1372
Change-Id: I8236c89f95ffe6ffb61954456a7bab09082e47b2
Signed-off-by: Sudarshan Kumar <sudars19@in.ibm.com>
5 years agoadded file to test EnvVariables.java 70/79770/4
Sandeep J [Wed, 6 Mar 2019 10:03:08 +0000 (15:33 +0530)]
added file to test EnvVariables.java

to increase code coverage

Issue-ID: APPC-1086
Change-Id: I0ccef8fe411dec8a699152d7710ac83683c5cb72
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
5 years agoAdded test case for Metric builder 11/79911/2
Lathishbabu Ganesan [Thu, 7 Mar 2019 14:23:42 +0000 (09:23 -0500)]
Added test case for Metric builder

Issue-ID: APPC-1456
Change-Id: I814d1cdceaecc0e248ee2a0c9946069358ebbb06
Signed-off-by: Lathishbabu Ganesan <lathishbabu.ganesan@ericsson.com>
5 years agoadded test cases to VmStatusChecker.java 40/81840/2
Sandeep J [Fri, 8 Mar 2019 10:34:23 +0000 (16:04 +0530)]
added test cases to VmStatusChecker.java

to increase code coverage

Issue-ID: APPC-1086
Change-Id: Ica373ebc3281c9f66d2c2690af30394b45ea09ea
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
5 years agoadded test case to TestDGGeneralDBService.java 84/79884/3
Sandeep J [Thu, 7 Mar 2019 09:17:47 +0000 (14:47 +0530)]
added test case to TestDGGeneralDBService.java

to increase code coverage

Issue-ID: APPC-1086
Change-Id: Idfc3aa674b566f5e4e04e29396dd9c08607854b6
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
5 years agoadded file to test FqdnList.java 82/79882/3
Sandeep J [Thu, 7 Mar 2019 09:06:18 +0000 (14:36 +0530)]
added file to test FqdnList.java

to increase code coverage

Issue-ID: APPC-1086
Change-Id: Ic2028fa37825facb1e8999a8328c0773eb41abcc
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
5 years agoadded file to test Parameters.java 38/81838/2
Sandeep J [Fri, 8 Mar 2019 10:01:02 +0000 (15:31 +0530)]
added file to test Parameters.java

to increase code coverage

Issue-ID: APPC-1086
Change-Id: I046d1154ce19801cbc18883799f71ec401baa1cb
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
5 years agoSonar Fix- NullPointer & removed unused variables 39/81839/3
Sudarshan Kumar [Fri, 8 Mar 2019 10:11:16 +0000 (15:41 +0530)]
Sonar Fix- NullPointer & removed unused variables

Sonar Fix- Handling NullPointerException and removed unused variables

Issue-ID: APPC-1399
Change-Id: Iac61f72e7c1547ee7cf5aeab82a621a380e109fa
Signed-off-by: Sudarshan Kumar <sudars19@in.ibm.com>
5 years agoadded test cases to TimeTest.java 91/79591/5
Sandeep J [Mon, 4 Mar 2019 07:41:42 +0000 (13:11 +0530)]
added test cases to TimeTest.java

to increase code coverage

Issue-ID: APPC-1086
Change-Id: Ie6bc65d604ee673964507858ae68b7438f314841
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
5 years agoUpdate appc-dispatcher for >1 ansible servers 72/79572/10
Dunietz, Irwin [Sun, 3 Mar 2019 17:20:53 +0000 (12:20 -0500)]
Update appc-dispatcher for >1 ansible servers

Change Transaction record update logic to handle null instance entry.

Issue-ID: APPC-1516

Change-Id: Ia87e08fbb61d4d0be38802e3e81b45773b1d9498
Signed-off-by: Dunietz, Irwin <irwin.dunietz@att.com>
5 years agoadded test cases to TestStructuredPropertyTestHelp 92/79592/9
Sandeep J [Mon, 4 Mar 2019 07:49:55 +0000 (13:19 +0530)]
added test cases to TestStructuredPropertyTestHelp

to increase code coverage

Issue-ID: APPC-1086
Change-Id: I4b1afa01afabf9bdd95ea6b80f3af335523155b4
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
5 years agoTest coverage in RequestValidator 14/79714/2
Joss Armstrong [Tue, 5 Mar 2019 14:55:41 +0000 (14:55 +0000)]
Test coverage in RequestValidator

Increased coverage from 61% to 79%

Issue-ID: APPC-1436
Change-Id: I4a372d40b5593f32685b09c5240654dab0aee968
Signed-off-by: Joss Armstrong <joss.armstrong@ericsson.com>
5 years agoTest coverage in ArtifactHandlerClient 11/79711/5
Joss Armstrong [Tue, 5 Mar 2019 14:18:59 +0000 (14:18 +0000)]
Test coverage in ArtifactHandlerClient

Increase coverage from 34% to 83%
Fix for Sonar major issue on branch coverage

Issue-ID: APPC-1436
Change-Id: Ie26e2cb71c833e4f086da2a238bd6f956bd85f33
Signed-off-by: Joss Armstrong <joss.armstrong@ericsson.com>
5 years agoTest coverage in ArtifactHandlerProvider 25/79725/3
Joss Armstrong [Tue, 5 Mar 2019 17:12:41 +0000 (17:12 +0000)]
Test coverage in ArtifactHandlerProvider

Increase coverage from 51% to 96%
Fix assertions and Sonar major branch coverage problem

Issue-ID: APPC-1335
Change-Id: I1edb662db199dda46972fdf37820aa1de1ad46fc
Signed-off-by: Joss Armstrong <joss.armstrong@ericsson.com>
5 years agoadded file to test EscapeUtils.java 74/79774/2
Sandeep J [Wed, 6 Mar 2019 11:40:14 +0000 (17:10 +0530)]
added file to test EscapeUtils.java

to increase code coverage

Issue-ID: APPC-1086
Change-Id: I3c98deea811048097be6f87449d0f58b43b29be6
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
5 years agoadded file to test Vnfcslist.java 64/79764/1
Sandeep J [Wed, 6 Mar 2019 09:39:39 +0000 (15:09 +0530)]
added file to test Vnfcslist.java

to increase code coverage

Issue-ID: APPC-1086
Change-Id: Id574d909b674b1bdad8b96663d3fdb66cc276ecd
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
5 years agoadded skip hpervisor check and other adapterchange 82/79482/7
Modaboina, Kusumakumari (km583p) [Fri, 1 Mar 2019 20:38:31 +0000 (15:38 -0500)]
added skip hpervisor check and other adapterchange

Issue-ID: APPC-1378
Change-Id: Ia8db114af1347a9523676034fce56640f523e523
Signed-off-by: Modaboina, Kusumakumari (km583p) <km583p@us.att.com>
5 years agoAdded test case for Metric Activator 46/79646/3
Lathishbabu Ganesan [Mon, 4 Mar 2019 17:18:30 +0000 (12:18 -0500)]
Added test case for Metric Activator

Increased coverage from 0% to 100%

Issue-ID: APPC-1522
Change-Id: Ie8936926ccb5556fffd15467039ad27f8b99f27e
Signed-off-by: Lathishbabu Ganesan <lathishbabu.ganesan@ericsson.com>
5 years agoadded file to test Vm.java 94/79694/2
Sandeep J [Tue, 5 Mar 2019 10:36:15 +0000 (16:06 +0530)]
added file to test Vm.java

to increase code coverage

Issue-ID: APPC-1086
Change-Id: I251cbcaa1566ad405198a8b8f6669f783aef260e
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
5 years agoadded file to test TunableParameters.java 91/79691/1
Sandeep J [Tue, 5 Mar 2019 10:23:57 +0000 (15:53 +0530)]
added file to test TunableParameters.java

to increase code coverage

Issue-ID: APPC-1086
Change-Id: I7844c0c99f1c9ad6e58a6bc7d8b71aee1ff0bd55
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
5 years agoadded file to test ArtifactProcessorException.java 94/79594/4
Sandeep J [Mon, 4 Mar 2019 08:07:51 +0000 (13:37 +0530)]
added file to test ArtifactProcessorException.java

to increase code coverage

Issue-ID: APPC-1086
Change-Id: If5082027e00615c5633621fdd93be1fe13ca27c7
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
5 years agoAdded test case for Connection Factory 83/79383/4
Lathishbabu Ganesan [Thu, 28 Feb 2019 16:48:43 +0000 (11:48 -0500)]
Added test case for Connection Factory

Increased the code coverage from 0% to 100%

Issue-ID: APPC-1515
Change-Id: I186f57ce78127c64cc120bcdaa61b418e67fb0de
Signed-off-by: Lathishbabu Ganesan <lathishbabu.ganesan@ericsson.com>
5 years agoTest coverage in DefaultConfiguration 99/79599/2
Joss Armstrong [Mon, 4 Mar 2019 09:52:33 +0000 (09:52 +0000)]
Test coverage in DefaultConfiguration

Increased coverage from 79% to 89%

Issue-ID: APPC-1520
Change-Id: I6a7fccb7768fe6eb996055be4d14bc366c228feb
Signed-off-by: Joss Armstrong <joss.armstrong@ericsson.com>
5 years agoadded test case to TestStructuredPropertyHelper 45/79445/3
Sandeep J [Fri, 1 Mar 2019 11:35:41 +0000 (17:05 +0530)]
added test case to TestStructuredPropertyHelper

to increase code coverage

Issue-ID: APPC-1086
Change-Id: Ibc33a99c5e2ad26c1232eadde505071b58d1fb6b
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
5 years agoadded test cases to CachedElementTest.java 42/79442/3
Sandeep J [Fri, 1 Mar 2019 11:01:24 +0000 (16:31 +0530)]
added test cases to CachedElementTest.java

to increase code coverage

Issue-ID: APPC-1086
Change-Id: Idfb3ce36d41fdec4a5286da63b8a9592c1c83a96
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
5 years agoAdd missing INFO.yaml blocks 24/79524/2
Jessica Wagantall [Sat, 2 Mar 2019 01:01:19 +0000 (17:01 -0800)]
Add missing INFO.yaml blocks

Add missing information so that the new verify
job passes. Fix indentation.

Change-Id: I93af9ea59d8c2466e80f9146a4371f5c8b509e2c
Issue-ID: CIMAN-134
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
5 years agoTest coverage for HttpClientTest 68/79468/2
Joss Armstrong [Fri, 1 Mar 2019 17:20:00 +0000 (17:20 +0000)]
Test coverage for HttpClientTest

Added test coverage for untested class
Increased coverage from 0% to 89%

Issue-ID: APPC-1520
Change-Id: I113d515df3b6f6ef12565cf390f0bd2f2e8ac2f0
Signed-off-by: Joss Armstrong <joss.armstrong@ericsson.com>
5 years agoTest coverage in RestClientInvoker 64/79464/2
Joss Armstrong [Fri, 1 Mar 2019 16:41:24 +0000 (16:41 +0000)]
Test coverage in RestClientInvoker

Added test for untested class
Increased test coverage from 0% to 94%

Issue-ID: APPC-1520
Change-Id: I51610584cd203f5de7286c325332cade6f3c2bd6
Signed-off-by: Joss Armstrong <joss.armstrong@ericsson.com>
5 years agoHandled exception 56/79456/2
Jegadeesh Babu [Fri, 1 Mar 2019 14:16:41 +0000 (19:46 +0530)]
Handled exception

Sonar fix

Issue-ID: APPC-1518
Change-Id: Ia052693a420bbd7b06048336d518a49e598b4265
Signed-off-by: Jegadeesh Babu <jegabab1@in.ibm.com>
5 years agoHandled interrupted exception sonar fix 53/79453/3
Jegadeesh Babu [Fri, 1 Mar 2019 13:58:38 +0000 (19:28 +0530)]
Handled interrupted exception sonar fix

Sonar fix

Issue-ID: APPC-1517
Change-Id: I0a9fb64812c84963b08a53b09358f598d96eb014
Signed-off-by: Jegadeesh Babu <jegabab1@in.ibm.com>
5 years agoTest coverage in ConfigComponentAdaptor 49/79449/2
Joss Armstrong [Fri, 1 Mar 2019 12:34:01 +0000 (12:34 +0000)]
Test coverage in ConfigComponentAdaptor

Increased coverage from 79% to 89%
Fixed indentation

Issue-ID: APPC-1497
Change-Id: I9cee309b916eff93887a8d2b7691f9a7c6ba204b
Signed-off-by: Joss Armstrong <joss.armstrong@ericsson.com>
5 years agoAdded logger 54/79354/4
Jegadeesh Babu [Thu, 28 Feb 2019 13:38:15 +0000 (19:08 +0530)]
Added logger

Sonar fix

Issue-ID: APPC-1513
Change-Id: Ie6a28085288457b8bf8fea5c6d21313e61532f7c
Signed-off-by: Jegadeesh Babu <jegabab1@in.ibm.com>
5 years agoChanges for design service 02/79302/7
Sonali Das [Wed, 27 Feb 2019 20:39:15 +0000 (15:39 -0500)]
Changes for design service

Issue-ID: APPC-1342
Change-Id: Iff66ff977b7ca6bbe0e83fa467b72d253d9200b8
Signed-off-by: Sonali Das <sd394g@att.com>
5 years agoAdded Junit Class For LicenseModelBuilder.java 50/78950/3
Sudarshan Kumar [Thu, 21 Feb 2019 17:21:01 +0000 (22:51 +0530)]
Added Junit Class For LicenseModelBuilder.java

Added Junit Class For LicenseModelBuilder.java

Issue-ID: APPC-1372
Change-Id: I9acb703ccec2775c5c64e0be3a14ea93eb85b868
Signed-off-by: Sudarshan Kumar <sudars19@in.ibm.com>
5 years agoTest coverage in AppcProviderLcm 31/79331/4
Joss Armstrong [Thu, 28 Feb 2019 07:38:46 +0000 (07:38 +0000)]
Test coverage in AppcProviderLcm

Increased coverage from 74% to 100%
Fixed Sonar major issue for branch coverage

Issue-ID: APPC-1509
Change-Id: I8d487b295af7930dfcf917970f9806ac37023853
Signed-off-by: Joss Armstrong <joss.armstrong@ericsson.com>
5 years agoadded GetTemplateConfig_Saltstack DG 44/79144/3
Ganesh Chandrasekaran [Tue, 26 Feb 2019 01:23:58 +0000 (10:23 +0900)]
added GetTemplateConfig_Saltstack DG

Issue-ID: APPC-1101
Change-Id: I185caa7cbd23cf5ce7973d74f9b9cde896267433
Signed-off-by: Ganesh Chandrasekaran <ganesh.c@samsung.com>
5 years agoadded new saltstack-adapter-1.0 DG 43/79143/6
Ganesh Chandrasekaran [Tue, 26 Feb 2019 01:07:05 +0000 (10:07 +0900)]
added new saltstack-adapter-1.0 DG

Issue-ID: APPC-1101
Change-Id: Id5df4a856f73dddcecf7f4751ed07bdfceadf85a
Signed-off-by: Ganesh Chandrasekaran <ganesh.c@samsung.com>
5 years agoTest coverage in RestAdapterImpl 51/79351/3
Joss Armstrong [Thu, 28 Feb 2019 12:38:37 +0000 (12:38 +0000)]
Test coverage in RestAdapterImpl

Increased coverage from 69% to 98%
Fixed Sonar major issue for branch coverage

Issue-ID: APPC-1512
Change-Id: Idb989cf6266b4e7c7dda1e9bca72483038649eda
Signed-off-by: Joss Armstrong <joss.armstrong@ericsson.com>
5 years agoTest coverage in TopologyService 44/79344/3
Joss Armstrong [Thu, 28 Feb 2019 10:46:08 +0000 (10:46 +0000)]
Test coverage in TopologyService

Increased coverage from 80% to 97%
Fix Sonar major issue for branch coverage

Issue-ID: APPC-1509
Change-Id: I2f5af194b44e5871fc00c9cc12123fa6d6c1fd5d
Signed-off-by: Joss Armstrong <joss.armstrong@ericsson.com>
5 years agoCachedElement.java - Sonar Fixes 93/79293/2
Driptaroop Das [Wed, 27 Feb 2019 19:31:38 +0000 (01:01 +0530)]
CachedElement.java - Sonar Fixes

CachedElement.java - Sonar Fixes

Issue-ID: APPC-1508
Change-Id: I24bdb1ab1e3c00975eba4ea92dcf34b8e26849dc
Signed-off-by: Driptaroop Das <driptaroop.das@in.ibm.com>
5 years agoAdded test case for Rebuild Server 09/79209/3
Lathishbabu Ganesan [Tue, 26 Feb 2019 17:15:09 +0000 (12:15 -0500)]
Added test case for Rebuild Server

Issue-ID: APPC-1502
Change-Id: Idff986e1727e13c5a402184b416365328418c7ab
Signed-off-by: Lathishbabu Ganesan <lathishbabu.ganesan@ericsson.com>
5 years agoTest coverage in MockQueryHelper 32/79332/2
Joss Armstrong [Thu, 28 Feb 2019 08:10:55 +0000 (08:10 +0000)]
Test coverage in MockQueryHelper

Increased coverage from 17% to 91%
Fixed Sonar major issue for branch coverage

Issue-ID: APPC-1509
Change-Id: I822053c74db8f16875448206a22048032d30ad45
Signed-off-by: Joss Armstrong <joss.armstrong@ericsson.com>
5 years agoAdded null check to avoid null pointer exception 59/79259/7
Jegadeesh Babu [Wed, 27 Feb 2019 13:41:51 +0000 (19:11 +0530)]
Added null check to avoid null pointer exception

Sonar fix

Issue-ID: APPC-1505
Change-Id: Iefd8a45aacb6e8de50c16c36fe9ab551401ca417
Signed-off-by: Jegadeesh Babu <jegabab1@in.ibm.com>
5 years agoTest coverage in ConfigResourceNode 92/79292/3
Joss Armstrong [Wed, 27 Feb 2019 19:27:19 +0000 (19:27 +0000)]
Test coverage in ConfigResourceNode

Add >100 lines of coverage and increase from 71% to 99%
Increase branch coverage to fix Sonar major issue
Extract repeated strings to constants

Issue-ID: APPC-1504
Change-Id: Ib3b1e83d39f02befaede035b84a0ebef96b36cfd
Signed-off-by: Joss Armstrong <joss.armstrong@ericsson.com>
5 years agoTest coverage in FlowControlNode 04/79304/2
Joss Armstrong [Wed, 27 Feb 2019 21:07:50 +0000 (21:07 +0000)]
Test coverage in FlowControlNode

Increase line coverage from 72% to 92%
Fix for Sonar major issue for branch coverage

Issue-ID: APPC-1499
Change-Id: Ie73b6c97fcf50421ca6a73a8273c09ace0faf67f
Signed-off-by: Joss Armstrong <joss.armstrong@ericsson.com>
5 years agoFix failing powermock tests 06/79306/4
Patrick Brady [Wed, 27 Feb 2019 21:41:53 +0000 (13:41 -0800)]
Fix failing powermock tests

The version of javassist coming from opendaylight is not working correctly
with powermock. Adding a test scoped dependency for a working version of
javassist.

Test classes added in this commit are not new, they were temporarily
removed as part of https://gerrit.onap.org/r/#/c/79046/

Change-Id: I193873c0d4abd7b11592a95bff9a6b07cf2d7191
Signed-off-by: Patrick Brady <patrick.brady@att.com>
Issue-ID: APPC-1277

5 years agoHandled interrupted exception 64/79164/4
Jegadeesh Babu [Tue, 26 Feb 2019 10:16:27 +0000 (15:46 +0530)]
Handled interrupted exception

Sonar fix

Issue-ID: APPC-1490
Change-Id: I261e2d4739bf5a1d3f11dc1774b04da98a366c16
Signed-off-by: Jegadeesh Babu <jegabab1@in.ibm.com>
5 years agoTest coverage in DBService 48/79248/2
Joss Armstrong [Wed, 27 Feb 2019 09:59:54 +0000 (09:59 +0000)]
Test coverage in DBService

Increase coverage from 71% to 98%
Fix for Sonar major issue on branch coverage

Issue-ID: APPC-1499
Change-Id: I74261af92b3263a03d29d476ad097182e6112ad9
Signed-off-by: Joss Armstrong <joss.armstrong@ericsson.com>
5 years agoTest coverage for ObjectFactory 44/79244/2
Joss Armstrong [Wed, 27 Feb 2019 08:07:43 +0000 (08:07 +0000)]
Test coverage for ObjectFactory

Increase coverage from 0% to 100%

Issue-ID: APPC-1499
Change-Id: Ia6209174b99acdeb03698eea9fe96d51a2cccd13
Signed-off-by: Joss Armstrong <joss.armstrong@ericsson.com>
5 years agoAdded test cases for Sequence Generator class 66/79266/2
Lathishbabu Ganesan [Wed, 27 Feb 2019 14:29:34 +0000 (09:29 -0500)]
Added test cases for Sequence Generator class

Increased the code coverage from 0% to 100%

Issue-ID: APPC-1457
Change-Id: Id71298cb482a1c9ca00c3ced9685087e56c249ca
Signed-off-by: Lathishbabu Ganesan <lathishbabu.ganesan@ericsson.com>
5 years agoAdded test case for Stack Resource 06/79206/3
Lathishbabu Ganesan [Tue, 26 Feb 2019 16:47:11 +0000 (11:47 -0500)]
Added test case for Stack Resource

Increased the coverage from 0% to 100%

Issue-ID: APPC-1501
Change-Id: Idb8d7b6efc7831dc0c6ca8094783cbc84ecfd14e
Signed-off-by: Lathishbabu Ganesan <lathishbabu.ganesan@ericsson.com>
5 years agoAdditional test case to cover Reboot scenario 64/79264/3
Lathishbabu Ganesan [Wed, 27 Feb 2019 14:06:57 +0000 (09:06 -0500)]
Additional test case to cover Reboot scenario

Issue-ID: APPC-1507
Change-Id: I1afa62d34bec6cc3bb56abd4fa5ffc9a5beee67a
Signed-off-by: Lathishbabu Ganesan <lathishbabu.ganesan@ericsson.com>
5 years agoHandled interrupted exception 62/79262/1
Jegadeesh Babu [Wed, 27 Feb 2019 14:03:12 +0000 (19:33 +0530)]
Handled interrupted exception

Sonar fix

Issue-ID: APPC-1506
Change-Id: If1e6e2aee7a2345a8e228e9cd793d02aa6eb685e
Signed-off-by: Jegadeesh Babu <jegabab1@in.ibm.com>
5 years agoAdded Null check 57/78657/5
Jegadeesh Babu [Mon, 18 Feb 2019 13:26:48 +0000 (18:56 +0530)]
Added Null check

Code to avoid null pointer Exception

Issue-ID: APPC-1451
Change-Id: I5e2324a2ddffbc50251ee93a1278cfb68e62a551
Signed-off-by: Jegadeesh Babu <jegabab1@in.ibm.com>
5 years agoLine and branch coverage for Transaction 72/79172/2
Joss Armstrong [Tue, 26 Feb 2019 11:05:43 +0000 (11:05 +0000)]
Line and branch coverage for Transaction

Increased line coverage from 54% to 99%
Added coverage for 50 branches resolving major Sonar issue

Issue-ID: APPC-1499
Change-Id: I10dba08c62247401ee4c9fb08fe65f3854445fb5
Signed-off-by: Joss Armstrong <joss.armstrong@ericsson.com>
5 years agoReplaced print statement with logger 73/79173/4
Jegadeesh Babu [Tue, 26 Feb 2019 11:22:23 +0000 (16:52 +0530)]
Replaced print statement with logger

Sonar Fix

Issue-ID: APPC-1500
Change-Id: I25e885297e3e3881e8164e2bbd6f608f808ac76b
Signed-off-by: Jegadeesh Babu <jegabab1@in.ibm.com>
5 years agoFix unit tests for PrecheckOption 83/79183/3
Joss Armstrong [Tue, 26 Feb 2019 13:00:23 +0000 (13:00 +0000)]
Fix unit tests for PrecheckOption

Increased line coverage to 100%
Increased branch coverage to clear Sonar major warning
Removed console logging and cleaned up assertions

Issue-ID: APPC-1499
Change-Id: Ifc7163d2e112914749514099779bd5d75ba729c9
Signed-off-by: Joss Armstrong <joss.armstrong@ericsson.com>
5 years agoFixed tests on PreCheck class 79/79179/3
Joss Armstrong [Tue, 26 Feb 2019 12:40:24 +0000 (12:40 +0000)]
Fixed tests on PreCheck class

Replaced console printing with assertions
Added branch coverage to clear Sonar major warning
Increased line coverage to 100%

Issue-ID: APPC-1499
Change-Id: Ia027b9d7f414789816d80e12543d27a0baeed9c1
Signed-off-by: Joss Armstrong <joss.armstrong@ericsson.com>
5 years agoFix for timeout error when logging >1MB data 11/79111/5
Joss Armstrong [Mon, 25 Feb 2019 14:35:44 +0000 (14:35 +0000)]
Fix for timeout error when logging >1MB data

Potentially large logs moved to TRACE level, INFO level
logs limited in size and related tests updated

Issue-ID: APPC-1489
Change-Id: I9ea85e64380479d835da03ed2af3e4ab96ece67e
Signed-off-by: Joss Armstrong <joss.armstrong@ericsson.com>
5 years agoAdded test case for Attach volume class 88/79188/2
Lathishbabu Ganesan [Tue, 26 Feb 2019 14:13:30 +0000 (09:13 -0500)]
Added test case for Attach volume class

Issue-ID: APPC-1467
Change-Id: Ifc902979c955df03ab847b4dd770bf737ff69eb9
Signed-off-by: Lathishbabu Ganesan <lathishbabu.ganesan@ericsson.com>
5 years agoAdded test case for Appc Provider 96/79196/2
Lathishbabu Ganesan [Tue, 26 Feb 2019 15:22:17 +0000 (10:22 -0500)]
Added test case for Appc Provider

Increased the coverage from 0% to 96%

Issue-ID: APPC-1454
Change-Id: I5bfb97101dd7ef5e9c138694b783be8cdd511f0e
Signed-off-by: Lathishbabu Ganesan <lathishbabu.ganesan@ericsson.com>
5 years agoFix for casting/subclassing in MetricRegistry 95/79095/4
Joss Armstrong [Mon, 25 Feb 2019 10:32:13 +0000 (10:32 +0000)]
Fix for casting/subclassing in MetricRegistry

Put in code to avoid cast exceptions from this class
and updated tests

Issue-ID: APPC-1480
Change-Id: I8b54d93e52eb523f08d13e874b4d18d05feede6b
Signed-off-by: Joss Armstrong <joss.armstrong@ericsson.com>
5 years agoTest coverage for CCAActivator 60/79160/3
Joss Armstrong [Tue, 26 Feb 2019 09:05:11 +0000 (09:05 +0000)]
Test coverage for CCAActivator

Increased coverage from 0% to 93%

Issue-ID: APPC-1497
Change-Id: Ie78ac50a08b47cac9bedb9d34b089ac3ad23ab22
Signed-off-by: Joss Armstrong <joss.armstrong@ericsson.com>
5 years agoHandled interrupted exception Rechecked 65/79165/4
Jegadeesh Babu [Tue, 26 Feb 2019 10:25:01 +0000 (15:55 +0530)]
Handled interrupted exception Rechecked

Rechecked sonar fix

Issue-ID: APPC-1492
Change-Id: I8cec7e0e0cb5614e959f6eaa35271f55ddbba24b
Signed-off-by: Jegadeesh Babu <jegabab1@in.ibm.com>
5 years agoAdded logger statement 71/79171/5
Jegadeesh Babu [Tue, 26 Feb 2019 11:03:35 +0000 (16:33 +0530)]
Added logger statement

Sonar vulnerabilty fix

Issue-ID: APPC-1498
Change-Id: I29de3443a5a96c4d4bc5c7bab24b4fdb7f3358d3
Signed-off-by: Jegadeesh Babu <jegabab1@in.ibm.com>
5 years agoTest coverage for Parameters 75/79175/2
Joss Armstrong [Tue, 26 Feb 2019 11:50:20 +0000 (11:50 +0000)]
Test coverage for Parameters

Increased coverage to 100%

Issue-ID: APPC-1499
Change-Id: I982023d9f818320f709da552d668b68e5ce0f7b3
Signed-off-by: Joss Armstrong <joss.armstrong@ericsson.com>
5 years agoTest coverage for ActionIdentifier 74/79174/2
Joss Armstrong [Tue, 26 Feb 2019 11:40:14 +0000 (11:40 +0000)]
Test coverage for ActionIdentifier

Increased test coverage to 100%

Issue-ID: APPC-1499
Change-Id: I78eee1fdc64840898e1b76984855a43828ee93b4
Signed-off-by: Joss Armstrong <joss.armstrong@ericsson.com>
5 years agoUpdate GetDevRunningConfig for SaltstackDG 95/78895/2
Ganesh Chandrasekaran [Thu, 21 Feb 2019 04:54:41 +0000 (13:54 +0900)]
Update GetDevRunningConfig for SaltstackDG

Issue-ID: APPC-1101
Change-Id: Ie3cbfb05b1dd7a1ecc15e0d7b844801769836fab
Signed-off-by: Ganesh Chandrasekaran <ganesh.c@samsung.com>
5 years agoAPPC Generic Saltstack DG addition 94/78894/2
Ganesh Chandrasekaran [Thu, 21 Feb 2019 04:41:26 +0000 (13:41 +0900)]
APPC Generic Saltstack DG addition

Issue-ID: APPC-1101
Change-Id: Ie240bb949481a7c59a508c2157a4ace95fe4a861
Signed-off-by: Ganesh Chandrasekaran <ganesh.c@samsung.com>
5 years agoChanges for new odl version 46/79046/9
Patrick Brady [Fri, 22 Feb 2019 21:37:19 +0000 (13:37 -0800)]
Changes for new odl version

Changes required to update to latest opendaylight
version. Some powermock tests have been temporarily
removed due to an powermock incompatibility. They
will be fixed and re-added.

Change-Id: I418d44913fcd42423d2d9bd37b189f6301eaab81
Signed-off-by: Patrick Brady <patrick.brady@att.com>
Issue-ID: APPC-1370

5 years agoTest coverage in RequestValidatorImpl 28/79028/2
Joss Armstrong [Fri, 22 Feb 2019 16:17:28 +0000 (16:17 +0000)]
Test coverage in RequestValidatorImpl

Increased coverage from 78% to 89%

Issue-ID: APPC-1485
Change-Id: I2b4e87d0ae9b344ef59005bc19cd2600e4e041e8
Signed-off-by: Joss Armstrong <joss.armstrong@ericsson.com>
5 years agoTest coverage in ExecuteNodeActionImpl 55/78955/7
Joss Armstrong [Thu, 21 Feb 2019 18:24:20 +0000 (18:24 +0000)]
Test coverage in ExecuteNodeActionImpl

Increase coverage from 42% to 92%

Issue-ID: APPC-1477
Change-Id: Ic9ef407663d0a79ccec8ed7045230c4d734a3cc4
Signed-off-by: Joss Armstrong <joss.armstrong@ericsson.com>
5 years agoTest coverage in MetricRegistryImpl 63/78963/5
Joss Armstrong [Thu, 21 Feb 2019 19:16:35 +0000 (19:16 +0000)]
Test coverage in MetricRegistryImpl

Added test coverage for MetricRegistryImpl

Issue-ID: APPC-1478
Change-Id: I91eff5418ec14d294fa80af3d6d7025338b82072
Signed-off-by: Joss Armstrong <joss.armstrong@ericsson.com>
5 years agoTest coverage in MessageAdapterImpl 11/79011/3
Joss Armstrong [Fri, 22 Feb 2019 12:13:27 +0000 (12:13 +0000)]
Test coverage in MessageAdapterImpl

Added test cases for untested portions of code

Issue-ID: APPC-1481
Change-Id: Id61ec5c5824c3d9fecbfb83d47bfa0164ae96759
Signed-off-by: Joss Armstrong <joss.armstrong@ericsson.com>
5 years agoTest coverage in AbstractRequestHandlerImpl 20/79020/4
Joss Armstrong [Fri, 22 Feb 2019 14:56:40 +0000 (14:56 +0000)]
Test coverage in AbstractRequestHandlerImpl

Increased coverage from 72% to 95%

Issue-ID: APPC-1484
Change-Id: I1bbb8aaf1b7ca33b20d8768cacd14c7bdabe5caa
Signed-off-by: Joss Armstrong <joss.armstrong@ericsson.com>
5 years agoTest coverage for RequestValidationPolicy 12/79012/4
Joss Armstrong [Fri, 22 Feb 2019 12:36:50 +0000 (12:36 +0000)]
Test coverage for RequestValidationPolicy

Added test cases for untested parts of code

Issue-ID: APPC-1482
Change-Id: I3dfa64b4eb1f69a08ca3346d75ae362affd55e0d
Signed-off-by: Joss Armstrong <joss.armstrong@ericsson.com>
5 years agoError in ScheduledPublishingPolicyImpl 01/79001/4
Joss Armstrong [Fri, 22 Feb 2019 09:51:58 +0000 (09:51 +0000)]
Error in ScheduledPublishingPolicyImpl

Fix for error in code that causes failure in a
particular case

Issue-ID: APPC-1479
Change-Id: If9f8dc21d151ea3e06939ad4db4272f48a8e8b58
Signed-off-by: Joss Armstrong <joss.armstrong@ericsson.com>
5 years agoResolved merge conflict 04/79004/2
Jegadeesh Babu [Fri, 22 Feb 2019 10:12:02 +0000 (15:42 +0530)]
Resolved merge conflict

Resolved conflict

Issue-ID: APPC-1474
Change-Id: I2c46a69b112aa3b3796fcb2939b34a8c604e5119
Signed-off-by: Jegadeesh Babu <jegabab1@in.ibm.com>
5 years agoSeperated assignment statement from expression 30/78830/3
Jegadeesh Babu [Wed, 20 Feb 2019 12:39:40 +0000 (18:09 +0530)]
Seperated assignment statement from expression

Sonar bug fix

Issue-ID: APPC-1468
Change-Id: I2ff7e01516cf7328357d2a48643947c782ce4fd9
Signed-off-by: Jegadeesh Babu <jegabab1@in.ibm.com>
5 years agoChange dg-mdsal to blueprint 43/77543/8
Patrick Brady [Tue, 29 Jan 2019 22:05:31 +0000 (14:05 -0800)]
Change dg-mdsal to blueprint

Change-Id: I8f9978dce4e7f483a35a338f8c57b854a7c5b29e
Signed-off-by: Patrick Brady <patrick.brady@att.com>
Issue-ID: APPC-1368

5 years agoChange appc-oam to blueprint 29/77529/7
Patrick Brady [Tue, 29 Jan 2019 18:18:27 +0000 (10:18 -0800)]
Change appc-oam to blueprint

Change-Id: I848953fd492ad05d178c7b2d85b191248b45fa36
Signed-off-by: Patrick Brady <patrick.brady@att.com>
Issue-ID: APPC-1368

5 years agoChange seq generator to blueprint 31/77531/8
Patrick Brady [Tue, 29 Jan 2019 18:41:18 +0000 (10:41 -0800)]
Change seq generator to blueprint

Change-Id: Ib46f149f3c4f7b838beb58f75bc20269ac945a3a
Signed-off-by: Patrick Brady <patrick.brady@att.com>
Issue-ID: APPC-1368

5 years agoRemove duplicate versions 58/76158/4
Patrick Brady [Tue, 22 Jan 2019 22:19:54 +0000 (14:19 -0800)]
Remove duplicate versions

These versions are inherited from opendaylight parent
poms. Removing the override for these inherited versions.

Change-Id: I83b374e4d8815e21fd48bedbe4dd46bc246e44a4
Signed-off-by: Patrick Brady <patrick.brady@att.com>
Issue-ID: APPC-1355

5 years agoSonar Fixes - ProviderStackOperation.java 98/78698/3
Driptaroop Das [Mon, 18 Feb 2019 18:46:57 +0000 (00:16 +0530)]
Sonar Fixes - ProviderStackOperation.java

Sonar Fixes - ProviderStackOperation.java

Issue-ID: APPC-1461
Change-Id: I31aef2c7328f1c3970e18a30530a9848bd5b6466
Signed-off-by: Driptaroop Das <driptaroop.das@in.ibm.com>
5 years agoTest coverage in LogPublisher 66/78966/1
Joss Armstrong [Thu, 21 Feb 2019 19:25:50 +0000 (19:25 +0000)]
Test coverage in LogPublisher

Added 100% coverage for LogPublisher

Issue-ID: APPC-1478
Change-Id: Iaf1d10826eb7cd622f63bf0a7de0b2420bb8f597
Signed-off-by: Joss Armstrong <joss.armstrong@ericsson.com>
5 years agoIncrease coverage of Passwords from 42% to 98% 49/78949/2
Joss Armstrong [Thu, 21 Feb 2019 17:18:01 +0000 (17:18 +0000)]
Increase coverage of Passwords from 42% to 98%

Also fixed some issues around null values and logging

Issue-ID: APPC-1476
Change-Id: I0145b5c973fe9a624962744ff56fd691114779ba
Signed-off-by: Joss Armstrong <joss.armstrong@ericsson.com>
5 years agoTest coverage for HttpClientUtil 43/78843/3
Joss Armstrong [Wed, 20 Feb 2019 13:59:56 +0000 (13:59 +0000)]
Test coverage for HttpClientUtil

Add new test class and increase coverage

Issue-ID: APPC-1462
Change-Id: Ie0de18d9c22c3913c5b57bc1f2de2e8758c26ed0
Signed-off-by: Joss Armstrong <joss.armstrong@ericsson.com>
5 years agoAdded test case for Configuration class 49/78849/3
Lathishbabu Ganesan [Wed, 20 Feb 2019 15:16:29 +0000 (10:16 -0500)]
Added test case for Configuration class

Issue-ID: APPC-1449
Change-Id: I84bb511d121e3af1426d4422ad3ce520bb5fd29c
Signed-off-by: Lathishbabu Ganesan <lathishbabu.ganesan@ericsson.com>
5 years agoTest coverage in Mapper 38/78838/2
Joss Armstrong [Wed, 20 Feb 2019 13:47:46 +0000 (13:47 +0000)]
Test coverage in Mapper

Increased coverage to 98%

Issue-ID: APPC-1462
Change-Id: Ie6aa2dc885be4ede947c3f7856f93cf9f1efffa0
Signed-off-by: Joss Armstrong <joss.armstrong@ericsson.com>
5 years agoTest coverage in LCM ProviderOperations 25/78825/2
Joss Armstrong [Wed, 20 Feb 2019 11:13:51 +0000 (11:13 +0000)]
Test coverage in LCM ProviderOperations

Added test cases

Issue-ID: APPC-1462
Change-Id: I577bcbb1f1ea36fdddbe30b115710588472bd45c
Signed-off-by: Joss Armstrong <joss.armstrong@ericsson.com>
5 years agoRemoved prinstackTrace 27/78927/2
Jegadeesh Babu [Thu, 21 Feb 2019 13:57:41 +0000 (19:27 +0530)]
Removed prinstackTrace

Sonar fix

Issue-ID: APPC-1475
Change-Id: I0330868328589dded0db6afa7ae2fe75f0b6ada0
Signed-off-by: Jegadeesh Babu <jegabab1@in.ibm.com>
5 years agoTest coverage in OutgoingMessage 15/78815/3
Joss Armstrong [Wed, 20 Feb 2019 10:06:54 +0000 (10:06 +0000)]
Test coverage in OutgoingMessage

Increased coverage to 100%

Issue-ID: APPC-1462
Change-Id: I4b2646da01c20e9095c617d1f82c78fae30f2418
Signed-off-by: Joss Armstrong <joss.armstrong@ericsson.com>
5 years agoHandled interrupted Exception 32/78832/2
Jegadeesh Babu [Wed, 20 Feb 2019 12:59:09 +0000 (18:29 +0530)]
Handled interrupted Exception

Sonar Bug Fix

Issue-ID: APPC-1469
Change-Id: I3f1fe6b620e8b01659e1b927b1f5fb667be20648
Signed-off-by: Jegadeesh Babu <jegabab1@in.ibm.com>
5 years agoSonar Fix : CoreManager.java 22/78822/2
Sudarshan Kumar [Wed, 20 Feb 2019 10:56:43 +0000 (16:26 +0530)]
Sonar Fix : CoreManager.java

Sonar Fix CoreManager.java - Removed printStackTrace

Issue-ID: APPC-1399
Change-Id: Id24936f8c41966e6f6c09348d762ba40487682da
Signed-off-by: Sudarshan Kumar <sudars19@in.ibm.com>
5 years agoSonar Fix : Time.java 17/78817/2
Sudarshan Kumar [Wed, 20 Feb 2019 10:36:07 +0000 (16:06 +0530)]
Sonar Fix : Time.java

Sonar Fix : Time.java - Removed printStackTrace

Issue-ID: APPC-1399
Change-Id: Icc39933cf656ffd79917596ce686f09b8c638843
Signed-off-by: Sudarshan Kumar <sudars19@in.ibm.com>
5 years agoAdded test case for Appc Provider client 50/78750/2
Lathishbabu Ganesan [Tue, 19 Feb 2019 12:29:58 +0000 (07:29 -0500)]
Added test case for Appc Provider client

Increased the coverage from 0% to 100%

Issue-ID: APPC-1455
Change-Id: I0e719bd084a985b63110f15681b6a87ec4affb4d
Signed-off-by: Lathishbabu Ganesan <lathishbabu.ganesan@ericsson.com>
5 years agoVulnerabilities Fix - XResponseProcessor.java 66/78366/5
Sudarshan Kumar [Wed, 13 Feb 2019 08:19:24 +0000 (13:49 +0530)]
Vulnerabilities Fix - XResponseProcessor.java

Removed printStacktrace and specified specific exception

Issue-ID: APPC-1399
Change-Id: I44c938cdd00a88ff76dfa36dbe49942f91546bb2
Signed-off-by: Sudarshan Kumar <sudars19@in.ibm.com>
5 years agoSonar Fix: Removed printStacktrace 45/78545/2
Sudarshan Kumar [Fri, 15 Feb 2019 10:18:06 +0000 (15:48 +0530)]
Sonar Fix: Removed printStacktrace

Sonar Fix: Removed printStacktrace

Issue-ID: APPC-1399
Change-Id: I0d33fac270a2082cc7b284c2df8e47fbf5b139a9
Signed-off-by: Sudarshan Kumar <sudars19@in.ibm.com>
5 years agoSonar Fixes - AAIResourceNode.java 95/78695/2
Driptaroop Das [Mon, 18 Feb 2019 18:21:42 +0000 (23:51 +0530)]
Sonar Fixes - AAIResourceNode.java

Sonar Fixes - AAIResourceNode.java

Issue-ID: APPC-1459
Change-Id: I19dd99bfc59feaf27b090440b6c1ff03d7fe16c0
Signed-off-by: Driptaroop Das <driptaroop.das@in.ibm.com>
5 years agoAdded test case for TestSshAdapterMock.java 40/78540/3
Sudarshan Kumar [Fri, 15 Feb 2019 08:16:22 +0000 (13:46 +0530)]
Added test case for TestSshAdapterMock.java

Added additional test case for TestSshAdapterMock.java

Issue-ID: APPC-1372
Change-Id: Ib2b6051cb8a47cc133b378d4fed6de326d37c4e5
Signed-off-by: Sudarshan Kumar <sudars19@in.ibm.com>