Skip to content

Commit

Permalink
Do not exclude buckets called "test"
Browse files Browse the repository at this point in the history
Not sure where this bit of code came from, but if a bucket was named
"test", S3Mock would have ignored its existence when starting...

Fixes #1224
  • Loading branch information
afranken committed Jul 26, 2023
1 parent f7a1576 commit 9354dd6
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Objects;
import org.apache.commons.io.FileUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand Down Expand Up @@ -77,7 +76,7 @@ BucketStore bucketStore(StoreProperties properties, File rootFolder, List<String

@Bean
List<String> bucketNames(File rootFolder) {
var buckets = rootFolder.listFiles((File dir, String name) -> !Objects.equals(name, "test"));
var buckets = rootFolder.listFiles();
if (buckets != null) {
return Arrays.stream(buckets).map(File::getName).toList();
} else {
Expand Down

0 comments on commit 9354dd6

Please sign in to comment.