Skip to content

Commit

Permalink
chore: Bump aws-crt-swift version to 0.40.0 (#1838)
Browse files Browse the repository at this point in the history
* Bump crt version to 0.40.0

* Remove test that was built on top of bug behavior. Initialization of STSAssumeRoleAWSCredentialIdentityResolver shouldn't be throwing errors during initialization.

---------

Co-authored-by: Sichan Yoo <[email protected]>
  • Loading branch information
sichanyoo and Sichan Yoo authored Dec 3, 2024
1 parent 24bbc71 commit 5c6bfdb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import PackageDescription
// MARK: - Dynamic Content

let clientRuntimeVersion: Version = "0.98.0"
let crtVersion: Version = "0.39.0"
let crtVersion: Version = "0.40.0"

let excludeRuntimeUnitTests = false

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,6 @@ import struct AWSSDKIdentity.EnvironmentAWSCredentialIdentityResolver
import enum Smithy.ClientError

class STSAssumeRoleAWSCredentialIdentityResolverTests: XCTestCase {
func testInit() {
// For now we'll lean on CRT to test the implementation of this provider
// so just assert that we created the provider without crashing.
// Note: The underlying CRT provider throws an error if the role is invalid,
// so we'll assert that is the case here since mocking out a valid STS Assume Role is out scope for now.
// TODO: Add an integration test for this provider
XCTAssertThrowsError(try STSAssumeRoleAWSCredentialIdentityResolver(
awsCredentialIdentityResolver: try EnvironmentAWSCredentialIdentityResolver(),
roleArn: "invalid-role",
sessionName: "some-session"
))
}

func testInvalidSessionName() async throws {
XCTAssertThrowsError(try STSAssumeRoleAWSCredentialIdentityResolver(
awsCredentialIdentityResolver: try EnvironmentAWSCredentialIdentityResolver(),
Expand Down
2 changes: 1 addition & 1 deletion packageDependencies.plist
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<key>awsCRTSwiftBranch</key>
<string>main</string>
<key>awsCRTSwiftVersion</key>
<string>0.39.0</string>
<string>0.40.0</string>
<key>clientRuntimeBranch</key>
<string>main</string>
<key>clientRuntimeVersion</key>
Expand Down

0 comments on commit 5c6bfdb

Please sign in to comment.