aboutsummaryrefslogtreecommitdiffstats
path: root/pnfsimulator/src
AgeCommit message (Collapse)AuthorFilesLines
2021-02-02add basic auth using username and passwordBartosz Gardziejewski3-8/+60
Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: I67bc2c25149c8e2d4943f23cfa8d726cdb95995f Issue-ID: INT-1805
2021-02-02fix truststore name used in propertiesBartosz Gardziejewski1-1/+1
Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: I543f451c4ee4b6402aa0410ba16115ff392c27c7 Issue-ID: INT-1844
2021-01-28Add message from VES to PNF simulator response when performing one time ↵Bartosz Gardziejewski11-50/+341
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 Wudzinski14-35/+236
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.tkogut14-198/+558
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-11Add default values for client and store passwordsBartosz Gardziejewski1-2/+2
When running PNF simulator locally (with no AAF connected) password environment variables were empty Issue-ID: INT-1533 Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: I4135f93c6428317e6ef3769e81133e852c1adc63
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-05-08Merge "Add health check endpoint"Bogumil Zebek1-2/+1
2020-05-07Add docker-compose to run PNFsim with dynamic certs from AAFMichal Banka1-4/+4
Signed-off-by: Michal Banka <michal.banka@nokia.com> Change-Id: I135734b17dc88728e199f35f52e87d2651006574 Issue-ID: INT-1583
2020-05-06Add health check endpointBartosz Gardziejewski1-2/+1
Issue-ID: INT-1533 Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: I0767c2a02954b28c11dbdacc565eeaf96b8194be
2020-04-27Add variables to PNF simulator events and update loggingBartosz Gardziejewski11-92/+336
Issue-ID: INT-1517 Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: I48931c0b4c68cd4de548cfa7dbaa950a24d13545
2020-04-23Merge "Fix import in FsToDbTemplateSynchronizer"Bogumil Zebek1-1/+1
2020-04-23Fix import in FsToDbTemplateSynchronizer1.0.0edyta1-1/+1
Issue-ID: INT-1517 Signed-off-by: Edyta Krukowska <edyta.krukowska@nokia.com> Change-Id: Icc383992dac2392ee1bbb5352aec202c087c2457
2020-04-23Merge "Add string formatter to error message"Bogumil Zebek1-1/+9
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-23Merge "Add synchronize TestCase FsToDbTemplateSynchronizer"Bogumil Zebek1-0/+53
2020-04-23Add synchronize TestCase FsToDbTemplateSynchronizeredyta1-0/+53
Issue-ID: INT-1517 Signed-off-by: Edyta Krukowska <edyta.krukowska@nokia.com> Change-Id: I11c4006ec1ec14a5af38b19bd4bf66dcfa80bbbe
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 Zebek3-14/+165
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 Banka3-14/+165
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-22Merge "Created test for TwoParameterKeyword class"Bogumil Zebek1-0/+48
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-21Created test for TwoParameterKeyword classMichal Banka1-0/+48
Change-Id: Iab819e485be2bfdb49cda7d2b83c7a37cdf48e30 Signed-off-by: Michal Banka <michal.banka@nokia.com> Issue-ID: INT-1517
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 Gardziejewski39-545/+575
Issue-ID: INT-1517 Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: I43e9f129c24ef33d93b550600e4dd850f881126b
2020-04-20Add test for DBTemplateReaderBogumil Zebek1-0/+81
Issue-ID: INT-1517 Signed-off-by: Zebek Bogumil <bogumil.zebek@nokia.com> Change-Id: Iccd03fa2b784fc249536103a4e3184824d2c6486
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-20Merge "Fix sonar issue SslSupportLevel"Bogumil Zebek1-3/+0
2020-04-20Merge "Fix sonar issue ResponseBuilderTest"Bogumil Zebek1-7/+8