summaryrefslogtreecommitdiffstats
path: root/src/test/java/org/onap/dcae/restapi
AgeCommit message (Collapse)AuthorFilesLines
2020-10-16Add logs from external-repo-manager libEdyta Krukowska1-2/+4
Issue-ID: DCAEGEN2-2478 Signed-off-by: Edyta Krukowska <edyta.krukowska@nokia.com> Change-Id: If6f4ab2c8fd9a4bf14e2391acc54eb7b25689e21
2020-09-18Fix an unexpected error in testsBogumil Zebek1-2/+3
- Fix an error reported by DMaapEventPublisher test when pk is not available. Issue-ID: DCAEGEN2-2374 Change-Id: I69c0f89b292c8454f3eebaffe4884928d241f235 Signed-off-by: Zebek Bogumil <bogumil.zebek@nokia.com>
2020-09-15Fix bug throwing exception when first event is collectedMichal Banka1-3/+1
- Problem: When running app from jar (e.g. in docker env) ClassLoader badly interprete classpath as root of app jar, while resources are located in jar under BOOT-INF/classes/ in Spring Boot apps. - Solution: Moved file from resources to etc directory so ClassLoader isn't needed. Filepath of api_version_description.json which previously was badly resolved now is configured in collector.properties. Change-Id: I690394cc59e16c95f5902045efc3fdaf13bf9112 Signed-off-by: Michal Banka <michal.banka@nokia.com> Issue-ID: DCAEGEN2-2426
2020-08-26Config fetch for VESCollector through DCAE-SDK (CBS Client)Pawel1-3/+3
Issue-ID: DCAEGEN2-2212 Signed-off-by: Pawel <pawel.kasperkiewicz@nokia.com> Change-Id: I25072b340b5c9f2f538d39e5befb1331804b7bba Signed-off-by: Pawel <pawel.kasperkiewicz@nokia.com>
2020-08-19Add implementation of stndDefined fields validation1.7.3Michal Banka2-199/+44
Added implementation of stndDefined fields from incoming events. Validation is performed using external-schema-manager tool from DCAE SDK. StndDefined fields schemas are stored in etc/externalRepo directory. Additional stndDefined related properties has been added to collector.properties. VES version has been set to 1.7.3. Issue-ID: DCAEGEN2-2254 Signed-off-by: Edyta Krukowska <edyta.krukowska@nokia.com> Signed-off-by: Michal Banka <michal.banka@nokia.com> Change-Id: Iedaa3622b1d527f6794822c8867b9dfd1860bb8f
2020-08-13StndDefined event routingBogumil Zebek1-7/+10
- Update WS error response - Update DPO configuration Change-Id: Id4eb5ea50af6d55c839047c4f39b9f99487e95de Issue-ID: DCAEGEN2-1771 Signed-off-by: Zebek Bogumil <bogumil.zebek@nokia.com>
2020-08-06StndDefined event routingBogumil Zebek2-69/+245
Route stndDefined events to streams defined in namespace event field. Change-Id: I3963e220095665f8ca3fd1b21c5c20b44057cf76 Issue-ID: DCAEGEN2-1771 Signed-off-by: Zebek Bogumil <bogumil.zebek@nokia.com>
2020-07-08Update VES Collector schema and propertiesedyta2-3/+55
Issue-ID: DCAEGEN2-2254 Signed-off-by: Edyta Krukowska <edyta.krukowska@nokia.com> Change-Id: I6b89f4bc8ff0c2a9e51e94dc7d464608a7c153f2
2020-06-01Add unit test to few classesBogumil Zebek1-0/+102
Increase code coverage: - HeaderUtil - EnvProps - WebMvcConfig Change-Id: I880a4ff02d436cf153d41c795d8e95dfc67fd61b Issue-ID: DCAEGEN2-2245 Signed-off-by: Zebek Bogumil <bogumil.zebek@nokia.com>
2020-01-17Changed EventTransformation schema to be loaded only onceawudzins2-15/+173
Issue-ID: DCAEGEN2-1774 Signed-off-by: adamwudzinski <adam.wudzinski@nokia.com> Change-Id: I50f3da2c11201a40be948ab199aaca89bbbb38db
2020-01-15updated jackson-databind and changed json schema validator libraryPawel1-9/+9
Issue-ID: DCAEGEN2-1825 Signed-off-by: Pawel <pawel.kasperkiewicz@nokia.com> Change-Id: Ia4c9c6286adcf84631a58f9d5bfef124fed1cee6
2019-11-11Merge "Add tests for EventValidator"Vijay Venkatesh Kumar1-0/+124
2019-11-08Remove certOnly and basicAuth from authentication methodspawel1-94/+2
Issue-ID: DCAEGEN2-1776 Signed-off-by: pawel <pawel.kasperkiewicz@nokia.com> Change-Id: I475dcce9de8c7c05d2a05cf51dc862b5bf920164
2019-11-04Add tests for EventValidatorRemigiusz Janeczek1-0/+124
Issue-ID: DCAEGEN2-1819 Change-Id: Ic9f3ea73f8e7e42f5d6e7a821d550823de3f13e7 Signed-off-by: Remigiusz Janeczek <remigiusz.janeczek@nokia.com>
2019-11-04Fix security issue in api interceptorRemigiusz Janeczek1-24/+49
Issue-ID: DCAEGEN2-1880 Change-Id: I5b93dd8405ef9a0a364c6e1224afcfacc9df1fba Signed-off-by: Remigiusz Janeczek <remigiusz.janeczek@nokia.com>
2019-10-09Add tests for healthcheck port requests in ApiAuthInterceptionRemigiusz Janeczek1-0/+36
Issue-ID: DCAEGEN2-1819 Change-Id: Id4f333e856bd5bbef14d4322a8eb7c01575f4796 Signed-off-by: Remigiusz Janeczek <remigiusz.janeczek@nokia.com>
2019-09-11Not Secured healtcheckZlatko Murgoski1-124/+129
https://jira.onap.org/browse/DCAEGEN2-1539 Issue-ID: DCAEGEN2-1539 Change-Id: I55c9387e64a5a6b710785ecbfa695683d821599a Signed-off-by: Zlatko Murgoski <zlatko.murgoski@nokia.com>
2019-06-07Basic auth not workingZlatko Murgoski1-31/+26
https://jira.onap.org/browse/DCAEGEN2-1541 Issue-ID: DCAEGEN2-1541 Change-Id: I61211b7a4693fea60b6da4bc460c2be47a41efa7 Signed-off-by: Zlatko Murgoski <zlatko.murgoski@nokia.com>
2019-04-18VES Collector - certBasicAuth1.4.4Zlatko Murgoski1-1/+1
https://jira.onap.org/browse/DCAEGEN2-1440 Issue-ID: DCAEGEN2-1440 Change-Id: I7976d03c65e261930533a49a6716fd6161124ad9 Signed-off-by: Zlatko Murgoski <zlatko.murgoski@nokia.com>
2019-03-15Collector authentication enhancementZlatko Murgoski1-8/+9
Collector authentication enhancement Change-Id: I03a05cb83dd8c498fb218e82e9b3958348fbb4ac Issue-ID: DCAEGEN2-1101 Signed-off-by: Zlatko Murgoski <zlatko.murgoski@nokia.com>
2018-12-07Remove clear text passwordZlatko Murgoski1-2/+2
Change to SHA256 Change-Id: I1c41247cf4094523b61487cbce0030d585982b06 Issue-ID: DCAEGEN2-978 Signed-off-by: Zlatko Murgoski <zlatko.murgoski@nokia.com>
2018-10-10ApiAuthInterceptor tests have been addedandrzejszukuc1-0/+176
Change-Id: Ieb42e8fa417ff3afb8acad3bd6c48a8287026a2e Issue-ID: DCAEGEN2-517 Signed-off-by: ANDRZEJ SZUKUC <andrzej.szukuc@nokia.com>