2022-02-24 18:09:30 +01:00
|
|
|
package org.gcube.application.geoportal.common.utils.tests;
|
|
|
|
|
2022-04-01 19:11:11 +02:00
|
|
|
import org.gcube.application.geoportal.common.model.document.Project;
|
|
|
|
|
2022-02-24 18:09:30 +01:00
|
|
|
public class GCubeTest {
|
|
|
|
|
|
|
|
public static String getContext() {
|
|
|
|
String testContext=null;
|
|
|
|
testContext = System.getProperty("testContext");
|
|
|
|
if(testContext==null) {
|
|
|
|
// trying with env
|
|
|
|
testContext=System.getenv("testContext");
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2022-03-30 18:39:10 +02:00
|
|
|
// testContext = "/pred4s/preprod/preVRE";
|
2022-05-10 18:06:39 +02:00
|
|
|
testContext = "/gcube/devsec/devVRE";
|
2022-02-24 18:09:30 +01:00
|
|
|
|
|
|
|
|
|
|
|
System.out.println("TEST CONTEXT = "+testContext);
|
|
|
|
return testContext;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static boolean isTestInfrastructureEnabled() {
|
|
|
|
return getContext()!=null;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|