mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-03 17:49:40 +00:00
added failing test case for bug 2676, S3 uploader producing incorrect URLs
This commit is contained in:
1 parent
fe3ce9f107
commit
c48407634d
1 file changed
+7
-3
+7
-3
@@ -1,5 +1,7 @@
|
||||
package com.sap.sse.filestorage.services.test;
|
||||
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.net.URI;
|
||||
@@ -36,8 +38,10 @@ public class AmazonS3Test {
|
||||
|
||||
InputStream downloadStream = uri.toURL().openStream();
|
||||
stream = getClass().getClassLoader().getResourceAsStream(teamImageFile);
|
||||
IOUtils.contentEquals(downloadStream, stream);
|
||||
|
||||
storageService.removeFile(uri);
|
||||
try {
|
||||
assertTrue(IOUtils.contentEquals(downloadStream, stream));
|
||||
} finally {
|
||||
storageService.removeFile(uri);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user