added and tested the 'concessioni-estere' profile
This commit is contained in:
parent
4f491425e2
commit
d1b81c9d2e
|
@ -18,15 +18,12 @@ import java.util.List;
|
|||
import java.util.Map;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import org.gcube.application.cms.cataloguebinding.CatalogueBindingPlugin;
|
||||
import org.gcube.application.cms.cataloguebinding.doaction.CatalogueCaller;
|
||||
import org.gcube.application.cms.cataloguebinding.freemarker.MappingToCatalogue;
|
||||
import org.gcube.application.cms.tests.plugins.BasicPluginTest;
|
||||
import org.gcube.application.geoportal.common.model.configuration.Archive;
|
||||
import org.gcube.application.geoportal.common.model.document.Project;
|
||||
import org.gcube.application.geoportal.common.model.useCaseDescriptor.UseCaseDescriptor;
|
||||
import org.gcube.application.geoportal.common.rest.Projects;
|
||||
import org.gcube.application.geoportal.common.utils.tests.GCubeTest;
|
||||
import org.gcube.application.geoportalcommon.geoportal.GeoportalClientCaller;
|
||||
import org.gcube.application.geoportalcommon.geoportal.ProjectsCaller;
|
||||
import org.gcube.application.geoportalcommon.shared.SearchingFilter;
|
||||
|
@ -40,7 +37,6 @@ import org.gcube.common.authorization.utils.manager.SecretManagerProvider;
|
|||
import org.gcube.common.authorization.utils.secret.GCubeSecret;
|
||||
import org.gcube.common.authorization.utils.secret.Secret;
|
||||
import org.gcube.common.scope.api.ScopeProvider;
|
||||
import org.junit.Test;
|
||||
|
||||
import com.fasterxml.jackson.core.JsonParseException;
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
|
@ -67,11 +63,14 @@ import test.TestContextConfig;
|
|||
@Slf4j
|
||||
public class GeoportalToCatalogueBatchPublisher {
|
||||
|
||||
public final static String profileID = "profiledConcessioni";
|
||||
private static final int SLEEPING_TIME = 5000;
|
||||
|
||||
//public final static String profileID = "profiledConcessioni";
|
||||
public final static String profileID = "concessioni-estere";
|
||||
|
||||
public final static Integer MAX_ITEMS = 100;
|
||||
public static int limit = 10;
|
||||
public static int offset = 100;
|
||||
public static int offset = 0;
|
||||
|
||||
static PrintWriter reportPrintWriter;
|
||||
static PrintWriter errorPrintWriter;
|
||||
|
@ -245,7 +244,7 @@ public class GeoportalToCatalogueBatchPublisher {
|
|||
+ toCatalogueJSON + "'" + CSV_DELIMITER);
|
||||
|
||||
log.info("\n###### sleeping " + counter);
|
||||
Thread.sleep(3000);
|
||||
Thread.sleep(SLEEPING_TIME);
|
||||
|
||||
} catch (Exception e) {
|
||||
log.error("ERROR on publishing project with id: " + theProject.getId());
|
||||
|
|
Loading…
Reference in New Issue