testcontainers/testcontainers-java
Add getMappedPort(Integer originalPort, InternetProtocol protocol)
開放
#554 建立於 2018年1月23日
good first issueresolution/acknowledgedtype/feature
倉庫指標
- 星標
- (7,535 顆星)
- PR 合併指標
- (平均合併 2天 17小時) (30 天內合併 2 個 PR)
描述
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