diff --git a/pom.xml b/pom.xml index 451404f..9ba3b14 100644 --- a/pom.xml +++ b/pom.xml @@ -35,7 +35,7 @@ org.gcube.distribution gcube-bom - 2.4.1-SNAPSHOT + 2.4.1 pom import diff --git a/src/test/java/org/gcube/data/access/fs/Items.java b/src/test/java/org/gcube/data/access/fs/Items.java index 3b3322b..e382679 100644 --- a/src/test/java/org/gcube/data/access/fs/Items.java +++ b/src/test/java/org/gcube/data/access/fs/Items.java @@ -50,22 +50,18 @@ public class Items { @BeforeClass public static void setUp(){ - try(InputStream is = new FileInputStream(new File(propFile))){ - Properties prop = new Properties(); - prop.load(is); - String value =(String)prop.get(tokens); - String[] splitValue = value.split(","); - String token = splitValue[1]; - //SecretManagerProvider.instance.set(new GCubeSecret(token)); - - SecurityTokenProvider.instance.set(token); - ScopeProvider.instance.set(splitValue[0]); - } catch (Exception e) { - e.printStackTrace(); - } + SecurityTokenProvider.instance.set("319279e3-c111-4f6d-be03-d50e8b905293-98187548"); + ScopeProvider.instance.set("/gcube/devsec"); } + + @Test + public void addurl() throws Exception{ + StorageHubClient shc = new StorageHubClient(); + FolderContainer folder = shc.open("bc1c9525-43f7-4565-b5ea-0a0f9d7853a0").asFolder(); + folder.addUrl(new URL("https://www.google.it"), "google", "ggogle url").get(); + } @Test public void addUserToVRe() throws StorageHubException {