Closed pmauduit closed 3 months ago
Side-note: I'd have liked to find a way to define the host header as a default on the WebTestClient object, but could not find a way to do so.
forced-pushed because I commented out a header("host", "localhost");
in one of the tests in order to get the stacktrace put in the description, and forgot to uncomment afterwards before pushing.
Maybe it's because we are mocking to an IP address instead of a hostname?
Maybe we need to set the host header by default? I saw something related to withHost
: https://wiremock.org/docs/multi-domain-mocking/
I think we should try to see which header are sent by wiremock using something like https://gist.github.com/phrawzty/62540f146ee5e74ea1ab
Closed in favor of : https://github.com/georchestra/georchestra-gateway/pull/109
Following #104, the
Host
http header became mandatory, else throwing a NPE in Netty's code when reaching the NettyRoutingFilter class:Tests:
mvn clean verify
on gateway subdir went fine 3 times in a row.Notes:
Host
header is now mandatory, somehow ?200 - OK
return code.