minor fixes
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@142026 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
fbfee9aefb
commit
3991df8d00
|
@ -893,8 +893,6 @@ public class DataCatalogueImpl implements DataCatalogue{
|
||||||
return res.getId();
|
return res.getId();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}catch(Exception e){
|
}catch(Exception e){
|
||||||
|
|
||||||
// try to update
|
// try to update
|
||||||
|
|
|
@ -15,7 +15,6 @@ import org.gcube.datacatalogue.ckanutillibrary.server.models.CkanDatasetRelation
|
||||||
import org.gcube.datacatalogue.ckanutillibrary.server.models.DatasetRelationships;
|
import org.gcube.datacatalogue.ckanutillibrary.server.models.DatasetRelationships;
|
||||||
import org.gcube.datacatalogue.ckanutillibrary.server.utils.UtilMethods;
|
import org.gcube.datacatalogue.ckanutillibrary.server.utils.UtilMethods;
|
||||||
import org.gcube.datacatalogue.ckanutillibrary.shared.RolesCkanGroupOrOrg;
|
import org.gcube.datacatalogue.ckanutillibrary.shared.RolesCkanGroupOrOrg;
|
||||||
import org.junit.Test;
|
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
import eu.trentorise.opendata.jackan.CheckedCkanClient;
|
import eu.trentorise.opendata.jackan.CheckedCkanClient;
|
||||||
|
@ -505,4 +504,12 @@ public class TestDataCatalogueLib {
|
||||||
logger.debug("Max is " + RolesCkanGroupOrOrg.getHigher(RolesCkanGroupOrOrg.ADMIN, RolesCkanGroupOrOrg.ADMIN));
|
logger.debug("Max is " + RolesCkanGroupOrOrg.getHigher(RolesCkanGroupOrOrg.ADMIN, RolesCkanGroupOrOrg.ADMIN));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//@Test
|
||||||
|
public void getUrlProduct() throws Exception{
|
||||||
|
DataCatalogueImpl instance = factory.getUtilsPerScope(scope);
|
||||||
|
String datasetName = "test_from_andrea_rossi";
|
||||||
|
String url = instance.getUrlFromDatasetIdOrName(datasetName);
|
||||||
|
logger.debug("url is " + url);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue