aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2018-09-21Use a URI builder to create URLsmark.j.leonard3-401/+352
Also refactor the connection code to remove duplicated Exception handling. Change-Id: Ica77b6ba3d8939e89b763a33a6b940d11b066b85 Issue-ID: AAI-1650 Signed-off-by: mark.j.leonard <mark.j.leonard@gmail.com>
2018-09-21Reorder HTTP Controller methodsmark.j.leonard1-343/+342
Put public methods before private methods, following the standard Java conventions. Issue-ID: AAI-1650 Change-Id: I527b1e73f92a28cade0a2e792dcee841fafeef43 Signed-off-by: mark.j.leonard <mark.j.leonard@gmail.com>
2018-09-20Use Builder Pattern to create Operation Resultsmark.j.leonard2-96/+130
Simplify the creation of OperationResult objects using a Builder to encapsulate the common behaviours. Change-Id: Ifacd75f0a808338d1ab4735a79009de7a2cb5351 Issue-ID: AAI-1650 Signed-off-by: mark.j.leonard <mark.j.leonard@gmail.com>
2018-09-20Updating the CII info in readmeArul.Nambi1-0/+2
Issue-ID: AAI-1663 Change-Id: Iff208537053fd27c95295e2a4c408f7b4b3dc611 Signed-off-by: Arul.Nambi <arul.nambi@amdocs.com>
2018-09-20Reduce code duplication in the HTTP Controllermark.j.leonard1-157/+86
Refactor repeated code snippets into helper methods, in order to reduce cognitive complexity. Change-Id: Ic04ce219b67017075d2b0b7c6e6bc7250ccff926 Issue-ID: AAI-1650 Signed-off-by: mark.j.leonard <mark.j.leonard@gmail.com>
2018-09-20Replace duplicated String literals with Constantsmark.j.leonard1-70/+81
Refactor to address Sonar violations for duplicated literal strings in the HTTP Controller class. Change-Id: I54cc33851df0269a0af917fd7b38ee0c14fda935 Issue-ID: AAI-1650 Signed-off-by: mark.j.leonard <mark.j.leonard@gmail.com>
2018-09-20Replace 2xx result codes with Java constantsmark.j.leonard1-61/+49
Use standard Java Status Response enums and constants instead of hard-coding magic values in the HTTP Controller. Change-Id: Ic509e2a85808dc3e0faab1b455a2e7851cd86408 Issue-ID: AAI-1650 Signed-off-by: mark.j.leonard <mark.j.leonard@gmail.com>
2018-09-19Specify Content-Type in all HTTP requestsmark.j.leonard1-6/+1
Explicitly specify all HTTP payload content as JSON, for compatibility with Elasticsearch 6.x Change-Id: Ibd6ad7bfd627a5c1bdfb04a950472e4cedfd790d Issue-ID: AAI-1650 Signed-off-by: mark.j.leonard <mark.j.leonard@gmail.com>
2018-09-19Reformat HTTP Controller code to ONAP standardsmark.j.leonard2-1473/+1332
Use the Eclipse formatter to re-organise the HTTP Controller class, prior to introducing HTTPS support. Change-Id: I41015c16bc9b4e84ea0b267a262e89007ef329e6 Issue-ID: AAI-1650 Signed-off-by: mark.j.leonard <mark.j.leonard@gmail.com>
2018-09-14Fixing nexus sonar scan issuesArul.Nambi1-2/+2
Issue-ID: AAI-1583 Change-Id: Id7c84f8c82096557e8280236694b149f64f12a50 Signed-off-by: Arul.Nambi <arul.nambi@amdocs.com>
2018-09-14Fix to not remove whitespaces in the payload to ESEdwin Lawrance6-47/+87
Change-Id: I3547e79ff27220a49539d9cfdf48ac534f155f10 Issue-ID: AAI-1596 Signed-off-by: Edwin Lawrance <Edwin.Lawrance@amdocs.com>
2018-08-24Updated springboot version to 1.5.15Francis Paquette1-1/+1
Issue-ID: AAI-1515 Change-Id: Iacf07766c8bf84da7575f3e4fa3d9eb85c73d11c Signed-off-by: Francis Paquette <francis.paquette@amdocs.com>
2018-08-13Adding docker registery to pomArul.Nambi1-1/+1
Issue-ID: AAI-1449 Change-Id: I8aa2cb599888d5bdb40b85b0a18bfbb33f685217 Signed-off-by: Arul.Nambi <arul.nambi@amdocs.com>
2018-08-13Fixing the docker jenkins jobArul.Nambi2-8/+1
Issue-ID: AAI-1449 Change-Id: I887151b393ad046ef013463af9d90c3504866a52 Signed-off-by: Arul.Nambi <arul.nambi@amdocs.com>
2018-08-02Merge "Updating Search service to be ES 6.1.2 compliant"James Forsyth8-10/+230
2018-08-01Updating Search service to be ES 6.1.2 compliantEdwin Lawrance8-10/+230
Payload to Elastic Search is translated to comply ES6.1.2 PUT and POST calls now have content-type header Added functionality for dynamic templates Change-Id: I2a44a8a9999ec01a3bad1fb6999fe35bb6ef70d1 Issue-ID: AAI-1376 Signed-off-by: Edwin Lawrance <Edwin.Lawrance@amdocs.com>
2018-07-16Fix variable declarationBogumil Zebek1-1/+1
Change-Id: I19b34476fd1e196857f60cb9a3b780821593ccf8 Issue-ID: AAI-1383 Signed-off-by: Bogumil Zebek <bogumil.zebek@nokia.com>
2018-06-13remove the creation of aaiadmin userRogers, Reneal(rr267j)1-9/+0
Remove the creation of the aaiadmin user in the docker container Issue-ID: AAI-1226 Change-Id: I6841b2aab5102cb8968eec74219f3d00dc93f88b Signed-off-by: renealr <reneal.rogers@amdocs.com>
2018-06-12fix ping communication with search to datarouterrenealr10-104/+60
Add the fix needed in order for the search ping to communicate with data router as well as add some fixes to the start script and dockerfile Issue-ID: AAI-1224 Change-Id: I74ab3b8def4b85513401b7329d33dc6a3bc518bc Signed-off-by: renealr <reneal.rogers@amdocs.com>
2018-05-23Dynamically determine image architectureMohammed Naser1-1/+1
The image architecture is currently hardcoded, this patch removes that hardcoded value to allow for ARM64 builds to go through. Change-Id: I282e75b089147cab5006db869acca95954f3c528 Issue-ID: CIMAN-154 Signed-off-by: Mohammed Naser <mnaser@vexxhost.com>
2018-05-23Pin jnr-unixsocket for Docker plugin to 0.13Mohammed Naser1-0/+7
The current verison of jnr-unixsocket is 0.12 from the Docker plugin however in order to be able the images for ARM64, it needs the newer version which has support for it. There is work upstream to switch the version to 0.18[0] however it seems that this is still pending, so we can pin it for now until that merges. [0]: https://github.com/spotify/docker-maven-plugin/pull/379 Change-Id: I02575fee442bdb41e3939e1e3fb026024bc9fbc7 Issue-ID: CIMAN-154 Signed-off-by: Mohammed Naser <mnaser@vexxhost.com>
2018-05-23Merge "Remove backport dependency"James Forsyth5-12/+7
2018-05-23Upversion for CasablancaJimmy Forsyth2-3/+3
Issue-ID: AAI-1169 Change-Id: I3789fddbc8fd5b103f9ea27202727a2c7b5579d2 Signed-off-by: Jimmy Forsyth <jf2512@att.com>
2018-05-15Upversion search-data-service for branchingv1.2.12.0.0-ONAP2.0.0-ONAPJimmy Forsyth2-2/+2
Issue-ID: AAI-1140 Change-Id: I55b5c102afbe509ad2fd51bb0669c58fac1a85fe Signed-off-by: Jimmy Forsyth <jf2512@att.com>
2018-05-09Remove backport dependencymkorzeni5-12/+7
since we already have built-in in JDK8 Change-Id: I73ccb1c084405c45eabd50b0a58278b1037ac5f8 Issue-ID: AAI-1130 Signed-off-by: mkorzeni <mateusz.korzeniowski@nokia.com>
2018-04-18Update springbootv1.2.0Shwetank Dave1-1/+1
Update springboot to 1.5.12.RELEASE from 1.5.10.RELEASE Change-Id: I295ed8ece93e24721b9e46557489d53e52905a45 Issue-ID: AAI-1043 Signed-off-by: Shwetank Dave <shwetank.dave@amdocs.com>
2018-04-16Add cosumes and produces type where necessaryShwetank Dave2-11/+8
Change-Id: I4e4a458a65dc870218de33e19ca76f060b436739 Issue-ID: AAI-598 Signed-off-by: Shwetank Dave <shwetank.dave@amdocs.com>
2018-04-10Correct INFO.yaml to pass YAML LintEric Debeau1-24/+24
Change-Id: Ia92314651447995679ff6ab0a6993762722589e3 Issue-ID: AAI-1022 Signed-off-by: Eric Debeau <eric.debeau@orange.com>
2018-04-06Rename Path search-db to search-data-service.Shwetank Dave4-99/+53
Fix mixtakes in processGet Remove requestBody from where it's not needed. Remove elastic-search dependency Issue-ID: AAI-598 Change-Id: Ib9693297230daba43ed604013c9cf4d32355da92 Signed-off-by: Shwetank Dave <shwetank.dave@amdocs.com>
2018-04-04[AAI-804] Removed ajsc loggers from logback.xmlShwetank Dave1-35/+0
Issue-ID: AAI-804 Change-Id: Ic90b29cfd081764fb422e030c5337564e5927b29 Signed-off-by: Shwetank Dave <shwetank.dave@amdocs.com>
2018-04-04[AAI-804] Updating pom.xml to add bundle-configShwetank Dave1-0/+7
Issue-ID: AAI-804 Change-Id: Ica0fb2bb42791bf81b683699860edbf3dbc05c75 Signed-off-by: Shwetank Dave <shwetank.dave@amdocs.com>
2018-04-04[AAI-804] Updating dockerfile and start script.Shwetank Dave3-1/+220
Issue-ID: AAI-804 Change-Id: I45c9beeca2d6e27d8aec787e76e3bb50780bead9 Signed-off-by: Shwetank Dave <shwetank.dave@amdocs.com>
2018-04-03[AAI-804] Updating files to fix search service.Shwetank Dave4-53/+47
Issue-ID: AAI-804 Change-Id: Ie50f821cd235ccd5c627c11294da4b29bf29fc16 Signed-off-by: Shwetank Dave <shwetank.dave@amdocs.com>
2018-03-29Removing AJSC and moving to SpringBootShwetank Dave82-2754/+1791
[AAI-804] Deleting AJSC files. [AAI-804] Adding Spring Boot Dependencies Issue-ID: AAI-804 Change-Id: Ibda01496d56cc4613f6d2be3b8737d823cee342a Signed-off-by: Shwetank Dave <shwetank.dave@amdocs.com>
2018-03-19add endpoint to query suggestion via ESrenealr10-485/+809
Added logic to ensure that search data service is able to handle suggests type request Issue-ID: AAI-896 Change-Id: I11b3e8dadc5f7023017f01055c24e9c014813eb5 Signed-off-by: renealr <reneal.rogers@amdocs.com>
2018-03-16Adding pass through shema creationrv871f8-6/+186
Issue-ID: AAI-888 Change-Id: Ifc094758682b39a5f2c5607bccd418de6e36d841 Signed-off-by: rv871f <richard.vondadelszen@amdocs.com>
2018-03-13Update license date and textsblimkie86-343/+194
Update license date and disable license plugin Change-Id: I61390789684bf93c29b5d230bc189fe8b7411efb Issue-ID: AAI-870 Signed-off-by: sblimkie <steven.blimkie@amdocs.com>
2018-02-26Add INFO.yaml fileJessica Wagantall1-0/+51
Add INFO.yaml to list: - Project description - Properties - PTL information - Meeting information - Committer information Change-Id: Iea3c785a2f5cc9ff51ec1e964fe3b7c382045183 Issue-ID: CIMAN-134 Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
2018-01-08Add unit tests to increase sonar coverageaditya8-0/+1304
Add unit tests to auth, rest and searchdbabstraction. Add search_policy.json to src/test/resources to support junits. Issue-ID: AAI-608 Change-Id: I295623d1735136bf4723d87ab4df21f8c124a414 Signed-off-by: Aditya Gajulapalli <ag282f@att.com>
2017-12-07Merge "Fix amsterdam build failure"Tian Lee0-0/+0
2017-12-07Fix amsterdam build failuresblimkie1-1/+1
Use release version of library Issue-ID: AAI-546 Change-Id: If70b78f8a377f74cabe2b98c56a970874b19e822 Signed-off-by: sblimkie <steven.blimkie@amdocs.com>
2017-12-05Depend on released version of logging librarysblimkie1-1/+1
Fix build error caused by dependency on snapshot that has been removed from nexus. Issue-ID: AAI-546 Change-Id: I87cc273b16e89ec8ae7f16435b37479ff799c2fd Signed-off-by: sblimkie <steven.blimkie@amdocs.com>
2017-11-16Bump minor versionJessica Wagantall2-3/+3
Bump minor version in preparation for Amsterdam branching. Change-Id: I5fa36a5e4b2dc2eb8fe7a781a63a7bed49af63fe Issue-ID: CIMAN-120 Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
2017-10-25Remove top level docs folderv1.1.01.0.0-ONAP1.0.0-AmsterdamRich Bennett1-8/+0
Documentation being aggregated in aai/common Change-Id: I311e6250b18177b17181c37c72ada3dc6a4cc76c Issue-ID: DOC-141 Signed-off-by: Rich Bennett <rb2745@att.com>
2017-09-21Renaming openecomp to onapArul.Nambi11-34/+33
Issue-ID: AAI-208 Change-Id: I3b46b263b4570054e77b2fdccfc2f51406e9e9ce Signed-off-by: Arul.Nambi <arul.nambi@amdocs.com>
2017-09-19Add aai/search-data-service docs dir and indexMatthewHarffy1-0/+8
aai/search-data-service docs dir added, following instructions from readthedocs.io Setting Up page. Change-Id: I13a3e1295e5359ea7bd7aee4c59327c76fda3708 Issue-Id: DOC-77 Signed-off-by: MatthewHarffy <Matthew.harffy@amdocs.com>
2017-09-14Renaming openecomp to onapArul.Nambi83-164/+198
Issue-ID: AAI-208 Change-Id: I0f634abc5501adb5fc29523594af8d1f1356adb5 Signed-off-by: Arul.Nambi <arul.nambi@amdocs.com>
2017-09-08Cleanup project's name in SonarJessica Wagantall1-1/+1
The name parameter in the root pom.xml should match the project name in gerrit to reflect consistency in Sonar. Change-Id: I00df409628f01511d5e8e689bd5bf5204bd29236 Issue-id: CIMAN-65 Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
2017-09-08Add name to the top level pomVenkata Harish K Kajur1-0/+1
for search-data-service Issue-ID: AAI-271 Change-Id: I9db491466002d2f84a76cf4d39724a01cec4c1d2 Signed-off-by: Venkata Harish K Kajur <vk250x@att.com>
2017-07-31Updating License and trademarkARUL NAMBI78-546/+390
Issue-ID: AAI-90 Change-Id: I5d38bbca2c614db04bcb24326fd0fcabb4d98317 Signed-off-by: ARUL NAMBI <arul.nambi@amdocs.com>