From 5c6bfdb9295cd554df3403fc643d922aa79dad9c Mon Sep 17 00:00:00 2001 From: Chan <55515281+sichanyoo@users.noreply.github.com> Date: Tue, 3 Dec 2024 15:11:42 -0800 Subject: [PATCH] chore: Bump aws-crt-swift version to 0.40.0 (#1838) * 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 --- Package.swift | 2 +- ...sumeRoleAWSCredentialIdentityResolverTests.swift | 13 ------------- packageDependencies.plist | 2 +- 3 files changed, 2 insertions(+), 15 deletions(-) diff --git a/Package.swift b/Package.swift index 4a61df15423..4a9c4878396 100644 --- a/Package.swift +++ b/Package.swift @@ -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 diff --git a/Sources/Core/AWSSDKIdentity/Tests/AWSSDKIdentityTests/AWSCredentialIdentityResolverTests/STSAssumeRoleAWSCredentialIdentityResolverTests.swift b/Sources/Core/AWSSDKIdentity/Tests/AWSSDKIdentityTests/AWSCredentialIdentityResolverTests/STSAssumeRoleAWSCredentialIdentityResolverTests.swift index 8d621a4758b..a7185408931 100644 --- a/Sources/Core/AWSSDKIdentity/Tests/AWSSDKIdentityTests/AWSCredentialIdentityResolverTests/STSAssumeRoleAWSCredentialIdentityResolverTests.swift +++ b/Sources/Core/AWSSDKIdentity/Tests/AWSSDKIdentityTests/AWSCredentialIdentityResolverTests/STSAssumeRoleAWSCredentialIdentityResolverTests.swift @@ -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(), diff --git a/packageDependencies.plist b/packageDependencies.plist index 43359f906a3..6a91158b742 100644 --- a/packageDependencies.plist +++ b/packageDependencies.plist @@ -5,7 +5,7 @@ awsCRTSwiftBranch main awsCRTSwiftVersion - 0.39.0 + 0.40.0 clientRuntimeBranch main clientRuntimeVersion