Skip to content

Commit

Permalink
More virtual addressing fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Dec 16, 2024
1 parent 57df02e commit f5a91d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Tests/SotoTests/Services/S3/S3ExtensionTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ extension S3Tests {
try await self.testS3VirtualAddressing("https://s3.us-east-1.amazonaws.com/bucket", s3URL: "https://bucket.s3.us-east-1.amazonaws.com/")
try await self.testS3VirtualAddressing(
"https://s3.us-east-1.amazonaws.com/bucket//filename",
s3URL: "https://bucket.s3.us-east-1.amazonaws.com/filename"
s3URL: "https://bucket.s3.us-east-1.amazonaws.com//filename"
)
try await self.testS3VirtualAddressing(
"https://s3.us-east-1.amazonaws.com/bucket/filename?test=test&test2=test2",
Expand All @@ -372,8 +372,8 @@ extension S3Tests {
"https://s3.us-east-1.amazonaws.com/bucket/file%20name",
s3URL: "https://bucket.s3.us-east-1.amazonaws.com/file%20name"
)
try await self.testS3VirtualAddressing("http://localhost:8000/bucket/filename", s3URL: "http://localhost:8000/bucket/filename")
try await self.testS3VirtualAddressing("http://localhost:8000/bucket//filename", s3URL: "http://localhost:8000/bucket//filename")
try await self.testS3VirtualAddressing("http://localhost:8000/bucket1/filename", s3URL: "http://localhost:8000/bucket1/filename")
try await self.testS3VirtualAddressing("http://localhost:8000/bucket2//filename", s3URL: "http://localhost:8000/bucket2//filename")
try await self.testS3VirtualAddressing("https://localhost:8000/bucket/file%20name", s3URL: "https://localhost:8000/bucket/file%20name")

let s3 = Self.s3.with(options: .s3ForceVirtualHost)
Expand Down

0 comments on commit f5a91d0

Please sign in to comment.