Skip to content

Commit fd243af

Browse files
committed
fix exeception type from RDS
1 parent a876c93 commit fd243af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/aws-cpp-sdk-rds-integration-tests/RDSTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ namespace
226226

227227
auto copyDBClusterSnapshotOutcome = m_rdsClient.CopyDBClusterSnapshot(copyDBClusterSnapshotRequest);
228228
ASSERT_FALSE(copyDBClusterSnapshotOutcome.IsSuccess());
229-
ASSERT_EQ(RDSErrors::INVALID_PARAMETER_COMBINATION, copyDBClusterSnapshotOutcome.GetError().GetErrorType());
229+
ASSERT_EQ(RDSErrors::D_B_CLUSTER_SNAPSHOT_NOT_FOUND_FAULT, copyDBClusterSnapshotOutcome.GetError().GetErrorType());
230230
Aws::String preSignedUrl = ExtractPreSignedUrlFromPayload(TestingMonitoringMetrics::s_lastPayload.c_str());
231231
QueryStringParameterCollection parameters(URI(preSignedUrl).GetQueryStringParameters());
232232
ASSERT_NE(parameters.end(), parameters.find("Action"));
@@ -251,7 +251,7 @@ namespace
251251
copyDBClusterSnapshotRequest.SetPreSignedUrl(TESTING_PRESIGNED_URL);
252252
copyDBClusterSnapshotOutcome = m_rdsClient.CopyDBClusterSnapshot(copyDBClusterSnapshotRequest);
253253
ASSERT_FALSE(copyDBClusterSnapshotOutcome.IsSuccess());
254-
ASSERT_EQ(RDSErrors::INVALID_PARAMETER_COMBINATION, copyDBClusterSnapshotOutcome.GetError().GetErrorType());
254+
ASSERT_EQ(RDSErrors::D_B_CLUSTER_SNAPSHOT_NOT_FOUND_FAULT, copyDBClusterSnapshotOutcome.GetError().GetErrorType());
255255
preSignedUrl = ExtractPreSignedUrlFromPayload(TestingMonitoringMetrics::s_lastPayload.c_str());
256256
ASSERT_STREQ(TESTING_PRESIGNED_URL, preSignedUrl.c_str());
257257
}

0 commit comments

Comments
 (0)