2021-10-12 19:01:09 +02:00
|
|
|
package org.gcube.portlets.admin.systemservicedefinition;
|
|
|
|
|
|
|
|
import static org.junit.Assert.assertTrue;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
import org.gcube.common.resources.gcore.GenericResource;
|
|
|
|
import org.gcube.portlets.admin.systemservicedefinition.is.InformationSystemUtils;
|
|
|
|
import org.gcube.portlets.admin.systemservicedefinition.shared.Constants;
|
2021-10-12 19:04:20 +02:00
|
|
|
import org.junit.Ignore;
|
2021-10-12 19:01:09 +02:00
|
|
|
import org.junit.Test;
|
|
|
|
|
|
|
|
import org.slf4j.Logger;
|
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @author Giancarlo Panichi
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
public class ISTest {
|
|
|
|
|
|
|
|
private static Logger logger = LoggerFactory.getLogger(ISTest.class);
|
|
|
|
|
2021-10-12 19:04:20 +02:00
|
|
|
@Ignore
|
|
|
|
public void findSSD() {
|
2021-10-12 19:01:09 +02:00
|
|
|
|
2021-10-12 19:03:32 +02:00
|
|
|
try {
|
|
|
|
InformationSystemUtils.retrieveSSD(Constants.SYSTEM_SERVICE_CATEGORY, Constants.DEFAULT_SCOPE,
|
|
|
|
Constants.DEFAULT_TOKEN);
|
|
|
|
assertTrue(true);
|
|
|
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
logger.error(e.getLocalizedMessage(), e);
|
|
|
|
assertTrue("Error searching the resource!", false);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2021-10-12 19:01:09 +02:00
|
|
|
|
|
|
|
}
|