aboutsummaryrefslogtreecommitdiffstats
path: root/pnfsimulator/src/main/java/org/onap
AgeCommit message (Collapse)AuthorFilesLines
2021-02-02add basic auth using username and passwordBartosz Gardziejewski1-4/+25
Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: I67bc2c25149c8e2d4943f23cfa8d726cdb95995f Issue-ID: INT-1805
2021-01-28Add message from VES to PNF simulator response when performing one time ↵Bartosz Gardziejewski6-32/+136
event request Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: I0a12263daafacc52643838ff80482e4c7168b7ea Issue-ID: INT-1804
2020-10-22Adjust PNF simulator to read passwords to stores from filesAdam Wudzinski5-24/+79
Issue-ID: INT-1746 Signed-off-by: Adam Wudzinski <adam.wudzinski@nokia.com> Change-Id: Ib8a59500c15759bb09bb8b19e4757f1c48625af5
2020-10-21Adjust PNF simulator to use strict hostname checking.tkogut8-146/+275
Use separate keystore/truststore for ves. Add network for communication between ves and pnfsim. Issue-ID: INT-1744 Signed-off-by: tkogut <tomasz.kogut@nokia.com> Change-Id: I6626ac6d6f74e739aeb93879eddfd44f9e9383ea
2020-05-08Fix crashing file watcher threadBartosz Gardziejewski1-1/+2
When file is empty it throws BSONException, that wasn't handled Issue-ID: INT-1533 Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: If868e40e8120b3d935895b6c4c4fe38d14a41843
2020-04-27Add variables to PNF simulator events and update loggingBartosz Gardziejewski5-18/+87
Issue-ID: INT-1517 Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: I48931c0b4c68cd4de548cfa7dbaa950a24d13545
2020-04-23Add string formatter to error messageBartosz Gardziejewski1-1/+9
Logger.error is seen by sonar as bug due to message formatting. To resolve this issue formatting was extracted to previous line. Issue-ID: INT-1533 Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: If470a94fe4349759a46ac4ff70301c5bdddc619f
2020-04-22Merge "Fix getting template by name from rest endpoint"Bogumil Zebek1-7/+17
2020-04-22Merge "Fix sonar issue SslSuportLevel"Bogumil Zebek1-1/+1
2020-04-22Merge "Increase tests coverage"Bogumil Zebek1-8/+4
2020-04-22Fix sonar issue SslSuportLevelAleksandra Maciaga1-1/+1
Issue-ID: INT-1517 Signed-off-by: Aleksandra Maciaga <aleksandra.maciaga@nokia.com> Change-Id: I8ef686ef569d5bac727404bc46d1b164b363a872
2020-04-22Increase test coverage for SslAuthenticationHelperAleksandra Maciaga1-40/+5
Issue-ID: INT-1517 Signed-off-by: Aleksandra Maciaga <aleksandra.maciaga@nokia.com> Change-Id: I2dc3f721e7bc6f6e0d89355e13592839aac9c985
2020-04-22Fix getting template by name from rest endpointBartosz Gardziejewski1-7/+17
Issue-ID: INT-1533 Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: If7839bb91228d0e9cb43afe38c48dd11f52cb871
2020-04-22Increase tests coverageMichal Banka1-8/+4
Change-Id: Ie1e2333ee43604408ddd0551aae536bbc9bda5a7 Signed-off-by: Michal Banka <michal.banka@nokia.com> Issue-ID: INT-1517
2020-04-22Merge "Fix sonar issue KeywordsHandler RuntimeException"Bogumil Zebek2-4/+34
2020-04-22Merge "Fix sonar issue SimulatorController"Bogumil Zebek1-2/+10
2020-04-22Fix sonar issue KeywordsHandler RuntimeExceptionedyta2-4/+34
Issue-ID: INT-1517 Signed-off-by: Edyta Krukowska <edyta.krukowska@nokia.com> Change-Id: Ib862d81a6ab3b26cfeebc2f9175ed6b6f061706c
2020-04-22Fix sonar issue SimulatorControllerAleksandra Maciaga1-2/+10
Issue-ID: INT-1517 Signed-off-by: Aleksandra Maciaga <aleksandra.maciaga@nokia.com> Change-Id: I7af9529be268cb40922868ee62e3318509166287
2020-04-22Merge "Add EventData missing toString test"Bogumil Zebek1-11/+2
2020-04-22Add EventData missing toString testedyta1-11/+2
Issue-ID: INT-1517 Signed-off-by: Edyta Krukowska <edyta.krukowska@nokia.com> Change-Id: I93f9947081a239725c2c3808aef61a663df3383c
2020-04-21Merge "Provide the parametrized type for this generic"Bogumil Zebek2-12/+12
2020-04-21Provide the parametrized type for this genericAleksandra Maciaga2-12/+12
Issue-ID: INT-1517 Signed-off-by: Aleksandra Maciaga <aleksandra.maciaga@nokia.com> Change-Id: I9e40d3cc8b6a71afd05ed027b71a1a7474a388a8
2020-04-21Fix sonar issue FsToDbTemplateSynchronizeredyta1-7/+7
Issue-ID: INT-1517 Signed-off-by: Edyta Krukowska <edyta.krukowska@nokia.com> Change-Id: Iaa4ec60c00d186feb225244969c12993dfdf5569
2020-04-21Remove usage of generic wildcard typeBogumil Zebek1-6/+3
It is highly recommended not to use wildcard types as return types. Because the type inference rules are fairly complex it is unlikely the user of that API will know how to use it correctly. Issue-ID: INT-1517 Signed-off-by: Zebek Bogumil <bogumil.zebek@nokia.com> Change-Id: Ib7fac9587e158afce6856309dfb2f397661c72b9
2020-04-21Merge "Check if command line arguments are used properly"Krzysztof Kuzmicki1-1/+3
2020-04-21Check if command line arguments are used properlyBogumil Zebek1-1/+3
Yes. Parameters are used properly. Thus we will turn off SONAR rule (Using command line arguments is security-sensitive) for this main functions. Issue-ID: INT-1517 Signed-off-by: Zebek Bogumil <bogumil.zebek@nokia.com> Change-Id: I659ba8d6d932653f4866667faa04236a72d77b6b
2020-04-21Fix security vulnerableBogumil Zebek1-1/+6
User provided data, such as URL parameters, POST data payloads or cookies, should always be considered untrusted and tainted. Applications logging tainted data could enable an attacker to inject characters that would break the log file pattern. This could be used to block monitors and SIEM (Security Information and Event Management) systems from detecting other malicious events. This problem could be mitigated by sanitizing the user provided data before logging it. Issue-ID: INT-1517 Signed-off-by: Zebek Bogumil <bogumil.zebek@nokia.com> Change-Id: Ifc4cd24daba49c3fe2e41a5709a87d5cf3daa642
2020-04-21Resolve checkstyle warnings in PNF simulatorBartosz Gardziejewski22-158/+182
Issue-ID: INT-1517 Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: I43e9f129c24ef33d93b550600e4dd850f881126b
2020-04-20Merge "Fix sonar issue SslSupportLevel"Bogumil Zebek1-1/+1
2020-04-20Merge "Fix sonar issue HttpClientAdapterImpl"Bogumil Zebek1-12/+12
2020-04-20Merge "Fix sonar issue EventScheduler"Bogumil Zebek1-32/+31
2020-04-20Merge "Fix sonar issue EventJob"Bogumil Zebek1-5/+6
2020-04-20Merge "Fix sonar issue SimualtorService"Bogumil Zebek1-4/+4
2020-04-20Merge "Fix sonar issue FsToDbTemplateSynchronizer"Bogumil Zebek1-1/+1
2020-04-20Merge "Fix sonar Keyword"Bogumil Zebek1-7/+9
2020-04-20Fix sonar issue SslSupportLeveledyta1-4/+1
Issue-ID: INT-1517 Signed-off-by: Edyta Krukowska <edyta.krukowska@nokia.com> Change-Id: Ib871854a2becfbef7cf568f09f20b61b72361547
2020-04-17Fix sonar issue HttpClientAdapterImpledyta1-12/+12
Issue-ID: INT-1517 Signed-off-by: Edyta Krukowska <edyta.krukowska@nokia.com> Change-Id: I4b3ccce1525f57102b1a0ed47e1b017f7daebd17
2020-04-17Fix sonar issue EventScheduleredyta1-32/+31
Issue-ID: INT-1517 Signed-off-by: Edyta Krukowska <edyta.krukowska@nokia.com> Change-Id: I77f0858d83aa1ccaab735bff9515366374ba4179
2020-04-17Fix sonar issue SimualtorServiceedyta1-4/+4
Issue-ID: INT-1517 Signed-off-by: Edyta Krukowska <edyta.krukowska@nokia.com> Change-Id: I1aeb643ac21c2230860bda3eb7771924e4668016
2020-04-17Fix sonar issue SslSupportLeveledyta1-3/+0
Issue-ID: INT-1517 Signed-off-by: Edyta Krukowska <edyta.krukowska@nokia.com> Change-Id: Ia9335aa1a3511d2c6dae4d845584c3ef36274349
2020-04-17Fix sonar Keywordedyta1-7/+9
Issue-ID: INT-1517 Signed-off-by: Edyta Krukowska <edyta.krukowska@nokia.com> Change-Id: I9957d54a84a6c093e1289b66b45585a8c2b71f0e
2020-04-17Fix sonar issue EventJobedyta1-5/+6
Issue-ID: INT-1517 Signed-off-by: Edyta Krukowska <edyta.krukowska@nokia.com> Change-Id: I973fe6d5854d50d93a6bf874d3066b6137a6012b
2020-04-17Fix sonar issue FsToDbTemplateSynchronizeredyta1-1/+1
Issue-ID: INT-1517 Signed-off-by: Edyta Krukowska <edyta.krukowska@nokia.com> Change-Id: I492f6453558bf26b80319b34545b956fe9ae9d45
2020-04-08Move PNF simulator from /test/mocks to new projectBartosz Gardziejewski58-0/+3842
This code is a copy of pnfsimulator located in integration repository (/test/mocks/pnfsimulator) with added profile "docker" in pom.xml located in pnfsimulator and netconfsimulator subprojects Issue-ID: INT-1517 Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: I725fa0530c41b13cb12705979dee8b8b354dc1a1