gcube-sdi-suite/sdi-library/src/test/java/org/gcube/spatial/data/sdi/SDITests.java

44 lines
1.4 KiB
Java
Raw Normal View History

2021-02-16 16:10:52 +01:00
package org.gcube.spatial.data.sdi;
2021-03-17 15:38:54 +01:00
import static org.junit.Assume.assumeTrue;
2021-03-04 16:44:56 +01:00
2021-03-17 15:38:54 +01:00
import java.net.MalformedURLException;
2021-03-04 16:44:56 +01:00
2021-03-17 15:38:54 +01:00
import org.gcube.sdi.test.GCubeSDITest;
import org.gcube.spatial.data.clients.geoserver.GSRESTClient;
2021-02-18 18:12:58 +01:00
import org.gcube.spatial.data.clients.model.engine.Engine;
2021-02-16 16:10:52 +01:00
import org.gcube.spatial.data.sdi.interfaces.SDIManagement;
import org.gcube.spatial.data.sdi.model.faults.RemoteException;
import org.gcube.spatial.data.sdi.plugins.SDIAbstractPlugin;
import org.junit.Test;
2021-03-18 18:29:52 +01:00
public class SDITests extends GCubeSDITest{
2021-02-16 16:10:52 +01:00
@Test
2021-02-17 16:40:34 +01:00
public void getScopeConfiguration() throws RemoteException, IllegalArgumentException, MalformedURLException {
2021-03-17 15:38:54 +01:00
assumeTrue(isTestInfrastructureEnabled());
2021-02-18 18:12:58 +01:00
SDIManagement sdi=SDIAbstractPlugin.management().build();
2021-02-16 16:10:52 +01:00
System.out.println(sdi.getConfiguration());
}
2021-02-18 18:12:58 +01:00
@Test
public void getScopeHealth() throws RemoteException {
2021-03-17 15:38:54 +01:00
assumeTrue(isTestInfrastructureEnabled());
2021-02-18 18:12:58 +01:00
SDIManagement sdi=SDIAbstractPlugin.management().build();
System.out.println(sdi.getReport());
}
2021-02-16 16:16:29 +01:00
2021-02-18 18:12:58 +01:00
@Test
public void getGS() throws Exception {
2021-03-17 15:38:54 +01:00
assumeTrue(isTestInfrastructureEnabled());
2021-02-18 18:12:58 +01:00
System.out.println(
SDIAbstractPlugin.management().build().getClientByEngineId(Engine.GS_ENGINE).getInfo());
2021-04-09 18:15:10 +02:00
// GSRESTClient gs=(GSRESTClient) SDIAbstractPlugin.management().build().getClientByEngineId(Engine.GS_ENGINE).getRESTClient();
// gs.getWorkspaces();
//
2021-02-18 18:12:58 +01:00
}
2021-02-16 16:10:52 +01:00
}