diff --git a/src/test/java/rest/TestResolvers.java b/src/test/java/rest/TestResolvers.java index 77d6fae..fb40e95 100644 --- a/src/test/java/rest/TestResolvers.java +++ b/src/test/java/rest/TestResolvers.java @@ -20,6 +20,7 @@ import org.apache.commons.io.IOUtils; import org.apache.http.HttpStatus; import org.gcube.datatransfer.resolver.applicationprofile.ApplicationProfileReader; import org.gcube.datatransfer.resolver.util.HTTPCallsUtils; +import org.junit.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -45,7 +46,7 @@ public class TestResolvers { //@Test public void testStorageHub() throws Exception{ - String storageHubId = "2019b881-083b-444a-81be-8abee4b91020"; + String storageHubId = "E_RHdYOUxBSGJ3dU1ESjEyMXNuc2ZMRm5HbXh0d1ZqaWJ4MHBaN0lOZ0dBR1dCQlVhWnVIS0hrdmN2VDhkTXk0UA=="; String url = String.format("%s/shub/%s",URI_RESOLVER_SERVICE_ENDPOINT,storageHubId); logger.info("Request to URL: "+url); URL toURL; @@ -56,6 +57,7 @@ public class TestResolvers { con.setRequestMethod("GET"); con.connect(); status = con.getResponseCode(); + System.out.println("header fields: "+con.getHeaderFields()); String fileName = getFilename(con.getHeaderFields()); System.out.println("Response status is: "+status); if(status==HttpStatus.SC_OK){ @@ -169,7 +171,7 @@ public class TestResolvers { * * @throws Exception the exception */ - //@Test + @Test public void testCatalogueResolver() throws Exception{ String entityName = "sarda-sarda"; @@ -393,7 +395,7 @@ public class TestResolvers { public static String getFilename(Map> map){ String fileName = "filename"; - List contentDispValue = map.get("content-disposition"); + List contentDispValue = map.get("Content-Disposition"); if(contentDispValue==null) return fileName;