Skip to content

Commit

Permalink
comment out optional listing of buckets #6783
Browse files Browse the repository at this point in the history
  • Loading branch information
pdurbin committed Dec 6, 2023
1 parent 811d79a commit a81ad72
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions src/test/java/edu/harvard/iq/dataverse/api/S3AccessIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,15 @@ public static void setUp() {
.withCredentials(new AWSStaticCredentialsProvider(new BasicAWSCredentials(accessKeyMinio, secretKeyMinio)))
.withEndpointConfiguration(new EndpointConfiguration("http://localhost:9000", Regions.US_EAST_1.getName())).build();

System.out.println("buckets on LocalStack before attempting to create " + BUCKET_NAME);
for (Bucket bucket : s3localstack.listBuckets()) {
System.out.println("bucket: " + bucket);
}

System.out.println("buckets on MinIO before attempting to create " + BUCKET_NAME);
for (Bucket bucket : s3minio.listBuckets()) {
System.out.println("bucket: " + bucket);
}

// System.out.println("buckets on LocalStack before attempting to create " + BUCKET_NAME);
// for (Bucket bucket : s3localstack.listBuckets()) {
// System.out.println("bucket: " + bucket);
// }
//
// System.out.println("buckets on MinIO before attempting to create " + BUCKET_NAME);
// for (Bucket bucket : s3minio.listBuckets()) {
// System.out.println("bucket: " + bucket);
// }
// create bucket if it doesn't exist
// Note that we create the localstack bucket with conf/localstack/buckets.sh
// because we haven't figured out how to create it properly in Java.
Expand Down

0 comments on commit a81ad72

Please sign in to comment.