aboutsummaryrefslogtreecommitdiffstats
path: root/appc-config
AgeCommit message (Collapse)AuthorFilesLines
2019-02-26Fix unit tests for PrecheckOptionJoss Armstrong1-8/+25
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>
2019-02-26Fixed tests on PreCheck classJoss Armstrong1-10/+23
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>
2019-02-26Fix for timeout error when logging >1MB dataJoss Armstrong6-11/+123
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>
2019-02-26Test coverage for CCAActivatorJoss Armstrong4-7/+153
Increased coverage from 0% to 93% Issue-ID: APPC-1497 Change-Id: Ie78ac50a08b47cac9bedb9d34b089ac3ad23ab22 Signed-off-by: Joss Armstrong <joss.armstrong@ericsson.com>
2019-02-26Test coverage for ParametersJoss Armstrong1-1/+14
Increased coverage to 100% Issue-ID: APPC-1499 Change-Id: I982023d9f818320f709da552d668b68e5ce0f7b3 Signed-off-by: Joss Armstrong <joss.armstrong@ericsson.com>
2019-02-26Test coverage for ActionIdentifierJoss Armstrong1-6/+17
Increased test coverage to 100% Issue-ID: APPC-1499 Change-Id: I78eee1fdc64840898e1b76984855a43828ee93b4 Signed-off-by: Joss Armstrong <joss.armstrong@ericsson.com>
2019-02-25Changes for new odl versionPatrick Brady2-2/+12
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
2019-02-22Seperated assignment statement from expressionJegadeesh Babu1-1/+4
Sonar bug fix Issue-ID: APPC-1468 Change-Id: I2ff7e01516cf7328357d2a48643947c782ce4fd9 Signed-off-by: Jegadeesh Babu <jegabab1@in.ibm.com>
2019-02-21Removed prinstackTraceJegadeesh Babu1-2/+2
Sonar fix Issue-ID: APPC-1475 Change-Id: I0330868328589dded0db6afa7ae2fe75f0b6ada0 Signed-off-by: Jegadeesh Babu <jegabab1@in.ibm.com>
2019-02-20Sonar Fix: Removed printStacktraceSudarshan Kumar1-3/+5
Sonar Fix: Removed printStacktrace Issue-ID: APPC-1399 Change-Id: I0d33fac270a2082cc7b284c2df8e47fbf5b139a9 Signed-off-by: Sudarshan Kumar <sudars19@in.ibm.com>
2019-02-18Added test case for DbService utilLathishbabu Ganesan1-0/+80
Increased the coverage from 22% to 82% Issue-ID: APPC-1448 Change-Id: I478367d6f5aac4a453b6d711a81c0ee5cefcdd36 Signed-off-by: Lathishbabu Ganesan <lathishbabu.ganesan@ericsson.com>
2019-02-18Added test case for Flow Controller ActivatorLathishbabu Ganesan1-0/+87
Increased the code coverage from 0% to 97% Issue-ID: APPC-1429 Change-Id: Iada494daad7939b00c76fead73be864c6b40e045 Signed-off-by: Lathishbabu Ganesan <lathishbabu.ganesan@ericsson.com>
2019-02-16Junit class TestSliAuditActivator.java addedSudarshan Kumar1-0/+87
Junit class TestSliAuditActivator.java added Issue-ID: APPC-1372 Change-Id: I9c34fdf596970be4554959f98c19534897792718 Signed-off-by: Sudarshan Kumar <sudars19@in.ibm.com>
2019-02-15Added fix for potential Multiplication overflowJegadeesh Babu1-2/+3
Sonar bug fix Issue-ID: APPC-1438 Change-Id: I5d68c3b9659d8e538bd4a7a6a23aa77c293510f6 Signed-off-by: Jegadeesh Babu <jegabab1@in.ibm.com>
2019-02-15Added Test case for General Data ServiceLathishbabu Ganesan1-0/+75
Increased the coverage from 0% to 92% Issue-ID: APPC-1427 Change-Id: I868993463f162da3ea81d9681db109afafb6c90c Signed-off-by: Lathishbabu Ganesan <lathishbabu.ganesan@ericsson.com>
2019-02-15Added test case for Config GeneratorLathishbabu Ganesan1-0/+63
Increased the coverage from 0% to 97% Issue-ID: APPC-1426 Change-Id: I667845ef9b36a85e5be51fd624028063b0f2ea77 Signed-off-by: Lathishbabu Ganesan <lathishbabu.ganesan@ericsson.com>
2019-02-14Check vm-capabilites on vnf-level OS requestsLori Keighron2-2/+22
New per-vm capabilities checking is introduced for vnf-level OpenStack actions Additional changes per initial review. Additional changes in TestVnfc.java per second review. Change-Id: Idd1d834df076c1e525f596b788b69ed63ba9e66b Issue-ID: APPC-1380 Signed-off-by: Lori Keighron <lk2924@att.com>
2019-02-14Code block added to avoid Null pointer ExceptionJegadeesh Babu1-0/+3
Added condition to avoid NullPointer Exception Issue-ID: APPC-1425 Change-Id: I166633ccfcf51a8fcc8d4082aa8d2afa4b299398 Signed-off-by: Jegadeesh Babu <jegabab1@in.ibm.com>
2019-02-14Junit for AppcDataServiceActivatorDriptaroop Das1-0/+77
Junit for AppcDataServiceActivator Issue-ID: APPC-1411 Change-Id: Iddccff7afd8960d82e2dec8217d385810a4b80c3 Signed-off-by: Driptaroop Das <driptaroop.das@in.ibm.com>
2019-02-13Added test case for Flow control NodeLathishbabu Ganesan1-9/+59
Increased the test coverage from 0% to 77% Issue-ID: APPC-1414 Change-Id: Ib65618e67af478bf577b103a27ebf0aa34f8bec3 Signed-off-by: Lathishbabu Ganesan <lathishbabu.ganesan@ericsson.com>
2019-02-12Added test coverage for GraphExecutorJoss Armstrong3-10/+143
Increased coverage to 97% Issue-ID: APPC-1419 Change-Id: I3d505d53a95f4f8605041b21bf6c868b8652d7a5 Signed-off-by: Joss Armstrong <joss.armstrong@ericsson.com>
2019-02-11Removed PrintStackTrace SshJcraftWrapper.javaSudarshan Kumar1-7/+6
Removed PrintStackTrace SshJcraftWrapper.java Issue-ID: APPC-1399 Change-Id: Ice16de4fd8d997643d4dea73a4ebacc75f2b2d49 Signed-off-by: Sudarshan Kumar <sudars19@in.ibm.com>
2019-02-11Test coverage in EncryptionToolDGWrapperJoss Armstrong2-1/+249
Increased coverage from 28% to 100% Issue-ID: APPC-1409 Change-Id: I8e91c3cd58feaa795be86233147553ad137b8f4e Signed-off-by: Joss Armstrong <joss.armstrong@ericsson.com>
2019-02-11Test coverage for ParseAdminArtifactJoss Armstrong2-8/+62
Increased coverage from 65% to 85% Issue-ID: APPC-1409 Change-Id: If39c07b3edbcaad6d618e54b27483323848410fe Signed-off-by: Joss Armstrong <joss.armstrong@ericsson.com>
2019-02-11Test coverage in wrapperEncryptionToolJoss Armstrong2-2/+79
Increased coverage from 0% to 81% Issue-ID: APPC-1409 Change-Id: I1b4d285eff9fad8a60e855a97ff843078d628862 Signed-off-by: Joss Armstrong <joss.armstrong@ericsson.com>
2019-02-11Test coverage in encryptiontool packageJoss Armstrong3-13/+71
Increased coverage to 100% Issue-ID: APPC-1409 Change-Id: Iff09cf04cbdb1cb4f7ad640102f8885a571f5ae0 Signed-off-by: Joss Armstrong <joss.armstrong@ericsson.com>
2019-02-08Changes to config bundle for vnf level enhancementGeorge, Lina (lg941u)12-636/+731
Issue-ID: APPC-1380 Change-Id: Icfdc202a4763b7e708007573505e5b3be9d1454e Signed-off-by: George, Lina (lg941u) <lg941u@att.com>
2019-02-07Vulnerabilities Fix - ParamsHandlerActivator.javaSudarshan Kumar1-2/+9
Removed printStackTrace and put logger Issue-ID: APPC-1399 Change-Id: I0217b530cde6b6d22b09210eeb65697006d60795 Signed-off-by: Sudarshan Kumar <sudars19@in.ibm.com>
2019-02-07Vulnerabilities Fix - ParamsHandlerConstant.javaSudarshan Kumar1-19/+21
Vulnerabilities Fix - Added final to all the constant variables Issue-ID: APPC-1399 Change-Id: I20ce67627f3d1752c4896cfa42e0f4cb88bf8059 Signed-off-by: Sudarshan Kumar <sudars19@in.ibm.com>
2019-02-07added test case to TestDataTool.javaSandeep J1-1/+11
to increase code coverage Issue-ID: APPC-1086 Change-Id: I1602078de42c9815fe81b76425939752610446aa Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2019-02-07added test file to cover ResponseKey.javaSandeep J1-0/+51
to increase code coverage Issue-ID: APPC-1086 Change-Id: I7408e9eeda6f52f6ba3aae437ca75c3647d97de0 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2019-02-06added test case to ConfigResourceNodeTestSandeep J1-0/+21
to increase code coverage Issue-ID: APPC-1086 Change-Id: I69a92c10c3c2543a45ebf333e708286ffb6ac454 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2019-02-06added test case to TestDGGeneralDBService.javaSandeep J1-0/+13
to increase code coverage Issue-ID: APPC-1086 Change-Id: I5c88e11546158129ff0e97ced38ebd23635535e2 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2019-02-05Encryption tool changes for multiple ansibleserverGeorge, Lina (lg941u)12-28/+799
Issue-ID: APPC-1342 Change-Id: Ib1ff7845ad65cf13c06a96d6dcce023b06064dfa Signed-off-by: George, Lina (lg941u) <lg941u@att.com>
2019-02-05Junit test class added for TemplateException.javaSudarshan Kumar1-0/+50
Junit test class added for TemplateException.java Issue-ID: APPC-1372 Change-Id: I94d97e4b173c51a34a0320f3e24761582fc39101 Signed-off-by: Sudarshan Kumar <sudars19@in.ibm.com>
2019-02-05added test file to cover TemplateException.javaSandeep J1-0/+34
to increase code coverage Issue-ID: APPC-1086 Change-Id: I21877b15110502d75b05fa57eb179fb462e1e755 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2019-01-29added test case to TestDGGeneralDBServiceSandeep J1-0/+13
to increase code coverage Issue-ID: APPC-1086 Change-Id: I1e1d12fd230ea45b3618e41a7416a35cbf64fe0c Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2019-01-24added test case to TestDGGeneralDBService.javaSandeep J1-0/+19
to increase code coverage Issue-ID: APPC-1086 Change-Id: Icc459b97d2b15e204c3002a237752af9fe34cb20 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2019-01-18Update install-feature for pre-installPatrick Brady7-21/+7
Since the feature zip files will be extracted during docker build, the install-features scripts need to be modified so that the script will not fail when the zip file does not exist, since the zip file will have already been unzipped. Change-Id: I441064226db956addae5c2f238114ce3965c13ef Signed-off-by: Patrick Brady <patrick.brady@att.com> Issue-ID: APPC-1337
2019-01-18added test case to TestDGGeneralDBServiceSandeep J1-0/+13
to increase code coverage Issue-ID: APPC-1086 Change-Id: I2e5908c7f4728ff9cd33d11ddf6b398c0a472bdd Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2019-01-18made changes to existing test caseSandeep J1-91/+98
to increase code coverage Issue-ID: APPC-1086 Change-Id: I521d6770ee383d78a005bd9ce8c77c6682e14678 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2019-01-17added test cases to ConfigComponentAdaptorTestSandeep J1-1/+13
to increase code coverage Issue-ID: APPC-1086 Change-Id: I41734fcfc86da21114daacedaab02fbb2de86504 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2019-01-16added test case to ConfigResourceNode.javaSandeep J1-1/+19
to increase code coverage Issue-ID: APPC-1086 Change-Id: I3d49e11a910b42a9e0ec17768a79c43dfc018c34 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2019-01-16added test cases to TestDGGeneralDBServiceSandeep J1-2/+37
to increase code coverage Issue-ID: APPC-1086 Change-Id: I5c765135fad3720818d76a87b7ebe1691dc39155 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2019-01-08Change parent version to appc snapshotPatrick Brady42-42/+42
Changing to the current release snapshot version of the appc parents instead of the previous release version. This allows updated changes to parents to be in builds. Change-Id: I6cec484012c2cb48ee1ea7f10fd058d017f00947 Signed-off-by: Patrick Brady <patrick.brady@att.com> Issue-ID: APPC-1304
2019-01-07Update parent pom versionPatrick Brady42-42/+42
Update the parent version to appc parent 1.4.1 Change-Id: I185d086595bed6410f7fd6b8c139cc6300e4467e Signed-off-by: Patrick Brady <patrick.brady@att.com> Issue-ID: APPC-1304
2018-12-11Further fixes for APPC-1270Joss Armstrong2-259/+714
Fixed >100 sonar issues Increased line coverage from 26% to 87% Improved testing Removal of redundant code in class under test Issue-ID: APPC-1270 Change-Id: I63f53f03be815bb951d650df2f77999e5629ad75 Signed-off-by: Joss Armstrong <joss.armstrong@ericsson.com>
2018-12-06Fix for APPC-1270Joss Armstrong2-219/+318
Reduced testing time from 90 seconds to 2 seconds Removed code smell for multiple instance/static references Added assertions and coverage for success scenarios for all methods Line coverage increased from 55% to 84% Moved construction of objects to protected methods to facilitate testing Issue-ID: APPC-1270 Change-Id: I7945c069c703d2ea3fac9ffa33927856170656c9 Signed-off-by: Joss Armstrong <joss.armstrong@ericsson.com>
2018-12-03Fix for APPC-1264Joss Armstrong20-406/+298
Fixed broken unit tests. Improved unit testing and increased line and branch coverage. Deleted unused and duplicated files used in tests. Issue-ID: APPC-1264 Change-Id: Idea7d46f4a6c9c591617fb973a8d33e5275e4579 Signed-off-by: Joss Armstrong <joss.armstrong@ericsson.com>
2018-11-30Fix for APPC-1263Joss Armstrong6-176/+111
Removal of unused code. Refactoring of duplicated code and replacement with FileUtils library function and adding test case for ArtifactTransformer Issue-ID: APPC-1263 Change-Id: I4eab0cefa09620bae18c08ec2c4307d54dddd872 Signed-off-by: Joss Armstrong <joss.armstrong@ericsson.com>