2022-02-24 18:09:30 +01:00
|
|
|
package org.gcube.application.geoportal.common.utils.tests;
|
|
|
|
|
|
|
|
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-07-05 17:24:52 +02:00
|
|
|
// InterfaceConstants.SERVICE_CLASS="Application";
|
|
|
|
// InterfaceConstants.SERVICE_NAME="GeoPortal";
|
2022-06-30 17:57:35 +02:00
|
|
|
|
2022-12-06 15:15:02 +01:00
|
|
|
|
2022-12-14 15:08:14 +01:00
|
|
|
testContext = "/pred4s/preprod/preVRE";
|
2022-12-06 15:15:02 +01:00
|
|
|
// testContext = "/d4science.research-infrastructures.eu/D4OS/GNA";
|
2023-01-30 12:01:56 +01: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;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|