updated bom

This commit is contained in:
lucio 2024-10-04 14:53:49 +02:00
parent 2f32626292
commit a215fb9238
2 changed files with 10 additions and 14 deletions

View File

@ -35,7 +35,7 @@
<dependency>
<groupId>org.gcube.distribution</groupId>
<artifactId>gcube-bom</artifactId>
<version>2.4.1-SNAPSHOT</version>
<version>2.4.1</version>
<type>pom</type>
<scope>import</scope>
</dependency>

View File

@ -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 {