package org.apache.mesos.elasticsearch.systemtest;

import com.github.dockerjava.api.DockerClient;

/**
 * SystemTest configuration object
 */
@SuppressWarnings({"PMD.AvoidUsingHardCodedIP"})
public class Configuration {
    private String schedulerImageName = "mesos/elasticsearch-scheduler";
    private String schedulerName = "elasticsearch-scheduler";
    private int schedulerGuiPort = 31100;
    private int elasticsearchNodesCount = getPortRanges().length;
    private int elasticsearchMemorySize = 250;
    private String elasticsearchJobName = "esdemo";
    private final Integer cluster_timeout = 60;

    public static String getDocker0AdaptorIpAddress(DockerClient dockerClient) {
        return dockerClient.versionCmd().exec().getVersion().startsWith("1.9.") ? "172.17.0.1" : "172.17.42.1";
    }

    public String getSchedulerImageName() {
        return schedulerImageName;
    }

    public String getSchedulerName() {
        return schedulerName;
    }

    public int getSchedulerGuiPort() {
        return schedulerGuiPort;
    }

    public int getElasticsearchNodesCount() {
        return elasticsearchNodesCount;
    }

    public int getElasticsearchMemorySize() {
        return elasticsearchMemorySize;
    }

    public String getElasticsearchJobName() {
        return elasticsearchJobName;
    }

    public String[] getPortRanges() {
        return new String[]{
            "ports(*):[9200-9200,9300-9300]",
            "ports(*):[9201-9201,9301-9301]",
            "ports(*):[9202-9202,9302-9302]"
        };
    }

    public Integer getClusterTimeout() {
        return cluster_timeout;
    }
}

@@ -585,26 +585,25 @@
 eger cluster
-_t
+T
 imeout = 60;
@@ -1610,10 +1610,9 @@
 ster
-_t
+T
 imeo

Fix naming.