-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #290 from jrslv/system-tests-refactoring
Refactored system tests to use Configuration object
- Loading branch information
Showing
13 changed files
with
148 additions
and
79 deletions.
There are no files selected for viewing
55 changes: 55 additions & 0 deletions
55
system-test/src/main/java/org/apache/mesos/elasticsearch/systemtest/Configuration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
package org.apache.mesos.elasticsearch.systemtest; | ||
|
||
/** | ||
* SystemTest configuration object | ||
*/ | ||
public class Configuration { | ||
private String executorImageName = "mesos/elasticsearch-executor"; | ||
private String schedulerImageName = "mesos/elasticsearch-scheduler"; | ||
private String schedulerName = "elasticsearch-scheduler"; | ||
private int schedulerGuiPort = 31100; | ||
private int privateRegistryPort = 15000; | ||
private int elasticsearchNodesCount = 3; | ||
private int elasticsearchMemorySize = 256; | ||
private String elasticsearchJobName = "esdemo"; | ||
|
||
public String getExecutorImageName() { | ||
return executorImageName; | ||
} | ||
|
||
public String getSchedulerImageName() { | ||
return schedulerImageName; | ||
} | ||
|
||
public String getSchedulerName() { | ||
return schedulerName; | ||
} | ||
|
||
public int getSchedulerGuiPort() { | ||
return schedulerGuiPort; | ||
} | ||
|
||
public int getPrivateRegistryPort() { | ||
return privateRegistryPort; | ||
} | ||
|
||
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]" | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.