aboutsummaryrefslogtreecommitdiffstats
path: root/src/test
AgeCommit message (Collapse)AuthorFilesLines
2020-01-17Changed EventTransformation schema to be loaded only onceawudzins5-19/+580
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 libraryPawel2-22/+38
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 methodspawel2-148/+6
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 Murgoski3-132/+145
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-14VES Collector - Event OrderingZlatko Murgoski6-27/+12
https://jira.onap.org/browse/DCAEGEN2-1483 Change-Id: I28b0e871ce570a3cf4c0d2e08d040b66eb6db3aa Issue-ID: DCAEGEN2-1483 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-04-15Collector authentication enhancementZlatko Murgoski3-1/+4
Add cert subject verifier Change-Id: If2c3c0984e9eec63e2884ca17db953fff2719888 Issue-ID: DCAEGEN2-1101 Signed-off-by: Zlatko Murgoski <zlatko.murgoski@nokia.com>
2019-03-15Collector authentication enhancementZlatko Murgoski7-31/+23
Collector authentication enhancement Change-Id: I03a05cb83dd8c498fb218e82e9b3958348fbb4ac Issue-ID: DCAEGEN2-1101 Signed-off-by: Zlatko Murgoski <zlatko.murgoski@nokia.com>
2019-03-04Remove alias propertyZlatko Murgoski4-4/+128
Remove unused alias property Issue-ID: DCAEGEN2-1104 Change-Id: Ib843a624e36b99057bf66f5b1ec72d4b498e4481 Signed-off-by: Zlatko Murgoski <zlatko.murgoski@nokia.com>
2019-03-02Merge "Restart Issue"Vijay Venkatesh Kumar3-24/+6
2019-03-01Restart IssueZlatko Murgoski3-24/+6
Restart Issue Issue-ID: DCAEGEN2-1104 Change-Id: Iac1ee2f79be00084f5c0cd963503d54d7d6e6cb9 Signed-off-by: Zlatko Murgoski <zlatko.murgoski@nokia.com>
2019-02-25Update all hashed passwordZlatko Murgoski4-4/+4
Update all password with new hash method Change-Id: I7d6705b8a9c247888b451093799c2af42fc31c30 Issue-ID: DCAEGEN2-978 Signed-off-by: Zlatko Murgoski <zlatko.murgoski@nokia.com>
2018-12-31Fix sonar violationZlatko Murgoski10-18/+17
Fix sonar violation' Change-Id: Ia5718d2bcbf9f5efea40d8250b7ad57f6d2eb2f3 Issue-ID: DCAEGEN2-1016 Signed-off-by: Zlatko Murgoski <zlatko.murgoski@nokia.com>
2018-12-21Fix bug with processing event listZlatko Murgoski3-106/+70
DMaapEventPublisher processing of eventList Issue-ID: DCAEGEN2-1035 Change-Id: If62ec51d1dc1f0e501fda624dae23c7a83d3727b Signed-off-by: Zlatko Murgoski <zlatko.murgoski@nokia.com>
2018-12-14Merge "Simplify cli parser logic"Vijay Venkatesh Kumar1-0/+57
2018-12-10Simplify cli parser logicBogumil Zebek1-0/+57
Change-Id: I7008efe19f567b178dd296f4f485fd14c5e7569d Issue-ID: DCAEGEN2-1022 Signed-off-by: bogumil_zebek <bogumil.zebek@nokia.com>
2018-12-07Remove clear text passwordZlatko Murgoski3-5/+5
Change to SHA256 Change-Id: I1c41247cf4094523b61487cbce0030d585982b06 Issue-ID: DCAEGEN2-978 Signed-off-by: Zlatko Murgoski <zlatko.murgoski@nokia.com>
2018-11-27TLS mutual authentication has been added.andrzejszukuc7-3/+346
Change-Id: I60ebe8e1b06d72413940935396cb7a56af437c0d Issue-ID: DCAEGEN2-959 Signed-off-by: ANDRZEJ SZUKUC <andrzej.szukuc@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>
2018-09-11Fix build warnings & CLM scan issue3.0.0-ONAP1.3.1Vijay VK13-51/+73
Change-Id: I43629917f2d7bafb15258bdbba1cd45478595edb Signed-off-by: VENKATESH KUMAR <vv770d@att.com> Issue-ID: DCAEGEN2-603, DCAEGEN2-767 Signed-off-by: VENKATESH KUMAR <vv770d@att.com>
2018-09-04Add protocols to hostsJakub Zieba7-123/+120
Add default protocols for Consul hosts Add controller for healt check Fix for merging properties from file and Consul Change-Id: Ifa8c7cdfa333d8ffee175b5eb4446f0c3a986f27 Issue-ID: DCAEGEN2-747 Signed-off-by: Jakub Zieba <jakub.zieba@nokia.com>
2018-08-23VES7.x to 5.x transformationPATRACHARI3-1/+269
Update transformation code based on Min's requirement. This includes all Measurement transformations. Issue-ID: DCAEGEN2-600 Change-Id: I082df846e159a4f158619e700a6dfed6de43cd95 Signed-off-by: PATRACHARI <gp2421@att.com>
2018-08-10Refactor the code base a bitPawelSzalapski5-191/+22
Remove potential race condition coming from shared 'version' veriable in singleton instance of RestController. Move the logic behind reading the json schemas out of a on-request phase to application startup. Minor refactoring done that will bump up test coverage. Change-Id: I2ad1ba91dafafd785ede61591a4dc146abf6a1eb Signed-off-by: PawelSzalapski <pawel.szalapski@nokia.com> Issue-ID: DCAEGEN2-526
2018-08-08VES 7.0.1 updatesVijay VK6-22/+183
Initial commit to include the support for below - VES 7.1 API - updated spec and data-format - Response code update per new spec - springfox for swagger doc - New topic defaults Todo - Swagger instrumention to include necessary annotation - Event Transformation 7.x to 5.x - VES7.x response header - AAF cert integration Change-Id: I9bc2223fa362b35ae8a7105acd651fe524a403c5 Signed-off-by: VENKATESH KUMAR <vv770d@att.com> Issue-ID: DCAEGEN2-600
2018-08-06Implement second part of dynamic DMaaP configPawelSzalapski10-161/+708
VESCollector app can now fetch CBS configuration and rebuilt the part regarding sending events dynamically, without restarting application. Application will still be restarted by a .sh script, if there were changes regarding collector.properties file. The decision of whether dynamic configuration should be triggered is now based on existence of env vars CONSUL_HOST, CONFIG_BINDING_SERVICE, HOSTNAME, not as previously on CBSPOLLTIME. Frequency at which the config check should happen is now exposed via property from collector.properties Change-Id: I98ff160fa51d08d84a23c716d90ceaacbe17ada6 Signed-off-by: PawelSzalapski <pawel.szalapski@nokia.com> Issue-ID: DCAEGEN2-519
2018-08-01Replace nsaCore library with SpringPawelSzalapski6-228/+59
Change-Id: I2227939a67a2cbba2d392136d49ef4419600d186 Issue-ID: DCAEGEN2-602 Signed-off-by: PawelSzalapski <pawel.szalapski@nokia.com>
2018-07-18VES collector application settings providerZlatko Murgoski4-10/+444
Extract application settings to diferent class First step to remove nsaServerLibrary Change-Id: Ib4fb236ac4683d241c7841ba66f1afbcfb10c92a Signed-off-by: ZlatkoMurgoski <zlatko.murgoski@nokia.com> Issue-ID: DCAEGEN2-566
2018-07-02Prepare codebase for dynamic DMaaP configurationPawelSzalapski14-419/+368
From now on, there is only one single place where we can create whole app core concerning sending events and it has a single entry point, based on DMaaP configuration. It can be used to rebuild part of app that is responsible for sending events dynamically. Changes are in scope for the dynamic DMaaP config feature. + bumped up code coverage a bit Change-Id: Iecc8c4e534ae9b781f47e3616409271ba83169c8 Signed-off-by: PawelSzalapski <pawel.szalapski@nokia.com> Issue-ID: DCAEGEN2-517
2018-06-24Remove dead code from VESCollectorPawelSzalapski13-422/+298
Many things there are unused or have inproper modifiers, spelling etc. I run static analysis tool (Intellij code inspect) and clear those things up. It will be easier to maintain now. No actual behavior changes were done. Issue-ID: DCAEGEN2-526 Signed-off-by: PawelSzalapski <pawel.szalapski@nokia.com> Change-Id: I1a4ad0c896bd32165cba654344ffc5245648c615
2018-06-18Refactor DmaapPropertyReaderkoblosz6-53/+274
Issue-ID: DCAEGEN2-522 Signed-off-by: KOBLOSZ SANDRA <sandra.koblosz@nokia.com> Change-Id: I2d9928ff3ffeda0e204480f13e8c8bf91bddf912
2018-06-15Merge "Fix bug about custom exceptions not being used"Vijay Venkatesh Kumar2-61/+66
2018-06-11Merge "Refactor tests to check actual behavior of methods"Vijay Venkatesh Kumar2-172/+129
2018-06-11Fix bug about custom exceptions not being usedPawelSzalapski2-61/+66
The bug was that custom exception config was never actually queried because of the mismatch between the production code usages and .json config file. Change-Id: I416ef5f45770f9bb55d5dff143277b6c62fa25ba Issue-ID: DCAEGEN2-518 Signed-off-by: PawelSzalapski <pawel.szalapski@nokia.com>
2018-06-11Fix tests to not create files in repositoryPawelSzalapski3-203/+175
While we run unittests, they create files directly inside the repository, those files are later proposed as changes to commit. Change-Id: Iffcb3820959f85099d3fe0ab9db1a198f8f60d78 Issue-ID: DCAEGEN2-524 Signed-off-by: PawelSzalapski <pawel.szalapski@nokia.com>
2018-06-11Refactor tests to check actual behavior of methodsPawelSzalapski2-172/+129
Testcases were skimming through the code, but actually make no asserts. Change-Id: Icba8fe890c01fc11a4507ca468ab4d9b6141caf9 Issue-ID: DCAEGEN2-524 Signed-off-by: PawelSzalapski <pawel.szalapski@nokia.com>
2018-06-08Merge "Simplify & remove duplicated testcases"Vijay Venkatesh Kumar5-392/+79
2018-06-08Merge "Refactored event processor + sonar"Vijay Venkatesh Kumar3-132/+183
2018-06-08Merge "Refactor tests to check actual behavior of methods"Vijay Venkatesh Kumar2-104/+53
2018-06-08Refactored event processor + sonarKrysiak Adam Gabriel3-132/+183
Issue-ID: DCAEGEN2-521 Change-Id: I9290f21701945cd1bb5e7a43a671991417f25491 Signed-off-by: Krysiak Adam Gabriel <adam.krysiak@nokia.com>
2018-06-06Merge "Remove tests that do not actually test anything"Vijay Venkatesh Kumar1-131/+15
2018-06-06Remove tests that do not actually test anythingPawelSzalapski1-131/+15
Testcases in this file are written in a way that they always throw exceptions, information about this is logged and the assertion is always true. Change-Id: Icbb0b6d4df9782e3a05f8d31fc71886a12a0105a Issue-ID: DCAEGEN2-524 Signed-off-by: PawelSzalapski <pawel.szalapski@nokia.com>
2018-06-06Refactor tests to check actual behavior of methodsPawelSzalapski2-104/+53
Testcases were skimming through the code, but actually make no asserts. Change-Id: I3cab0a75c885e1e459b18066f13e351970f476b0 Issue-ID: DCAEGEN2-524 Signed-off-by: PawelSzalapski <pawel.szalapski@nokia.com>
2018-06-06Refactor DMaaPPropertyReader testsPawelSzalapski1-41/+27
DMaaPPropertyReader tests had no meaningful assert statements Tests for actual topic retrieval were added Change-Id: Ieb861f02d8484ac4bfd5a49b3c70d296bd2c129b Issue-ID: DCAEGEN2-524 Signed-off-by: PawelSzalapski <pawel.szalapski@nokia.com>
2018-06-06Simplify & remove duplicated testcasesPawelSzalapski5-392/+79
Testcases in those files were overengineered, plus there were duplicates so they got simplified. Obsolete classes that were unneeded were removed Change-Id: I9fce325aed4f1a3a6073f0c564adac1ec5a6beae Issue-ID: DCAEGEN2-524 Signed-off-by: PawelSzalapski <pawel.szalapski@nokia.com>
2018-04-12Optimize and refactor EventPublisher class in VESPiotr Jaszczyk4-113/+340
* Remove need for having sendEvent synchronized by means of using Guava LoadingCache. The only thing that made it synchronized was the creation of new entries in the map but the synchronization was made on each incoming event. * Split the class to smaller classes which conform to SRP. This makes us able to... * ... write unit tests for affected classes * TODO: upgrade to Java8 so lambdas will simplify the code even more Change-Id: I14cf4cfab0570ce5aecc9a5e5dc9f541c499f9d7 Issue-ID: DCAEGEN2-440 Signed-off-by: Piotr Jaszczyk <piotr.jaszczyk@nokia.com>