git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-analysis/DataMiner@169188 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
add37f7a1d
commit
c829d56e4d
|
@ -49,6 +49,7 @@ public class ConfigurationManager {
|
|||
options.load(is);
|
||||
is.close();
|
||||
maxComputations = Integer.parseInt(options.getProperty("maxcomputations"));
|
||||
logger.info("setting max computation to {}",maxComputations);
|
||||
useStorage = Boolean.parseBoolean(options.getProperty("saveond4sstorage"));
|
||||
simulationMode=Boolean.parseBoolean(options.getProperty("simulationMode"));
|
||||
}
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
maxcomputations=4
|
||||
maxcomputations=1
|
||||
saveond4sstorage=true
|
||||
simulationMode=false
|
|
@ -17,21 +17,21 @@ import org.junit.Test;
|
|||
|
||||
public class AlgorithmTest {
|
||||
|
||||
List<String> executeOnly = Arrays.asList();
|
||||
List<String> executeOnly = Arrays.asList("#BIONYM", "#AQUAMAPS_SUITABLE", "#AQUAMAPS_SUITABLE 21 sp", "#BIONYM1024","#CMSY2");
|
||||
|
||||
@Test
|
||||
public void executeAlgorithmsFromFile() throws Exception{
|
||||
|
||||
String env = "dev";
|
||||
|
||||
Properties prop = new Properties();
|
||||
/*Properties prop = new Properties();
|
||||
prop.load(AlgorithmTest.class.getResourceAsStream("/test_params.properties"));
|
||||
|
||||
*/
|
||||
|
||||
String protocol = "http";
|
||||
String hostname = prop.getProperty(env+".host");
|
||||
String token = prop.getProperty(env+".token");
|
||||
String layerID = prop.getProperty(env+".layer");
|
||||
String hostname = "dataminer-genericworkers.d4science.org";
|
||||
String token = "***REMOVED***";
|
||||
String layerID = "08ee0d70-4d8b-4f42-8b06-d709482bca95";
|
||||
|
||||
Iterator<String> uris = getUrisIterator();
|
||||
|
||||
|
@ -43,7 +43,7 @@ public class AlgorithmTest {
|
|||
if (nextLine.startsWith("#"))
|
||||
algorithmName = nextLine;
|
||||
else{
|
||||
if (!(executeOnly.isEmpty() || executeOnly.contains(algorithmName))) continue;
|
||||
if (executeOnly.contains(algorithmName)) continue;
|
||||
String callUrl = nextLine.replace("{PROTOCOL}", protocol).replace("{HOST}", hostname).replace("{TOKEN}", token).replace("{LAYERID}", layerID);
|
||||
try{
|
||||
long start = System.currentTimeMillis();
|
||||
|
|
Loading…
Reference in New Issue