From 2d16ef88864ae30c3702962a4e7ef2be83a066dd Mon Sep 17 00:00:00 2001 From: Adam Fowler Date: Mon, 16 Dec 2024 09:26:51 +0000 Subject: [PATCH] More virtual addressing fixes --- Tests/SotoTests/Services/S3/S3ExtensionTests.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Tests/SotoTests/Services/S3/S3ExtensionTests.swift b/Tests/SotoTests/Services/S3/S3ExtensionTests.swift index 7f6b3e49a5..6e71e111c6 100644 --- a/Tests/SotoTests/Services/S3/S3ExtensionTests.swift +++ b/Tests/SotoTests/Services/S3/S3ExtensionTests.swift @@ -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", @@ -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)