clarin-eric / curation-dashboard

java library for CLARIN's CMDI curation
GNU General Public License v3.0
4 stars 0 forks source link

Use MockServer for testing in pph-, ccr- and cr-service #234

Closed wowasa closed 3 months ago

wowasa commented 7 months ago

In issue #227 we have implemented an optional proxy usage. The next step is to use MockServer as a proxy to have a pre defined response behavior to test those services which make an external http call. Hence, what we have to do is to make a dependency on MockServer, start the MockServer as a proxy on some local port, set configuration properties for local proxy usage and let the MockServer respond on a defined way

wowasa commented 3 months ago

the idea is to verify the behavior, when the server is unavailable, doesn't respond or the response is not processable. For public profiles in each of the cases we want a termination of the program, since we use a fixed URL. For ccr the server part is fix while the query part depends on the profile. Hence we want a termination of the program, when the server is unavailable or takes too long to respond, but continue processing in any other case. While in the the last case we don't want any termination at all, since the server is not necessarily under our control

wowasa commented 3 months ago

implemented