Skip to content

Commit 1fbbb47

Browse files
committed
tests
1 parent 39841e3 commit 1fbbb47

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
unzip l4_sample.zip
3939
4040
- name: Build
41-
run: mvn -B package --file pom.xml -DargLine="-Xmx6g"
41+
run: mvn compile
4242

4343
- name: Test
4444
env:

src/test/java/com/scalableminds/zarrjava/ZarrTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
import static org.junit.Assert.assertArrayEquals;
44
import static org.junit.Assert.assertEquals;
55

6+
import com.amazonaws.auth.AWSStaticCredentialsProvider;
7+
import com.amazonaws.auth.AnonymousAWSCredentials;
68
import com.amazonaws.auth.profile.ProfileCredentialsProvider;
79
import com.amazonaws.services.s3.AmazonS3ClientBuilder;
810
import com.fasterxml.jackson.databind.ObjectMapper;
@@ -76,7 +78,7 @@ public void testFileSystemStores() throws IOException, ZarrException {
7678
public void testS3Store() throws IOException, ZarrException {
7779
S3Store s3Store = new S3Store(AmazonS3ClientBuilder.standard()
7880
.withRegion("eu-west-1")
79-
.withCredentials(new ProfileCredentialsProvider())
81+
.withCredentials(new AWSStaticCredentialsProvider(new AnonymousAWSCredentials()))
8082
.build(), "static.webknossos.org", "data");
8183
System.out.println(Array.open(s3Store.resolve("zarr_v3", "l4_sample", "color", "1")));
8284
}

0 commit comments

Comments
 (0)