rwth-acis / mobsos-success-modeling

This service is part of the MobSOS monitoring concept and provides visualization functionality of the monitored data to the Web-frontend.
Other
3 stars 0 forks source link

Build fails because of testGetNames and testGetMeasuresAndModels #18

Open MaxKissgen opened 2 years ago

MaxKissgen commented 2 years ago

I am currently unable to get the service to build because of testGetNames and testGetMeasuresAndModels failing. Building produces the errors (see LogsFail1.txt) that essentially boil down to java.lang.AssertionError: expected:<200> but was:<204>.

When I try to fix those errors by also accepting 204 response codes I get two different errors (see LogsFail2.txt) which are java.lang.AssertionError: Exception: Unexpected token END OF FILE at position 0.

lakhoune commented 2 years ago

I was able to reproduce the error on my local machine. Using the --info flag in the build task I noticed that the service could not make a connection to the SQL server (java.sql.SQLException: Access denied for user 'root'@'localhost'). For some reason, the setFieldValues() method which should be setting the variables from the config file is not working when running the test.

As a quick fix, you can set the databasePassword manually.