Skip to content

Commit

Permalink
Enable for running with DNS based endpoints
Browse files Browse the repository at this point in the history
Now tests can be run by setting SERVER_ENDPOINT both with IP
and DNS based addresses like 192.168.0.142:22000 and localhost:22000

Signed-off-by: Shubhendu Ram Tripathi <shubhendu@minio.io>
  • Loading branch information
shtripat committed Apr 23, 2024
1 parent 82ace53 commit 3869c46
Show file tree
Hide file tree
Showing 14 changed files with 4 additions and 0 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,7 @@ public static void main(String[] args) throws Exception, IOException, NoSuchAlgo
s3Client = S3Client
.builder()
.endpointOverride(URI.create(endpoint))
.forcePathStyle(true)
.credentialsProvider(StaticCredentialsProvider.create(credentials))
.region(region)
.httpClient(sdkHttpClient)
Expand All @@ -399,6 +400,7 @@ public static void main(String[] args) throws Exception, IOException, NoSuchAlgo
s3AsyncClient = S3AsyncClient
.builder()
.endpointOverride(URI.create(endpoint))
.forcePathStyle(true)
.credentialsProvider(StaticCredentialsProvider.create(credentials))
.region(region)
.httpClient(sdkAsyncHttpClient)
Expand All @@ -407,12 +409,14 @@ public static void main(String[] args) throws Exception, IOException, NoSuchAlgo
s3Client = S3Client
.builder()
.endpointOverride(URI.create(endpoint))
.forcePathStyle(true)
.credentialsProvider(StaticCredentialsProvider.create(credentials))
.region(region)
.build();
s3AsyncClient = S3AsyncClient
.builder()
.endpointOverride(URI.create(endpoint))
.forcePathStyle(true)
.credentialsProvider(StaticCredentialsProvider.create(credentials))
.region(region)
.build();
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 3869c46

Please sign in to comment.