From e88f0a6bdf60d9ddadd299a935bf064e10610283 Mon Sep 17 00:00:00 2001 From: Nick Sloan Date: Tue, 23 Apr 2024 03:04:14 +0000 Subject: [PATCH] Fix up tests --- 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 fc704e4411..b78694ceaf 100644 --- a/Tests/SotoTests/Services/S3/S3ExtensionTests.swift +++ b/Tests/SotoTests/Services/S3/S3ExtensionTests.swift @@ -499,8 +499,8 @@ extension S3Tests { XCTAssertEqual(credential, expectedCredential) } - func testSessionToken() { - let clent = AWSClient( + func testGeneratePresignedPostWithSessionToken() async throws { + let client = AWSClient( credentialProvider: .static( accessKeyId: "AKIAIOSFODNN7EXAMPLE", secretAccessKey: "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY", @@ -546,6 +546,6 @@ extension S3Tests { date: date ) - XCTAssertEqual(presignedPost.fields["x-amz-session-token"], "EXAMPLESESSIONTOKEN") + XCTAssertEqual(presignedPost.fields["x-amz-security-token"], "EXAMPLESESSIONTOKEN") } }