Hello,
I am trying to run the gatling test on a complex docker env instantiating a cluster application that works together with a proxy. We have this http protocol
http
.baseUrl("https://cb-start:8443")
.inferHtmlResources(AllowList(), DenyList(""".*\.js""", """.*\.css""", """.*\.gif""", """.*\.jpeg""", """.*\.jpg""", """.*\.ico""", """.*\.woff""", """.*\.woff2""", """.*\.(t|o)tf""", """.*\.png""", """.*\.svg""", """.*detectportal\.firefox\.com.*"""))
.userAgentHeader("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36")
.proxy(Proxy(localhost, 8889)
.httpsPort(8889)
)
.perUserKeyManagerFactory { _ =>
keyManagersFactories(incrementer.getAndIncrement() % keyManagersFactories.length)
}
In the end gatling says:
16:06:02.527 [DEBUG] i.g.h.c.BaseUrlSupport$ - Couldn’t pre-resolve hostname from baseUrl
https://cb-start:8443
java.net.UnknownHostException: No such host is known (cb-start)
When I try to reach this containe via the browser the host-name appears like this:
Could it be that gatling is not considering the full hostname as cb-start:8443? Or should we look to docker files that deploy this env?
Thanks,
Emir