storage-manager-trigger/src/test/java/org/gcube/contentmanager/storageserver/startup/ConfigurationTest.java

38 lines
797 B
Java

package org.gcube.contentmanager.storageserver.startup;
import java.util.List;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
public class ConfigurationTest {
static String scope="/d4science.research-infrastructures.eu";
static String user=null;
static String password=null;
static String serviceClass="DataTransformation";
static String serviceName="DataTransformationService";
static Configuration c=null;
@BeforeClass
public static void init(){
c=new Configuration(scope, user, password, true);
}
@Test
public void serverAccess() {
Assert.assertNotNull(c.getServerAccess());
}
@Test
public void getDTSHostsTest(){
List<String> hosts=c.retrieveDTSHosts();
for (String host:hosts){
System.out.println("host: "+host);
}
}
}