Skip to content

Commit e1b34b6

Browse files
authored
Update smoke tests for error logging on failures (#3656)
1 parent 033391a commit e1b34b6

File tree

21 files changed

+21
-21
lines changed

21 files changed

+21
-21
lines changed

generated/smoke-tests/apigateway/APIGatewaySmokeTests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ TEST_F(APIGatewaySmokeTestSuite, GetDomainNamesSuccess )
4141

4242
GetDomainNamesRequest input;
4343
auto outcome = clientSp->GetDomainNames(input);
44-
EXPECT_TRUE( outcome.IsSuccess());
44+
EXPECT_TRUE( outcome.IsSuccess()) << outcome.GetError().GetExceptionName() << " - " << outcome.GetError().GetMessage();
4545
}
4646
}

generated/smoke-tests/application-autoscaling/ApplicationAutoScalingSmokeTests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@ TEST_F(ApplicationAutoScalingSmokeTestSuite, DescribeScalableTargetsSuccess )
4242
DescribeScalableTargetsRequest input;
4343
input.SetServiceNamespace(ServiceNamespace::ec2);
4444
auto outcome = clientSp->DescribeScalableTargets(input);
45-
EXPECT_TRUE( outcome.IsSuccess());
45+
EXPECT_TRUE( outcome.IsSuccess()) << outcome.GetError().GetExceptionName() << " - " << outcome.GetError().GetMessage();
4646
}
4747
}

generated/smoke-tests/cloudhsmv2/CloudHSMV2SmokeTests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ TEST_F(CloudHSMV2SmokeTestSuite, DescribeClustersSuccess )
4141

4242
DescribeClustersRequest input;
4343
auto outcome = clientSp->DescribeClusters(input);
44-
EXPECT_TRUE( outcome.IsSuccess());
44+
EXPECT_TRUE( outcome.IsSuccess()) << outcome.GetError().GetExceptionName() << " - " << outcome.GetError().GetMessage();
4545
}
4646
}

generated/smoke-tests/cognito-idp/CognitoIdentityProviderSmokeTests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@ TEST_F(CognitoIdentityProviderSmokeTestSuite, ListUserPoolsSuccess )
4242
ListUserPoolsRequest input;
4343
input.SetMaxResults(10);
4444
auto outcome = clientSp->ListUserPools(input);
45-
EXPECT_TRUE( outcome.IsSuccess());
45+
EXPECT_TRUE( outcome.IsSuccess()) << outcome.GetError().GetExceptionName() << " - " << outcome.GetError().GetMessage();
4646
}
4747
}

generated/smoke-tests/config/ConfigServiceSmokeTests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ TEST_F(ConfigServiceSmokeTestSuite, DescribeConfigurationRecordersSuccess )
4141

4242
DescribeConfigurationRecordersRequest input;
4343
auto outcome = clientSp->DescribeConfigurationRecorders(input);
44-
EXPECT_TRUE( outcome.IsSuccess());
44+
EXPECT_TRUE( outcome.IsSuccess()) << outcome.GetError().GetExceptionName() << " - " << outcome.GetError().GetMessage();
4545
}
4646
}

generated/smoke-tests/cur/CostandUsageReportServiceSmokeTests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ TEST_F(CostandUsageReportServiceSmokeTestSuite, DescribeReportDefinitionsSuccess
4141

4242
DescribeReportDefinitionsRequest input;
4343
auto outcome = clientSp->DescribeReportDefinitions(input);
44-
EXPECT_TRUE( outcome.IsSuccess());
44+
EXPECT_TRUE( outcome.IsSuccess()) << outcome.GetError().GetExceptionName() << " - " << outcome.GetError().GetMessage();
4545
}
4646
}

generated/smoke-tests/directconnect/DirectConnectSmokeTests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ TEST_F(DirectConnectSmokeTestSuite, DescribeConnectionsSuccess )
4242

4343
DescribeConnectionsRequest input;
4444
auto outcome = clientSp->DescribeConnections(input);
45-
EXPECT_TRUE( outcome.IsSuccess());
45+
EXPECT_TRUE( outcome.IsSuccess()) << outcome.GetError().GetExceptionName() << " - " << outcome.GetError().GetMessage();
4646
}
4747
TEST_F(DirectConnectSmokeTestSuite, DescribeConnectionsFailure )
4848
{

generated/smoke-tests/discovery/ApplicationDiscoveryServiceSmokeTests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ TEST_F(ApplicationDiscoveryServiceSmokeTestSuite, DescribeAgentsSuccess )
4141

4242
DescribeAgentsRequest input;
4343
auto outcome = clientSp->DescribeAgents(input);
44-
EXPECT_TRUE( outcome.IsSuccess());
44+
EXPECT_TRUE( outcome.IsSuccess()) << outcome.GetError().GetExceptionName() << " - " << outcome.GetError().GetMessage();
4545
}
4646
}

generated/smoke-tests/dms/DatabaseMigrationServiceSmokeTests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ TEST_F(DatabaseMigrationServiceSmokeTestSuite, DescribeEndpointsSuccess )
4141

4242
DescribeEndpointsRequest input;
4343
auto outcome = clientSp->DescribeEndpoints(input);
44-
EXPECT_TRUE( outcome.IsSuccess());
44+
EXPECT_TRUE( outcome.IsSuccess()) << outcome.GetError().GetExceptionName() << " - " << outcome.GetError().GetMessage();
4545
}
4646
}

generated/smoke-tests/ds/DirectoryServiceSmokeTests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ TEST_F(DirectoryServiceSmokeTestSuite, DescribeDirectoriesSuccess )
4141

4242
DescribeDirectoriesRequest input;
4343
auto outcome = clientSp->DescribeDirectories(input);
44-
EXPECT_TRUE( outcome.IsSuccess());
44+
EXPECT_TRUE( outcome.IsSuccess()) << outcome.GetError().GetExceptionName() << " - " << outcome.GetError().GetMessage();
4545
}
4646
}

0 commit comments

Comments
 (0)