-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: Test `when bucket is empty, directory stream should be empty * chore: Test `FileSystems$newFileSystem(URI, Map) should create bucket when name is valid` [skip ci] * chore: Make `newFileSystem(URI uri, Map<String, ?> env)` support s3x provider * chore: Delete FileSystemsTest unit test - noop * fix: Avoid closing the client on readaheadbytechannel close
- Loading branch information
Showing
6 changed files
with
64 additions
and
50 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
src/integrationTest/java/software/amazon/nio/spi/s3/FileSystemsNewFSTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package software.amazon.nio.spi.s3; | ||
|
||
import java.io.IOException; | ||
import java.net.URI; | ||
import java.nio.file.FileSystems; | ||
import java.util.Map; | ||
import org.junit.jupiter.api.DisplayName; | ||
import org.junit.jupiter.api.Test; | ||
|
||
@DisplayName("FileSystems$newFileSystem(URI, Map) should") | ||
public class FileSystemsNewFSTest { | ||
|
||
@Test | ||
@DisplayName("create bucket when name is valid") | ||
public void createBucket() throws IOException { | ||
String bucketLocation = Containers.localStackConnectionEndpoint() + "/fresh-bucket"; | ||
FileSystems.newFileSystem( | ||
URI.create(bucketLocation), | ||
Map.of("locationConstraint", "us-east-1") | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 0 additions & 32 deletions
32
src/test/java/software/amazon/nio/spi/s3/FileSystemsTest.java
This file was deleted.
Oops, something went wrong.