Skip to content

Commit b1d738e

Browse files
committed
added script to run smoke tests
1 parent d59ac28 commit b1d738e

File tree

79 files changed

+1176
-843
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+1176
-843
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ if (LEGACY_BUILD)
6767
option(BUILD_OPTEL_OTLP_BENCHMARKS "Enables building the benchmark tests with open telemetry OTLP clients" OFF)
6868
option(USE_TLS_V1_2 "Set http client to enforce TLS 1.2" ON)
6969
option(USE_TLS_V1_3 "Set http client to enforce TLS 1.3" OFF)
70-
option(ENABLE_SMOKE_TESTS "Enable smoke tests" OFF)
70+
option(ENABLE_SMOKE_TESTS "Enable smoke tests" ON)
7171
option(ENABLE_PROTOCOL_TESTS "Enable protocol tests" OFF)
7272
option(DISABLE_DNS_REQUIRED_TESTS "Disable unit tests that require DNS lookup to succeed, useful when using a http client that does not perform DNS lookup" OFF)
7373
option(AWS_APPSTORE_SAFE "Remove reference to private Apple APIs for AES GCM in Common Crypto. If set to OFF you application will get rejected from the apple app store." OFF)

generated/smoke-tests/RunTests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ int main(int argc, char** argv)
1616
// Created dir by this process will be set with mode 0777, so that multiple users can build on the same machine
1717
umask(0);
1818
#endif
19-
Aws::Testing::RedirectHomeToTempIfAppropriate();
19+
//Aws::Testing::RedirectHomeToTempIfAppropriate();
2020

2121
// Disable EC2 metadata in client configuration to avoid requests retrieving EC2 metadata in unit tests.
2222
Aws::Testing::SaveEnvironmentVariable("AWS_EC2_METADATA_DISABLED");

generated/smoke-tests/acm/ACMSmokeTests.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ TEST_F(ACMSmokeTestSuite, GetCertificateFailure )
4343
GetCertificateRequest input;
4444
input.SetCertificateArn("arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012");
4545
auto outcome = clientSp->GetCertificate(input);
46+
if (!outcome.IsSuccess()) {
47+
std::cout << "GetCertificate failed: " << outcome.GetError().GetMessage() << std::endl;
48+
}
4649
EXPECT_FALSE( outcome.IsSuccess());
4750
}
4851
TEST_F(ACMSmokeTestSuite, ListCertificatesSuccess )
@@ -56,6 +59,9 @@ TEST_F(ACMSmokeTestSuite, ListCertificatesSuccess )
5659

5760
ListCertificatesRequest input;
5861
auto outcome = clientSp->ListCertificates(input);
62+
if (!outcome.IsSuccess()) {
63+
std::cout << "ListCertificates failed: " << outcome.GetError().GetMessage() << std::endl;
64+
}
5965
EXPECT_TRUE( outcome.IsSuccess());
6066
}
6167
}

generated/smoke-tests/apigateway/APIGatewaySmokeTests.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ TEST_F(APIGatewaySmokeTestSuite, GetDomainNamesSuccess )
4141

4242
GetDomainNamesRequest input;
4343
auto outcome = clientSp->GetDomainNames(input);
44+
if (!outcome.IsSuccess()) {
45+
std::cout << "GetDomainNames failed: " << outcome.GetError().GetMessage() << std::endl;
46+
}
4447
EXPECT_TRUE( outcome.IsSuccess());
4548
}
4649
}

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,11 @@ TEST_F(ApplicationAutoScalingSmokeTestSuite, DescribeScalableTargetsSuccess )
4040
//populate input params
4141

4242
DescribeScalableTargetsRequest input;
43-
input.SetServiceNamespace({ServiceNamespace::ec2});
43+
input.SetServiceNamespace(ServiceNamespace::ec2);
4444
auto outcome = clientSp->DescribeScalableTargets(input);
45+
if (!outcome.IsSuccess()) {
46+
std::cout << "DescribeScalableTargets failed: " << outcome.GetError().GetMessage() << std::endl;
47+
}
4548
EXPECT_TRUE( outcome.IsSuccess());
4649
}
4750
}

generated/smoke-tests/appstream/AppStreamSmokeTests.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ TEST_F(AppStreamSmokeTestSuite, DescribeStacksSuccess )
4141

4242
DescribeStacksRequest input;
4343
auto outcome = clientSp->DescribeStacks(input);
44+
if (!outcome.IsSuccess()) {
45+
std::cout << "DescribeStacks failed: " << outcome.GetError().GetMessage() << std::endl;
46+
}
4447
EXPECT_TRUE( outcome.IsSuccess());
4548
}
4649
}

generated/smoke-tests/athena/AthenaSmokeTests.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ TEST_F(AthenaSmokeTestSuite, ListNamedQueriesSuccess )
4141

4242
ListNamedQueriesRequest input;
4343
auto outcome = clientSp->ListNamedQueries(input);
44+
if (!outcome.IsSuccess()) {
45+
std::cout << "ListNamedQueries failed: " << outcome.GetError().GetMessage() << std::endl;
46+
}
4447
EXPECT_TRUE( outcome.IsSuccess());
4548
}
4649
}

generated/smoke-tests/batch/BatchSmokeTests.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ TEST_F(BatchSmokeTestSuite, DescribeComputeEnvironmentsSuccess )
4141

4242
DescribeComputeEnvironmentsRequest input;
4343
auto outcome = clientSp->DescribeComputeEnvironments(input);
44+
if (!outcome.IsSuccess()) {
45+
std::cout << "DescribeComputeEnvironments failed: " << outcome.GetError().GetMessage() << std::endl;
46+
}
4447
EXPECT_TRUE( outcome.IsSuccess());
4548
}
4649
}

generated/smoke-tests/billing/BillingSmokeTests.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ TEST_F(BillingSmokeTestSuite, ListBillingViewsSuccess )
5151
ListBillingViewsRequest input;
5252
input.SetActiveTimeRange(GetlistbillingviewsElemLvl0Idx0());
5353
auto outcome = clientSp->ListBillingViews(input);
54+
if (!outcome.IsSuccess()) {
55+
std::cout << "ListBillingViews failed: " << outcome.GetError().GetMessage() << std::endl;
56+
}
5457
EXPECT_TRUE( outcome.IsSuccess());
5558
}
5659
}

generated/smoke-tests/cloudformation/CloudFormationSmokeTests.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ TEST_F(CloudFormationSmokeTestSuite, CreateStackFailure )
4444
input.SetStackName("fakestack");
4545
input.SetTemplateURL("http://s3.amazonaws.com/foo/bar");
4646
auto outcome = clientSp->CreateStack(input);
47+
if (!outcome.IsSuccess()) {
48+
std::cout << "CreateStack failed: " << outcome.GetError().GetMessage() << std::endl;
49+
}
4750
EXPECT_FALSE( outcome.IsSuccess());
4851
}
4952
TEST_F(CloudFormationSmokeTestSuite, ListStacksSuccess )
@@ -57,6 +60,9 @@ TEST_F(CloudFormationSmokeTestSuite, ListStacksSuccess )
5760

5861
ListStacksRequest input;
5962
auto outcome = clientSp->ListStacks(input);
63+
if (!outcome.IsSuccess()) {
64+
std::cout << "ListStacks failed: " << outcome.GetError().GetMessage() << std::endl;
65+
}
6066
EXPECT_TRUE( outcome.IsSuccess());
6167
}
6268
}

0 commit comments

Comments
 (0)