refactoring
This commit is contained in:
parent
b667110c4f
commit
a09b47a379
|
@ -6,9 +6,9 @@ import javax.xml.bind.annotation.XmlAccessType;
|
||||||
import javax.xml.bind.annotation.XmlAccessorType;
|
import javax.xml.bind.annotation.XmlAccessorType;
|
||||||
import javax.xml.bind.annotation.XmlRootElement;
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
|
||||||
import org.gcube.spatial.data.sdi.model.services.GeoNetworkServiceDefinition;
|
import org.gcube.spatial.data.sdi.model.service.GeoNetworkDescriptor;
|
||||||
import org.gcube.spatial.data.sdi.model.services.GeoServerDefinition;
|
import org.gcube.spatial.data.sdi.model.service.GeoServerDescriptor;
|
||||||
import org.gcube.spatial.data.sdi.model.services.ThreddsDefinition;
|
import org.gcube.spatial.data.sdi.model.service.ThreddsDescriptor;
|
||||||
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.NoArgsConstructor;
|
import lombok.NoArgsConstructor;
|
||||||
|
@ -32,10 +32,10 @@ public class ScopeConfiguration {
|
||||||
private String contextName;
|
private String contextName;
|
||||||
|
|
||||||
@NonNull
|
@NonNull
|
||||||
private List<GeoNetworkServiceDefinition> geonetworkConfiguration;
|
private List<GeoNetworkDescriptor> geonetworkConfiguration;
|
||||||
@NonNull
|
@NonNull
|
||||||
private List<GeoServerDefinition> geoserverClusterConfiguration;
|
private List<GeoServerDescriptor> geoserverClusterConfiguration;
|
||||||
@NonNull
|
@NonNull
|
||||||
private List<ThreddsDefinition> threddsConfiguration;
|
private List<ThreddsDescriptor> threddsConfiguration;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,14 +4,14 @@ import org.junit.BeforeClass;
|
||||||
|
|
||||||
public class BasicScopedTests {
|
public class BasicScopedTests {
|
||||||
|
|
||||||
String sdiHostname="sdi-t.pre.d4science.org";
|
static String sdiHostname="sdi-t.pre.d4science.org";
|
||||||
String scope ="/pred4s/preprod/preVRE";
|
static String scope ="/pred4s/preprod/preVRE";
|
||||||
//
|
//
|
||||||
// String sdiHostname="sdi-d-d4s.d4science.org";
|
// String sdiHostname="sdi-d-d4s.d4science.org";
|
||||||
// String scope = "/gcube/devsec/devVRE";
|
// String scope = "/gcube/devsec/devVRE";
|
||||||
|
|
||||||
@BeforeClass
|
@BeforeClass
|
||||||
public void setScope(){
|
public static void setScope(){
|
||||||
TokenSetter.set(scope);
|
TokenSetter.set(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -14,4 +14,10 @@ public class SDITests extends BasicScopedTests{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void getScopeHealth() throws RemoteException {
|
||||||
|
SDIManagement sdi=SDIAbstractPlugin.management().build();
|
||||||
|
System.out.println(sdi.getReport());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,41 +0,0 @@
|
||||||
package org.gcube.spatial.data.sdi.model;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import javax.xml.bind.annotation.XmlAccessType;
|
|
||||||
import javax.xml.bind.annotation.XmlAccessorType;
|
|
||||||
import javax.xml.bind.annotation.XmlRootElement;
|
|
||||||
|
|
||||||
import org.gcube.spatial.data.sdi.model.service.GeoNetworkDescriptor;
|
|
||||||
import org.gcube.spatial.data.sdi.model.service.GeoServerDescriptor;
|
|
||||||
import org.gcube.spatial.data.sdi.model.service.ThreddsDescriptor;
|
|
||||||
|
|
||||||
import lombok.Getter;
|
|
||||||
import lombok.NoArgsConstructor;
|
|
||||||
import lombok.NonNull;
|
|
||||||
import lombok.RequiredArgsConstructor;
|
|
||||||
import lombok.Setter;
|
|
||||||
import lombok.ToString;
|
|
||||||
|
|
||||||
@Getter
|
|
||||||
@Setter
|
|
||||||
@ToString
|
|
||||||
@NoArgsConstructor
|
|
||||||
@RequiredArgsConstructor
|
|
||||||
@XmlRootElement
|
|
||||||
@XmlAccessorType(XmlAccessType.FIELD)
|
|
||||||
public class ScopeConfiguration {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@NonNull
|
|
||||||
private String contextName;
|
|
||||||
|
|
||||||
@NonNull
|
|
||||||
private List<GeoNetworkDescriptor> geonetworkConfiguration;
|
|
||||||
@NonNull
|
|
||||||
private List<GeoServerDescriptor> geoserverClusterConfiguration;
|
|
||||||
@NonNull
|
|
||||||
private List<ThreddsDescriptor> threddsConfiguration;
|
|
||||||
|
|
||||||
}
|
|
Loading…
Reference in New Issue