All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.playtika.testcontainer.elasticsearch.rest.WaitForGreenStatus Maven / Gradle / Ivy

The newest version!
package com.playtika.testcontainer.elasticsearch.rest;

import com.playtika.testcontainer.common.checks.AbstractCommandWaitStrategy;
import com.playtika.testcontainer.elasticsearch.ElasticSearchProperties;
import lombok.RequiredArgsConstructor;

@RequiredArgsConstructor
public class WaitForGreenStatus extends AbstractCommandWaitStrategy {

    private final ElasticSearchProperties properties;

    @Override
    public String[] getCheckCommand() {
        return new String[]{
            "curl", "-X", "GET",
            "http://127.0.0.1:" + properties.getHttpPort() + "/_cluster/health?wait_for_status=green&timeout=10s"
        };
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy