diff --git a/src/test/java/org/gcube/datacatalogue/utillibrary/test/TestDataCatalogueLib.java b/src/test/java/org/gcube/datacatalogue/utillibrary/test/TestDataCatalogueLib.java index cd93d2d..1acad06 100644 --- a/src/test/java/org/gcube/datacatalogue/utillibrary/test/TestDataCatalogueLib.java +++ b/src/test/java/org/gcube/datacatalogue/utillibrary/test/TestDataCatalogueLib.java @@ -41,7 +41,7 @@ public class TestDataCatalogueLib { //private String scope = "/d4science.research-infrastructures.eu/gCubeApps/BiodiversityLab"; //private String testUser = "costantino_perciante"; private String testUser = "francesco.mangiacrapa"; - private String authorizationToken = "8e74a17c-92f1-405a-b591-3a6090066248-98187548"; + private String authorizationToken = ""; String subjectId = "aa_father4"; String objectId = "bb_son4"; String productName = "adatasetcreatedbycatalogue-util-library-873805063"; @@ -116,6 +116,21 @@ public class TestDataCatalogueLib { long end = System.currentTimeMillis(); LOG.debug("Time taken " + (end - init)); } + + /** + * Gets the user role by group. + * + * @return the user role by group + * @throws Exception the exception + */ + @Test + public void getDataset() throws Exception{ + DataCatalogueImpl instance = factory.getUtilsPerScope(scope); + String username = testUser; + CkanDataset dataset = instance.getDataset("sarda-sarda", username); + LOG.debug("Got dataset: " +dataset.getName() + ", with id: "+dataset.getId()); + } + /** * Gets the user role by organization.