From d04e9f1dc3947bc72f3dfc1f57eb4a7c384d14d3 Mon Sep 17 00:00:00 2001 From: sbiscigl Date: Fri, 30 May 2025 11:09:48 -0400 Subject: [PATCH] fix exeception type from RDS --- tests/aws-cpp-sdk-rds-integration-tests/RDSTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/aws-cpp-sdk-rds-integration-tests/RDSTest.cpp b/tests/aws-cpp-sdk-rds-integration-tests/RDSTest.cpp index 7035cf027c5..fbd0afa8158 100644 --- a/tests/aws-cpp-sdk-rds-integration-tests/RDSTest.cpp +++ b/tests/aws-cpp-sdk-rds-integration-tests/RDSTest.cpp @@ -226,7 +226,7 @@ namespace auto copyDBClusterSnapshotOutcome = m_rdsClient.CopyDBClusterSnapshot(copyDBClusterSnapshotRequest); ASSERT_FALSE(copyDBClusterSnapshotOutcome.IsSuccess()); - ASSERT_EQ(RDSErrors::INVALID_PARAMETER_COMBINATION, copyDBClusterSnapshotOutcome.GetError().GetErrorType()); + ASSERT_EQ(RDSErrors::D_B_CLUSTER_SNAPSHOT_NOT_FOUND_FAULT, copyDBClusterSnapshotOutcome.GetError().GetErrorType()); Aws::String preSignedUrl = ExtractPreSignedUrlFromPayload(TestingMonitoringMetrics::s_lastPayload.c_str()); QueryStringParameterCollection parameters(URI(preSignedUrl).GetQueryStringParameters()); ASSERT_NE(parameters.end(), parameters.find("Action")); @@ -251,7 +251,7 @@ namespace copyDBClusterSnapshotRequest.SetPreSignedUrl(TESTING_PRESIGNED_URL); copyDBClusterSnapshotOutcome = m_rdsClient.CopyDBClusterSnapshot(copyDBClusterSnapshotRequest); ASSERT_FALSE(copyDBClusterSnapshotOutcome.IsSuccess()); - ASSERT_EQ(RDSErrors::INVALID_PARAMETER_COMBINATION, copyDBClusterSnapshotOutcome.GetError().GetErrorType()); + ASSERT_EQ(RDSErrors::D_B_CLUSTER_SNAPSHOT_NOT_FOUND_FAULT, copyDBClusterSnapshotOutcome.GetError().GetErrorType()); preSignedUrl = ExtractPreSignedUrlFromPayload(TestingMonitoringMetrics::s_lastPayload.c_str()); ASSERT_STREQ(TESTING_PRESIGNED_URL, preSignedUrl.c_str()); }