/** * Convenience method to return a WaitStrategy for an HTTP endpoint. * * @param path the path to check * @return the WaitStrategy * @see HttpWaitStrategy */ public static HttpWaitStrategy forHttp(String path) { return new HttpWaitStrategy() .forPath(path); }
@Override protected void configure() { withExposedPorts(HTTP_PORT, NATIVE_PORT); waitingFor( new HttpWaitStrategy() .forStatusCode(200) .forResponsePredicate(responseBody -> "Ok.".equals(responseBody)) .withStartupTimeout(Duration.ofMinutes(1)) ); }
/** * Convenience method to return a WaitStrategy for an HTTP endpoint. * * @param path the path to check * @return the WaitStrategy * @see HttpWaitStrategy */ public static HttpWaitStrategy forHttp(String path) { return new HttpWaitStrategy() .forPath(path); }
@Override protected void configure() { withExposedPorts(HTTP_PORT, NATIVE_PORT); waitingFor( new HttpWaitStrategy() .forStatusCode(200) .forResponsePredicate(responseBody -> "Ok.".equals(responseBody)) .withStartupTimeout(Duration.ofMinutes(1)) ); }
@Override protected void configure() { // Configurable ports addExposedPorts(11210, 11207, 8091, 18091); // Non configurable ports addFixedExposedPort(8092, 8092); addFixedExposedPort(8093, 8093); addFixedExposedPort(8094, 8094); addFixedExposedPort(8095, 8095); addFixedExposedPort(18092, 18092); addFixedExposedPort(18093, 18093); setWaitStrategy(new HttpWaitStrategy().forPath("/ui/index.html#/")); }