Skip to content

Commit

Permalink
Fix up tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksloan committed Apr 23, 2024
1 parent abf6805 commit e88f0a6
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 @@ -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",
Expand Down Expand Up @@ -546,6 +546,6 @@ extension S3Tests {
date: date
)

XCTAssertEqual(presignedPost.fields["x-amz-session-token"], "EXAMPLESESSIONTOKEN")
XCTAssertEqual(presignedPost.fields["x-amz-security-token"], "EXAMPLESESSIONTOKEN")
}
}

0 comments on commit e88f0a6

Please sign in to comment.