aboutsummaryrefslogtreecommitdiffstats
path: root/appc-config/appc-config-generator/provider/src
AgeCommit message (Collapse)AuthorFilesLines
2020-11-30Fix vm-id URL parsingMarcin Wilk1-1/+1
vm-id APPC request parameter contains a full OpenStack nova VM URL, which is not parsed correctly. This prevents any APPC LCM requests from successfull completion Issue-ID: APPC-1902 Signed-off-by: Marcin Wilk <m.wilk@samsung.com> Change-Id: I1fd1432ad81d432b51055e99c3697f3280f82e9a
2020-04-08removed code smellsRupinder1-1/+0
Removed unused imports Issue-ID: APPC-1859 Change-Id: I43556cc2ef71b6adef3f62f7ab229592a5db2a7d Signed-off-by: Rupinder<rupinsi1@in.ibm.com>
2019-11-19Apply defect and Fortify fixes to config bundle codeKeighron, Lori (lk2924)1-0/+6
Apply defect and Fortify fixes to config bundle code Change-Id: I30ec12950c8e2ddcee8a643a9b74a06486c7d6bf Issue-ID: APPC-1787 Signed-off-by: Keighron, Lori (lk2924) <lk2924@att.com>
2019-05-22Fix escapeInternalJson methodPatrick Brady1-8/+23
The method incorrectly handled cases where the json string contained json objects internally. These cases should be handled correctly now. Change-Id: I43b40414526bcb6577242ab737097dfb9119e618 Signed-off-by: Patrick Brady <patrick.brady@att.com> Issue-ID: APPC-1576
2019-05-02Add method to escape json stringsPatrick Brady3-0/+86
All backslash escape characters are being stripped out of strings. They need to be added back to strings containing json data. Change-Id: Ic8d9ba95da904b96f65598752133971f8c324694 Signed-off-by: Patrick Brady <patrick.brady@att.com> Issue-ID: APPC-1576
2019-04-30Fix for extra json quotesPatrick Brady1-1/+1
Substring method output was being lost, causing extra quotes to stay in the String. Change-Id: I35e9eee60756b7b743386600e3ab1d203cca036a Signed-off-by: Patrick Brady <patrick.brady@att.com> Issue-ID: APPC-1576
2019-04-22Escape quotes in json stringsPatrick Brady1-2/+11
The JSONObject parser strips all text of backslash escape characters, even if it is treaing the object as a string and not a series of json keys. If a string contains a json object within it, the removal of these escape characters causes problems. Adding the JSONObject.quote method on all strings to automatically add escape characters to any strings which contain characters requiring escapes. Change-Id: Ifac68844dd132971ba35803f1b9c03a5372bd500 Signed-off-by: Patrick Brady <patrick.brady@att.com> Issue-ID: APPC-1576
2019-04-10Fix for Ansible Healthcheck bugJoss Armstrong2-18/+18
Update to directed graph and merge JSON template code Issue-ID: APPC-1472 Change-Id: I4332ad74d34f455261b1c001339d0542be4514fc Signed-off-by: Joss Armstrong <joss.armstrong@ericsson.com>
2019-02-26Fix for timeout error when logging >1MB dataJoss Armstrong2-4/+40
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-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-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>
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-29added test cases to TestMergeNode.javaSandeep J1-0/+40
to increase code coverage Issue-ID: APPC-1086 Change-Id: I7113c096993247135d54dcb9b686f1006907ca33 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-11-28added test case to TestXSLTTransformerNodeSandeep J1-1/+11
to increase code coverage Issue-ID: APPC-1086 Change-Id: I4e185d1c1117f0bab6a63618621b55aef376a2c9 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-11-28added test case to TestDataTool.javaSandeep J1-2/+9
to increase code coverage Issue-ID: APPC-1086 Change-Id: If4e5bacbfe63bca2d0859f2f86623044c6cba3a2 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-11-28added test case to TestPatternNode.javaSandeep J1-1/+16
to increase code coverage Issue-ID: APPC-1086 Change-Id: I4b0ac6e586245c532a2a698b2907d518ce4d6adb Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-11-28added test case to TestConvertNode.javaSandeep J1-1/+52
to increase code coverage Issue-ID: APPC-1086 Change-Id: Ia5890e45849fad0a17753fe03c217a60777a8945 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-08-17added test xml data to xml_data.xmlSandeep J1-0/+6
the code coverage for isXML method in CheckDataTool.java in appc-config-generator was failing because there was no data in xml_data.xml. So, added some test data. Now the coverage is happening properly. Issue-ID: APPC-1086 Change-Id: Iab203d502b145a83e7479dfaabfe8474ec629d90 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-08-17added test cases to TestXSLTTransformerNode.javaSandeep J1-1/+19
to increase code coverage Issue-ID: APPC-1086 Change-Id: If07e899b03ba416b94675dfdcf1e45c5c365822d Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-08-17added test case to TestFileWriterNode.javaSandeep J1-1/+12
to increase code coverage Issue-ID: APPC-1086 Change-Id: I4665f2da142c4f5aaf01af8275ae480542a84cec Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-08-09added test case to testDataTool.javaSandeep J1-0/+10
to increase code coverage Issue-ID: APPC-1086 Change-Id: If736ff2d7cd30f6762ecb6bdc267b4a7c7f51c07 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-08-09added test case to TestPatternNode.javaSandeep J1-0/+13
to increase code coverage Issue-ID: APPC-1086 Change-Id: I4d035ffb81367fd4de4004d4aefa8a6433e4fd7d Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-08-09added test case to TestMergeNode.javaSandeep J1-0/+19
to increase code coverage Issue-ID: APPC-1086 Change-Id: If9a93361b275df98412dc23410a2094e340b7c9c Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-08-09added test case to TestConvertNode.javaSandeep J1-1/+17
to increase code coverage Issue-ID: APPC-1086 Change-Id: If2320397a735dd4f510350802df631cb132145e8 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-06-14Update license header in appc xml filesJohn McClung4-8/+4
More license header changes to miscellaneous appc xml files to reflect the 2018 changes. Change-Id: Ia71a0711235ab56bf2cd83719964bc12d7aa420b Issue-ID: APPC-1004 Signed-off-by: John McClung <jm1364@att.com>
2018-06-14Update lic header in appc client and config xmlJohn McClung1-2/+1
Modify license header in appc-adapter xml, appc-client xml and appc-config xml files to reflect 2018 changes. Change-Id: I1b7bd41a43ca5662ed4d293a33f468e443551fd7 Issue-ID: APPC-1000 Signed-off-by: John McClung <jm1364@att.com>
2018-06-13More updates to lic header in appc propertiesJohn McClung1-2/+1
License header fixes to reflect 2018 changes in various appc-adapters, appc-client, appc-common, appc-config, appc-dg and appc-directed-graph java and properties files. Change-Id: Idbe000f175e11ba42f6e83689a2b2d3d353be008 Issue-ID: APPC-996 Signed-off-by: John McClung <jm1364@att.com>
2018-06-05Update license header in appc-config filesJohn McClung19-38/+19
Modify license header in appc-config-audit and appc-config-generator java files to reflect 2018 changes. Change-Id: I85f7e62a9f2d9fe2b00461baf32eb735325a8a9b Issue-ID: APPC-971 Signed-off-by: John McClung <jm1364@att.com>
2018-06-01Continue removing ECOMP trademark from lic header.John McClung5-10/+5
Remove ECOMP trademark license header in miscellaneous files. Change-Id: I76e386462402cb959de377b56997ecf7986ffd6b Issue-ID: APPC-931 Signed-off-by: John McClung <jm1364@att.com>
2018-02-26appc-config-generator-provider sonar fixes part 2Jakub Dudycz17-153/+134
Sonar fixes in whole module Change-Id: I55856a6ce73a73098dadb2c5b9428437349ed8a8 Issue-ID: APPC-671 Signed-off-by: Jakub Dudycz <jakub.dudycz@nokia.com>
2018-02-26appc-config-generator-provider sonar fixes part 1Jakub Dudycz9-66/+69
Initial code reformat and import rearrangement Change-Id: I0a808bc3043d8558d96f15e0b695fddf5333bab1 Issue-ID: APPC-671 Signed-off-by: Jakub Dudycz <jakub.dudycz@nokia.com>
2018-02-15JSONTool sonar fixesJakub Dudycz1-37/+39
Change-Id: I457ac55fa17475a19a2e511a6e7813070ffd6d2e Issue-ID: APPC-634 Signed-off-by: Jakub Dudycz <jakub.dudycz@nokia.com>
2018-02-14MergeNode sonar fixesJakub Dudycz2-46/+46
Change-Id: I436feb6a4b42c9a1a5a5c887204e745bd09928f1 Issue-ID: APPC-632 Signed-off-by: Jakub Dudycz <jakub.dudycz@nokia.com>
2018-02-14ConvertNode sonar fixesJakub Dudycz3-76/+93
Change-Id: I1b8f19f57e90c1be5cec2bdd37d7db4216221710 Issue-ID: APPC-631 Signed-off-by: Jakub Dudycz <jakub.dudycz@nokia.com>
2018-02-14EscapeUtils sonar fixesJakub Dudycz2-40/+29
Change-Id: I77e46ec0e71cd37071c725877621fa28c092bfa9 Issue-ID: APPC-633 Signed-off-by: Jakub Dudycz <jakub.dudycz@nokia.com>
2018-02-07Removing old name referencesPatrick Brady2-2/+2
Removing references to bvc, att Change-Id: I794861fe40b96c922f6e5c011b2fe5d2c4bc515b Signed-off-by: Patrick Brady <pb071s@att.com> Issue-ID: APPC-292
2018-01-26Fixes in ConfigGeneratorConstantburdziak1-33/+33
Change-Id: I1c825fe403721ce9c47a95edb77475a3bd95b46c Issue-ID: APPC-541 Signed-off-by: burdziak <olaf.burdziakowski@nokia.com>
2017-12-19Update bundle names from openecomp to onapTakamune Cho1-1/+1
Change-Id: Ib0cf4edbab87a32c9d83cc9473412feb77b27a0e Issue-ID: APPC-13 Signed-off-by: Takamune Cho <tc012c@att.com>
2017-12-19Update appc-config-generator to use onap packagingTakamune Cho31-733/+883
Change-Id: Ia89d9eb8f56c8ac0e46cbe1b473f7cfced32228a Issue-ID: APPC-13 Signed-off-by: Takamune Cho <tc012c@att.com>
2017-12-13Second part of onap renamePatrick Brady24-0/+0
This is the second commit of the rename. The folder structure is renamed for appc-adapters and appc-config in this commit. Change-Id: Iaa2b8c937ff1ca1b5d1178128961fb115ee65d9b Signed-off-by: Patrick Brady <pb071s@att.com> Issue-ID: APPC-13
2017-10-10Change for Quote IssueSonali Das2-2/+17
Issue-ID : APPC-221 Change in appc-config-generator appc-artifact-handler Change-Id: I9abaef2839ca60f10855a61c48fa696be012db5f Signed-off-by: Sonali Das <sd394g@att.com>
2017-09-07Fix dblib DBResourceManager instantiationMarcus G K Williams1-1/+1
Fix APPC Build, failing upstream and locally due to change in CCSDK that changes dblib to use service injection via Aries Blueprint. The change causing this in CCSDK is https://gerrit.onap.org/r/#/c/7931/ Issue-Id: APPC-196 Change-Id: I9bcfb6d87b7527fd07cb76a242b272a5bc0ad07c Signed-off-by: Marcus G K Williams <marcus.williams@intel.com>
2017-09-07Change to CCSDK and ODL CarbonPatrick Brady13-29/+29
Change-Id: I49a0f436e366ff4a1b99705fb6bb5e7ba82e6ecc Signed-off-by: Patrick Brady <pb071s@att.com> Issue-Id: [APPC-91] Issue-Id: [APPC-158]
2017-09-01[JunitCases]for config audit and config generator.Chaturvedi, Anand (ac204h)10-163/+355
Issue-ID: APPC-168 Change-Id: Ie6f5e13b63f3162530d71c60cf352a8bfcddf4ff Signed-off-by: Chaturvedi, Anand (ac204h) <ac204h@att.com>
2017-08-17Initial commit for config-generator bundleSkip Wonnell41-0/+2326
This bundle contains logic for creating the configuration, reading templates, and merging the data together Issue-ID: APPC-59 Change-Id: Ifd745964f659f075250d6acaf1b5f033da28e1c4 Signed-off-by: Skip Wonnell <kw5258@att.com>