summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/onap/crud/service
AgeCommit message (Collapse)AuthorFilesLines
2018-08-01Re-enable vertex edges retrieval for bulkmichaere1-23/+8
Following changes to champ to retrieve edges in context of transaction for bulk. This issue was caused as a result of multiplicity rules check. Issue-ID: AAI-1439 Change-Id: If68efa4b531644bf4297b08f566b18b5bd21c2b8 Signed-off-by: michaere <michaere@amdocs.com>
2018-07-19Auto-resolve edge typesblimkie4-28/+67
Auto-resolve edge type based on EdgeRules file. Change-Id: Ic6de47f5172bc410efcdd5f08c1ea5c4f822610e Issue-ID: AAI-1396 Signed-off-by: sblimkie <steven.blimkie@amdocs.com>
2018-07-12Fix sonar violationsSotiropoulos, Ioannis (is948x)3-12/+12
Issue-ID: AAI-1190 Change-Id: I72894665b288416069d3c2eb84185fcc303976f7 Signed-off-by: Sotiropoulos, Ioannis (is948x) <Ioannis.Sotiropoulos@amdocs.com>
2018-07-10Increase code coverageSotiropoulos, Ioannis (is948x)2-6/+5
Add tests to increase code coverage above 60 percent. Issue-ID: AAI-1198 Change-Id: I4c2f964ce41d01521cc1313e32e34fb6460d49bf Signed-off-by: Sotiropoulos, Ioannis (is948x) <Ioannis.Sotiropoulos@amdocs.com>
2018-07-09Merge "Fix code architecure in CrudAsyncResponseConsumer"Tian Lee3-77/+105
2018-07-09Fix code architecure in CrudAsyncResponseConsumerBogumil Zebek3-77/+105
- fix code complexity - make code testable - add missing tests Change-Id: I542e7f603a5ffe956ae3fc3f58874b7dd2ce87a1 Issue-ID: AAI-1365 Signed-off-by: Bogumil Zebek <bogumil.zebek@nokia.com>
2018-07-09Merge "Fix sonar violations"Tian Lee1-3/+3
2018-07-05Fix sonar violationsBogumil Zebek1-3/+3
Change-Id: I0f2b7f58cb2176a017c0adf0bacdea2252d8026b Issue-ID: AAI-1364 Signed-off-by: Bogumil Zebek <bogumil.zebek@nokia.com>
2018-06-27Merge "Fix sonar issues in /crud/service/CrudRestService"Tian Lee1-2/+5
2018-06-27Apply multiplicity Rule upon Edge creationmichaere8-328/+79
Uses multiplicity type from dbedge rules json to validate whether to and from vertices meet the multiplicity constraint e.g. ONE2MANY. This validation is applied when creating or updating an edge. Issue-ID: AAI-1197 Change-Id: Id6e78635c5cbea66d8a35e6901b7e1b673125e4e Signed-off-by: michaere <michaere@amdocs.com>
2018-06-25Fix sonar issues in /crud/service/CrudRestServiceSwiton Tomasz1-2/+5
Change-Id: Ib221593a6ff9e7fbd355eb4ff97ce6a5d1a5e0e0 Issue-ID: AAI-1241 Signed-off-by: Switon Tomasz <tomasz.switon@nokia.com>
2018-06-18ETags on resourcesSotiropoulos, Ioannis (is948x)7-279/+412
An etag should be generated (by Champ) when creating a resource (edge or vertex). The Champ microservice should return this etag in the response header. Gizmo should also return the etag in it's response header (Gizmo will receive the etag from Champ). Issue-ID: AAI-1196 Change-Id: Ie16f871eccbceeccde037e73e0de0d96eeba18bd Signed-off-by: Sotiropoulos, Ioannis (is948x) <Ioannis.Sotiropoulos@amdocs.com>
2018-06-13Gizmo to load multiple Db Edge Rules filesShwetank Dave1-6/+6
There is an Edge Rule file for each OXM file. For every OXM version that is loaded, an edge rule file should also be loaded. Issue-ID: AAI-1201 Change-Id: I728e577ea8152623d3c5e2f0e8edf677f0eb9ef4 Signed-off-by: Shwetank Dave <shwetank.dave@amdocs.com>
2018-06-12Fix GET ALL for vertices created asynchronouslyRavi Geda1-0/+1
Vertices created asynchronously are not being returned in the GET ALL vertices. This commit addresses this problem Change-Id: I83ee7a59dc2005447706fa0a43ba2c9d2f0e4592 Issue-ID: AAI-1223 Signed-off-by: Ravi Geda <gravik@amdocs.com>
2018-06-06Add validation for request headerSotiropoulos, Ioannis (is948x)1-8/+21
Add validation for inclusion of X-FromAppId and X-TransactionId in request header Issue-ID: AAI-1190 Change-Id: Ie1d2b64a7243c013982992196048e1d6635d5e66 Signed-off-by: Sotiropoulos, Ioannis (is948x) <Ioannis.Sotiropoulos@amdocs.com>
2018-06-04Adding "_reserved_" properties in the query paramsShwetank Dave1-22/+23
Adding "_reserved_version" and "_reserved_aai-type" to the query parameters when making downstream queries. Change-Id: Ibabf671618ac10813740d835d368ce30195f7937 Issue-ID: AAI-1202 Signed-off-by: Shwetank Dave <shwetank.dave@amdocs.com>
2018-05-01Migrate to Spring BootRavi Geda2-21/+20
Convert from AJSC to Spring Boot micro service Change-Id: I17bed6d10a00b35dbc63f5dd2b93642b1b3eb7a5 Issue-ID: AAI-1040 Signed-off-by: Ravi Geda <gravik@amdocs.com>
2018-03-29Update published event to include header and bodyMichael Arrastia2-380/+280
Originally, the published event only contained the raw graph request payload. This has now been updated to include the following changes: - encapsulate the graph request in a body property - add new event header with details such as timestamp, request-id, event-type Issue-ID: AAI-954 Change-Id: I780b6f52a01aafdcd7d09156e9d3a99c25be90a3 Signed-off-by: Michael Arrastia <MArrasti@amdocs.com>
2018-03-15Add junit testssblimkie2-41/+7
Add junit tests Change-Id: Iaa22b0faa206114ef39648d451a5275205d14d9a Issue-ID: AAI-885 Signed-off-by: sblimkie <steven.blimkie@amdocs.com>
2018-03-13Update license date and textsblimkie12-84/+48
Update license date and disable license plugin Change-Id: Ieb54f4fe8dc939bf57af88fb7a71fd510bd20509 Issue-ID: AAI-865 Signed-off-by: sblimkie <steven.blimkie@amdocs.com>
2018-02-20Revert change for passing paramsGurjeet Bedi1-1/+1
Move logic to downstream to handle params Issue-ID: AAI-482 Change-Id: I25b1170447783fd753c83a619b00681cb4ef481f Signed-off-by: Gurjeet Bedi <gurjeetb@amdocs.com>
2018-02-16Add event client dependencySotiropoulos, Ioannis (is948x)2-3/+3
Change dependencies from SNAPSHOT to RELEASE. Change-Id: If8a46177f294d1129f30e578c31cbe0bb2deeb31 Issue-ID: AAI-780 Signed-off-by: Sotiropoulos, Ioannis (is948x) <ioannis.sotiropoulos@amdocs.com>
2018-02-15Support t_k queries from gizmoGurjeet Bedi1-1/+1
Only adding parameters for supported API Issue-ID: AAI-482 Change-Id: I30a22336824f2e3041b1c71857c481b7fcc08273 Signed-off-by: Gurjeet Bedi <gurjeetb@amdocs.com>
2018-02-14For supporting t_k queryGurjeet Bedi4-15/+26
Passing queryparameters from GET Issue-ID: AAI-482 Change-Id: I7db51c6549fe5f7e4d61ad96121e7da3a57ff325 Signed-off-by: Gurjeet Bedi <gurjeetb@amdocs.com>
2018-02-06Allow filtering by reserved propertiesDaniel Silverthorn2-6/+5
Allow filtering by reserved properties and return them in group and single gets Change-Id: I897a6e807d93f6fe9f6875519dd433e52c2a1705 Issue-ID: AAI-702 Signed-off-by: Daniel Silverthorn <daniel.silverthorn@amdocs.com>
2018-01-31Config to be able to route GET through datarouterGurjeet Bedi3-17/+30
Option to route GET through data router Issue-ID: AAI-482 Change-Id: I6b9a3621d5e3a5ec83d69a948917865941ede833 Signed-off-by: Gurjeet Bedi <gurjeetb@amdocs.com>
2018-01-29Allow filtering by reserved propertiesDaniel Silverthorn1-3/+0
Change-Id: Ie43de57b63651fccb13147c9086276f0867a828c Issue-ID: AAI-702 Signed-off-by: Daniel Silverthorn <daniel.silverthorn@amdocs.com>
2018-01-22Fix issue with patch requestssblimkie3-12/+12
Fix issue where patch commands were failing for non-string vertex properties Change-Id: I1cf25565fc121745e817c8292c99d4cdc89c4a35 Issue-ID: AAI-685 Signed-off-by: sblimkie <steven.blimkie@amdocs.com>
2018-01-22Add query parameters to get propertiesDaniel Silverthorn2-10/+40
Issue-ID: AAI-685 Change-Id: Id06a08ef668591560d276ef8a79c095f31d8c85b Signed-off-by: Daniel Silverthorn <daniel.silverthorn@amdocs.com>
2018-01-12Allow patch operation in bulk requestsblimkie2-4/+34
Support the patch operation in a bulk request. Change-Id: I10054f60315632812bed18997272a5c9728a3f67 Issue-ID: AAI-482 Signed-off-by: sblimkie <steven.blimkie@amdocs.com>
2018-01-12Fix for bulk deletessblimkie3-286/+238
Ensure that in a bulk delete, edges are deleted before vertexes Change-Id: I00716139ebc53fe7ef855e80c4ae908bbffff83d Issue-ID: AAI-482 Signed-off-by: sblimkie <steven.blimkie@amdocs.com>
2018-01-10Return 400 instead of 403 when missing X-FromAppIdDaniel Silverthorn1-229/+218
Change-Id: I67500a7a98aa8cd3a86d5713c2d94df9599261b5 Issue-ID: AAI-482 Signed-off-by: Daniel Silverthorn <daniel.silverthorn@amdocs.com>
2018-01-09Validate the FromAppID when populating SOT propsGurjeet Bedi1-18/+29
Rejecting request when FromAppID is not set Issue-ID: AAI-482 Change-Id: I34862ed17146dc8bf3ecaa13afd9a76a20c9476c Signed-off-by: Gurjeet Bedi <gurjeetb@amdocs.com>
2018-01-07OXM which tracks provenanceGurjeet Bedi4-59/+29
Support for source-of-truth and last-mod-source-of-truth Issue-ID: AAI-482 Change-Id: Idc7ec47c0561f2dad6f930d0ac0dd3fff9585b4f Signed-off-by: Gurjeet Bedi <gurjeetb@amdocs.com>
2018-01-04OXM which tracks provenanceGurjeet Bedi1-0/+57
support for source-of-truth and last-mo-source-of truth Issue-ID: AAI-482 Change-Id: Ida88374cf4cbfc6c21e95896dcc0fcf059349381 Signed-off-by: Gurjeet Bedi <gurjeetb@amdocs.com>
2018-01-04Support for bulk API in async modesblimkie1-82/+183
Allow bulk request processing in Gizmo's async mode Change-Id: I2aa86aaee9534e7a84bd360e97513ac5077485f2 Issue-ID: AAI-482 Signed-off-by: sblimkie <steven.blimkie@amdocs.com>
2017-12-22Better handling for exception logsGurjeet Bedi2-1/+10
Handling for dmaap not supporting offsets Issue-ID: AAI-552 Change-Id: I0af737d92861b7c6c22421a106d32c9b2c4fca7b Signed-off-by: Gurjeet Bedi <gurjeetb@amdocs.com>
2017-12-20Consolidate syncrounous and asyncronous APIssblimkie6-816/+136
Gizmo to present a single API, and the mode in which it interacts with the backend is configurable at deploy time. Change-Id: Iab96f71c9f99dd1d8d70f01a90478a975c50bff1 Issue-ID: AAI-482 Signed-off-by: sblimkie <steven.blimkie@amdocs.com>
2017-12-06Port async pipeline for gizmoGurjeet Bedi6-12/+1406
Port async pipeline for gizmo Issue-ID: AAI-552 Change-Id: I255127174d1154849f440bab8b1f0bda3311ec9f Signed-off-by: Gurjeet Bedi <gurjeetb@amdocs.com>
2017-12-06Use rebranded version of auth librarysblimkie2-2/+2
Use the new version of the auth library which has been renamed from openecomp to onap Issue-ID: AAI-10 Change-Id: Ie5f9520f6218b7550dd68844600b683e30ec6424 Signed-off-by: sblimkie <steven.blimkie@amdocs.com>
2017-12-04Gizmo uses Champ the microservicesblimkie1-8/+0
Gizmo modified to use the Champ ms REST API instead of the Champ library Issue-ID: AAI-525 Change-Id: Ifc5d0302eebfe4eccbe805ecf6cfd059fb6e700b Signed-off-by: sblimkie <steven.blimkie@amdocs.com>
2017-11-20Refactor to move from openecomp to onapBansal, Nitin (nb121v)7-0/+2037
Refactor to move from openecomp to onap IssueID: AAI-486 Change-Id: I1d5634739514acf11d5fbdf5e2c7865aaccd864e Signed-off-by: Bansal, Nitin (nb121v) <nitin.bansal@amdocs.com>