updated bom
This commit is contained in:
parent
2f32626292
commit
a215fb9238
2
pom.xml
2
pom.xml
|
@ -35,7 +35,7 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.gcube.distribution</groupId>
|
<groupId>org.gcube.distribution</groupId>
|
||||||
<artifactId>gcube-bom</artifactId>
|
<artifactId>gcube-bom</artifactId>
|
||||||
<version>2.4.1-SNAPSHOT</version>
|
<version>2.4.1</version>
|
||||||
<type>pom</type>
|
<type>pom</type>
|
||||||
<scope>import</scope>
|
<scope>import</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
|
@ -50,23 +50,19 @@ public class Items {
|
||||||
@BeforeClass
|
@BeforeClass
|
||||||
public static void setUp(){
|
public static void setUp(){
|
||||||
|
|
||||||
try(InputStream is = new FileInputStream(new File(propFile))){
|
SecurityTokenProvider.instance.set("319279e3-c111-4f6d-be03-d50e8b905293-98187548");
|
||||||
Properties prop = new Properties();
|
ScopeProvider.instance.set("/gcube/devsec");
|
||||||
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();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@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
|
@Test
|
||||||
public void addUserToVRe() throws StorageHubException {
|
public void addUserToVRe() throws StorageHubException {
|
||||||
StorageHubClient shc = new StorageHubClient();
|
StorageHubClient shc = new StorageHubClient();
|
||||||
|
|
Loading…
Reference in New Issue