Skip to content

Allow waiting for selected exposed ports #2227

@findepi

Description

@findepi

Wait#forListeningPort() / HostPortWaitStrategy waits for all exposed ports.

I am working with container which has several ports exposed, but some of them are bound conditionally, so cannot be used to check liveness.

Some containers accommodate such need by overriding getLivenessCheckPortNumbers.

public Set<Integer> getLivenessCheckPortNumbers() {
return Sets.newHashSet(getMappedPort(REST));

Provide equivalent for custom containers using GenericContainer.
In my opinion it should be provided as a wait strategy (eg an extension to the existing HostPortWaitStrategy, or a separate one)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions