File tree Expand file tree Collapse file tree
src/test/java/org/janelia/saalfeldlab/n5/universe/storage Expand file tree Collapse file tree Original file line number Diff line number Diff line change 114114 <releaseProfiles >sign,deploy-to-scijava</releaseProfiles >
115115
116116 <n5 .version>4.0.1</n5 .version>
117- <n5-aws-s3 .version>5.0.0 </n5-aws-s3 .version>
117+ <n5-aws-s3 .version>5.0.1 </n5-aws-s3 .version>
118118 <n5-blosc .version>2.0.0</n5-blosc .version>
119119 <n5-google-cloud .version>6.0.0</n5-google-cloud .version>
120120 <n5-hdf5 .version>3.0.0</n5-hdf5 .version>
Original file line number Diff line number Diff line change 1919import static org .janelia .saalfeldlab .n5 .s3 .N5AmazonS3Tests .tempBucketName ;
2020import static org .janelia .saalfeldlab .n5 .s3 .N5AmazonS3Tests .tempContainerPath ;
2121import static org .junit .Assert .assertTrue ;
22+ import static org .junit .Assume .assumeTrue ;
2223
2324@ Category ({AmazonTest .class })
2425public abstract class N5AmazonS3FactoryTest extends N5StorageTests .N5FactoryTest {
@@ -38,6 +39,14 @@ public abstract class N5AmazonS3FactoryTest extends N5StorageTests.N5FactoryTest
3839
3940 return AmazonS3KeyValueAccess .class ;
4041 }
42+
43+ @ BeforeClass
44+ public static void before () {
45+
46+ MockS3Factory .getOrCreateS3 ();
47+ assumeTrue ("mock s3 server not running" , MockS3Factory .isMinioServerRunning ());
48+ }
49+
4150
4251 @ AfterClass
4352 public static void removeTestBucket () {
Original file line number Diff line number Diff line change 2020import static org .janelia .saalfeldlab .n5 .s3 .N5AmazonS3Tests .tempBucketName ;
2121import static org .janelia .saalfeldlab .n5 .s3 .N5AmazonS3Tests .tempContainerPath ;
2222import static org .junit .Assert .assertTrue ;
23+ import static org .junit .Assume .assumeTrue ;
2324
2425@ Category ({AmazonTest .class })
2526public abstract class Zarr2AmazonS3FactoryTest extends ZarrStorageTests .Zarr2FactoryTest {
@@ -35,6 +36,13 @@ public abstract class Zarr2AmazonS3FactoryTest extends ZarrStorageTests.Zarr2Fac
3536 return s3 != null ? s3 : (s3 = super .createS3 (uri ));
3637 }
3738 };
39+
40+ @ BeforeClass
41+ public static void before () {
42+
43+ MockS3Factory .getOrCreateS3 ();
44+ assumeTrue ("mock s3 server not running" , MockS3Factory .isMinioServerRunning ());
45+ }
3846
3947 @ Override public Class <?> getBackendTargetClass () {
4048
Original file line number Diff line number Diff line change 2020import static org .janelia .saalfeldlab .n5 .s3 .N5AmazonS3Tests .tempBucketName ;
2121import static org .janelia .saalfeldlab .n5 .s3 .N5AmazonS3Tests .tempContainerPath ;
2222import static org .junit .Assert .assertTrue ;
23+ import static org .junit .Assume .assumeTrue ;
2324
2425@ Category ({AmazonTest .class })
2526public abstract class Zarr3AmazonS3FactoryTest extends ZarrStorageTests .Zarr3FactoryTest {
@@ -35,6 +36,13 @@ public abstract class Zarr3AmazonS3FactoryTest extends ZarrStorageTests.Zarr3Fac
3536 return s3 != null ? s3 : (s3 = super .createS3 (uri ));
3637 }
3738 };
39+
40+ @ BeforeClass
41+ public static void before () {
42+
43+ MockS3Factory .getOrCreateS3 ();
44+ assumeTrue ("mock s3 server not running" , MockS3Factory .isMinioServerRunning ());
45+ }
3846
3947 @ Override public Class <?> getBackendTargetClass () {
4048
You can’t perform that action at this time.
0 commit comments