aboutsummaryrefslogtreecommitdiffstats
path: root/src/test
AgeCommit message (Collapse)AuthorFilesLines
2018-11-29Upgrade version of aai-commonRavi Geda35-568/+40992
Update OXM Model Loader and Edge Rules Loader to use the 1810 schema ingestion mechanism. Update tests accordingly. Change-Id: I979951fcdcaf901c508c30d770b83dfa3d52bde4 Issue-ID: AAI-1952 Signed-off-by: Ravi Geda <gravik@amdocs.com>
2018-11-07 Add swagger docs for gizmo APIsBansal, Nitin (nb121v)1-1/+1
Improve the way node type is resolved from OXM jaxbContext. Issue-ID: AAI-1882 Change-Id: Ia72fea0ac286dc96bb3b29d117b241b58b7eece7 Signed-off-by: Bansal, Nitin (nb121v) <nitin.bansal@amdocs.com>
2018-07-19Auto-resolve edge typesblimkie6-18/+108
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)1-2/+2
Issue-ID: AAI-1190 Change-Id: I72894665b288416069d3c2eb84185fcc303976f7 Signed-off-by: Sotiropoulos, Ioannis (is948x) <Ioannis.Sotiropoulos@amdocs.com>
2018-07-10Increase code coverageSotiropoulos, Ioannis (is948x)31-27/+4266
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-09Fix code architecure in CrudAsyncResponseConsumerBogumil Zebek1-0/+115
- 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-06-27Apply multiplicity Rule upon Edge creationmichaere17-86/+19487
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-18ETags on resourcesSotiropoulos, Ioannis (is948x)3-48/+266
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 Dave13-224/+5494
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-11Process multi-OXM filesSotiropoulos, Ioannis (is948x)7-11/+13281
Gizmo service uses common OXM consumer to process multi-OXM files Issue-ID: AAI-1196 Change-Id: If6dd50413a914984948272cd6bd98e2eeeaecedb Signed-off-by: Sotiropoulos, Ioannis (is948x) <Ioannis.Sotiropoulos@amdocs.com>
2018-06-06Add tests for X-FromMsIdSotiropoulos, Ioannis (is948x)10-9/+130
Add tests for X-FromMsId header parameter changes Issue-ID: AAI-1198 Change-Id: I6342cf95e5c635b500245bfa90040376ffa1b992 Signed-off-by: Sotiropoulos, Ioannis (is948x) <Ioannis.Sotiropoulos@amdocs.com>
2018-06-06Add validation for request headerSotiropoulos, Ioannis (is948x)2-10/+60
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-05-01Migrate to Spring BootRavi Geda4-8/+66
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 Arrastia6-0/+188
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-16Allow ingestion of edge schema at deploy timesblimkie3-1971/+34
Gizmo to optionally allow a deployer to drop in a custom edge schema at deploy time. Change-Id: I5b7ccca79bc4fdb79629d308f517d4446adeb971 Issue-ID: AAI-889 Signed-off-by: sblimkie <steven.blimkie@amdocs.com>
2018-03-15Add junit testssblimkie15-40/+1462
Add junit tests Change-Id: Iaa22b0faa206114ef39648d451a5275205d14d9a Issue-ID: AAI-885 Signed-off-by: sblimkie <steven.blimkie@amdocs.com>
2018-03-13Update license date and textsblimkie3-0/+60
Update license date and disable license plugin Change-Id: Ieb54f4fe8dc939bf57af88fb7a71fd510bd20509 Issue-ID: AAI-865 Signed-off-by: sblimkie <steven.blimkie@amdocs.com>
2018-02-20Gizmo to use latest schemasblimkie1-2/+2
Update Gizmo to use the latest version of the aai-schema and aai relationships Change-Id: I2a8b408b2e55f1bd13ee8800a0d78bdf2c59ecb8 Issue-ID: AAI-482 Signed-off-by: sblimkie <steven.blimkie@amdocs.com>
2018-02-20Fix junit testSotiropoulos, Ioannis (is948x)1-1/+1
The relation type wasn't present in the DbEdgeRules file. Issue-ID: AAI-780 Change-Id: I1fbcc2b53d9df62b0339605d94ba628f4abd7146 Signed-off-by: Sotiropoulos, Ioannis (is948x) <ioannis.sotiropoulos@amdocs.com>
2017-12-04Gizmo uses Champ the microservicesblimkie1-624/+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)4-14/+14
Refactor to move from openecomp to onap IssueID: AAI-486 Change-Id: I1d5634739514acf11d5fbdf5e2c7865aaccd864e Signed-off-by: Bansal, Nitin (nb121v) <nitin.bansal@amdocs.com>
2017-11-15Gizmo to use the new edge rule label formatsblimkie2-6/+6
Some unit tests still used the old style label and they needed to be fixed. IssueID: AAI-465 Change-Id: I6d669c93d00c32dacf3ed923c28a110fd6f4630d Signed-off-by: sblimkie <steven.blimkie@amdocs.com>
2017-10-05Fix import issue on unit testabatos1-1/+1
The re-enabled unit test was depending on an older version of the champ package so this has been updated to the newest version. Change-Id: I80c6c8b930280e2a3aa534c73234b1f277fd8b67 Issue-Id: AAI-295 Signed-off-by: Adrian Batos <adrian.batos-parac@amdocs.com>#
2017-09-26Fix dependency issue on older version of Tinkerpopabatos2-609/+600
Removed the explicit dependency on the older versions of the Tinkerpop stack. This was causing problems with both the Titan and Janusgraph implementations of the deployment. Change-Id: I873ad3e9c92239774aa5ee30cf755700de52267b Issue-ID: AAI-295 Signed-off-by: Adrian Batos <adrian.batos-parac@amdocs.com>
2017-09-05Replace OxmModelLoader with aaiutilsDaniel Silverthorn1-21/+0
Issue ID: AAI-245 Change-Id: I38312e114a221686834303a81e6e21a49ee27b2a Signed-off-by: Daniel Silverthorn <daniel.silverthorn@amdocs.com>
2017-09-01New endpoints to auto populate edge properties.gfraboni3-599/+968
New endpoints created to allow v11 endpoints to have their properties automatically set based on db edge rules. Issue-Id: AAI-60 Change-Id: I9b41f654fa9924b1dcb863aca369725a763b3691 Signed-off-by: gfraboni <gino.fraboni@amdocs.com>
2017-08-23Safeguard against deprecated DbEdgeRules versions.Shwetank Dave2-2/+3
Currently we require a DbEdgeRules_vX.json file and it's associated edge_properties_vX.json files. If an edge_properties file is not found for a DbEdgeRules file, it throws an exeption. We should log and entry stating DbEdgeRules and it's associaded edge_properties files is not found and not throw an error. Issue-ID: AAI-21 Change-Id: I05f5b4d14c3cef1586cefe579e38df03ca4fb438 Signed-off-by: Shwetank Dave <shwetank.dave@amdocs.com>
2017-08-22Split out Titan specific dependencies from coreabatos1-2/+2
Remove the Titan specific references within the gizmo core and prepare for dependency on new champ core library. Change-Id: I29a4e7b6528e8357715b095d8db5456cd01eb636 Issue-ID: AAI-21 Signed-off-by: abatos <adrian.batos-parac@amdocs.com>
2017-08-22Using DbEdgeRules.json files from aai-core jar.Shwetank Dave10-0/+7248
Before we were aai_relationship_vxx.json files. Now using the edge rules directly from aai-core jar. Issue-ID: AAI-21 Change-Id: Id62494caabc75bc29e4f3558268ec78897946937 Signed-off-by: Shwetank Dave <shwetank.dave@amdocs.com>
2017-08-08[AAI-26] Updating OXMModelLoader test.Shwetank Dave1-2/+1
Change-Id: I3712e141763f17633836d314d728282d5eabd356 Signed-off-by: Shwetank Dave <shwetank.dave@amdocs.com>
2017-08-03[AAI-26] Adding gizmo data to the repository.Shwetank Dave5-0/+845
Change-Id: I183f837d45acbfe3c673fde1acf8768d5e3fd37b Signed-off-by: Shwetank Dave <shwetank.dave@amdocs.com>