testcontainers/testcontainers-java

Add getMappedPort(Integer originalPort, InternetProtocol protocol)

Open

#554 aberto em 23 de jan. de 2018

Ver no GitHub
 (11 comments) (0 reactions) (0 assignees)Java (1.588 forks)batch import
good first issueresolution/acknowledgedtype/feature

Métricas do repositório

Stars
 (7.535 stars)
Métricas de merge de PR
 (Mesclagem média 2d 17h) (2 fundiu PRs em 30d)

Description

It will just look so much nicer in my test than

genericContainer.getContainerInfo().getNetworkSettings().getPorts().getBindings().get(new ExposedPort(originalPort, protocol))[0].getHostPortSpec()

I think it has something to do with the law of demeter.

But in all fairness root cause is https://github.com/moby/moby/issues/4635

Guia do colaborador