Restricted upper limit in storage dependencies range

This commit is contained in:
Fabio Sinibaldi 2021-05-11 18:10:26 +02:00
parent 43ad32af03
commit 98161ad6e9
2 changed files with 10 additions and 4 deletions

View File

@ -60,12 +60,12 @@
<dependency> <dependency>
<groupId>org.gcube.contentmanagement</groupId> <groupId>org.gcube.contentmanagement</groupId>
<artifactId>storage-manager-core</artifactId> <artifactId>storage-manager-core</artifactId>
<version>[2.0.0, 3.0.0)</version> <version>[2.0.0, 3.0.0-SNAPSHOT)</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.gcube.contentmanagement</groupId> <groupId>org.gcube.contentmanagement</groupId>
<artifactId>storage-manager-wrapper</artifactId> <artifactId>storage-manager-wrapper</artifactId>
<version>[2.0.0, 3.0.0)</version> <version>[2.0.0, 3.0.0-SNAPSHOT)</version>
</dependency> </dependency>

View File

@ -1,5 +1,7 @@
package org.gcube.data.transfer.library; package org.gcube.data.transfer.library;
import static org.junit.Assert.assertTrue;
import java.io.File; import java.io.File;
import java.io.FileNotFoundException; import java.io.FileNotFoundException;
import java.io.IOException; import java.io.IOException;
@ -32,9 +34,12 @@ import org.junit.Test;
public class TransfererTest { public class TransfererTest {
static String hostname="https://geoserver1.dev.d4science.org"; // static String hostname="https://thredds.dev.d4science.org";
// static String scope="/gcube/devsec/devVRE";
static String hostname="https://thredds-pre-d4s.d4science.org";
static String scope="/pred4s/preprod/preVRE";
// static String nodeId="462b68c5-463f-4295-86da-37d6c0abc7ea"; // static String nodeId="462b68c5-463f-4295-86da-37d6c0abc7ea";
static String scope="/gcube/devNext/NextNext";
static DataTransferClient client; static DataTransferClient client;
@ -53,6 +58,7 @@ public class TransfererTest {
Path file=Files.createTempFile("test", ".jar"); Path file=Files.createTempFile("test", ".jar");
Files.copy(in, file, StandardCopyOption.REPLACE_EXISTING); Files.copy(in, file, StandardCopyOption.REPLACE_EXISTING);
tempFile=file.toFile(); tempFile=file.toFile();
assertTrue(tempFile.getTotalSpace()>0);
} }
@Test @Test