diff --git a/cpp/Dockerfile b/cpp/Dockerfile index b8145cdc19c..32f3fd346b2 100644 --- a/cpp/Dockerfile +++ b/cpp/Dockerfile @@ -58,4 +58,4 @@ RUN useradd -ms /bin/bash tests && \ USER tests -CMD ["python3", "/src/cpp/run_automated_tests.py "] +CMD ["python3", "/src/cpp/run_automated_tests.py", "-23"] diff --git a/cpp/README.rst b/cpp/README.rst index 80e019557d5..6e91178b2f5 100644 --- a/cpp/README.rst +++ b/cpp/README.rst @@ -61,11 +61,11 @@ for more information. Build steps ----------- To build the docker image, run the following command from the shell. This command must be run in -the "aws-doc-sdk-examples" directory, the parent directory of "cpp", in order to access the resources folder. +the "aws-doc-sdk-examples/cpp" directory. .. code-block:: bash -docker build -f cpp/Dockerfile -t . +docker build -t . The following command will run the docker image, copying your AWS credentials. diff --git a/cpp/example_code/aurora/tests/aurora_gtests.cpp b/cpp/example_code/aurora/tests/aurora_gtests.cpp index ee38083a74e..39e6d7eb75e 100644 --- a/cpp/example_code/aurora/tests/aurora_gtests.cpp +++ b/cpp/example_code/aurora/tests/aurora_gtests.cpp @@ -10,7 +10,7 @@ Aws::SDKOptions AwsDocTest::Aurora_GTests::s_options; std::unique_ptr AwsDocTest::Aurora_GTests::s_clientConfig; -static const char ALLOCATION_TAG[] = "RDS_GTEST"; +static const char ALLOCATION_TAG[] = "AURORA_GTEST"; void AwsDocTest::Aurora_GTests::SetUpTestSuite() { InitAPI(s_options); diff --git a/cpp/example_code/autoscaling/tests/CMakeLists.txt b/cpp/example_code/autoscaling/tests/CMakeLists.txt index 79624f2bb48..85e6678f50a 100644 --- a/cpp/example_code/autoscaling/tests/CMakeLists.txt +++ b/cpp/example_code/autoscaling/tests/CMakeLists.txt @@ -123,6 +123,7 @@ target_compile_definitions( ${CURRENT_TARGET} PUBLIC TESTING_BUILD + SRC_DIR="${CMAKE_CURRENT_SOURCE_DIR}" ) target_link_libraries( diff --git a/cpp/example_code/autoscaling/tests/autoscaling_gtests.cpp b/cpp/example_code/autoscaling/tests/autoscaling_gtests.cpp index 75503091ca0..df6edfbd14c 100644 --- a/cpp/example_code/autoscaling/tests/autoscaling_gtests.cpp +++ b/cpp/example_code/autoscaling/tests/autoscaling_gtests.cpp @@ -6,11 +6,14 @@ #include "autoscaling_gtests.h" #include #include +#include +static const char ALLOCATION_TAG[] = "AUTOSCALING_GTEST"; Aws::SDKOptions AwsDocTest::AutoScaling_GTests::s_options; std::unique_ptr AwsDocTest::AutoScaling_GTests::s_clientConfig; void AwsDocTest::AutoScaling_GTests::SetUpTestSuite() { + s_options.loggingOptions.logLevel = Aws::Utils::Logging::LogLevel::Debug; InitAPI(s_options); // s_clientConfig must be a pointer because the client config must be initialized @@ -79,3 +82,39 @@ int AwsDocTest::MyStringBuffer::underflow() { return result; } +AwsDocTest::MockHTTP::MockHTTP() { + mockHttpClient = Aws::MakeShared(ALLOCATION_TAG); + mockHttpClientFactory = Aws::MakeShared(ALLOCATION_TAG); + mockHttpClientFactory->SetClient(mockHttpClient); + SetHttpClientFactory(mockHttpClientFactory); + requestTmp = CreateHttpRequest(Aws::Http::URI("https://test.com/"), + Aws::Http::HttpMethod::HTTP_GET, + Aws::Utils::Stream::DefaultResponseStreamFactoryMethod); +} + +AwsDocTest::MockHTTP::~MockHTTP() { + Aws::Http::CleanupHttp(); + Aws::Http::InitHttp(); +} + +bool AwsDocTest::MockHTTP::addResponseWithBody(const std::string &fileName, + Aws::Http::HttpResponseCode httpResponseCode) { + + std::string fullPath = std::string(SRC_DIR) + "/" + fileName; + std::ifstream inStream(fullPath); + if (inStream) { + std::shared_ptr goodResponse = Aws::MakeShared( + ALLOCATION_TAG, requestTmp); + goodResponse->AddHeader("Content-Type", "text/xml"); + goodResponse->SetResponseCode(httpResponseCode); + goodResponse->GetResponseBody() << inStream.rdbuf(); + mockHttpClient->AddResponseToReturn(goodResponse); + return true; + } + + std::cerr << "MockHTTP::addResponseWithBody open file error '" << fullPath << "'." + << std::endl; + + return false; +} + diff --git a/cpp/example_code/autoscaling/tests/autoscaling_gtests.h b/cpp/example_code/autoscaling/tests/autoscaling_gtests.h index 862f5cd34a9..5dbb0c70a1a 100644 --- a/cpp/example_code/autoscaling/tests/autoscaling_gtests.h +++ b/cpp/example_code/autoscaling/tests/autoscaling_gtests.h @@ -11,6 +11,10 @@ #include #include +class MockHttpClient; + +class MockHttpClientFactory; + namespace AwsDocTest { class MyStringBuffer : public std::stringbuf { @@ -38,7 +42,7 @@ namespace AwsDocTest { private: - bool suppressStdOut(); + static bool suppressStdOut(); static Aws::SDKOptions s_options; @@ -48,6 +52,23 @@ namespace AwsDocTest { MyStringBuffer m_cinBuffer; std::streambuf *m_savedInBuffer = nullptr; }; + + class MockHTTP { + public: + MockHTTP(); + + virtual ~MockHTTP(); + + bool addResponseWithBody(const std::string &fileName, + Aws::Http::HttpResponseCode httpResponseCode = Aws::Http::HttpResponseCode::OK); + + private: + + std::shared_ptr mockHttpClient; + std::shared_ptr mockHttpClientFactory; + std::shared_ptr requestTmp; + }; // MockHTTP + } // AwsDocTest #endif // AUTOSCALING_EXAMPLES_AUTOSCALING_GTESTS_H diff --git a/cpp/example_code/autoscaling/tests/gtest_groups_and_instances_scenario.cpp b/cpp/example_code/autoscaling/tests/gtest_groups_and_instances_scenario.cpp index b79f67e03f4..ecdb538e39f 100644 --- a/cpp/example_code/autoscaling/tests/gtest_groups_and_instances_scenario.cpp +++ b/cpp/example_code/autoscaling/tests/gtest_groups_and_instances_scenario.cpp @@ -17,28 +17,172 @@ SPDX-License-Identifier: Apache-2.0 #include "autoscaling_samples.h" namespace AwsDocTest { + extern const std::vector RESPONSES; + bool addHttpResponses(MockHTTP &mockHttp); + +#if 0 + // Only run the un-mocked test in special cases because of its long execution time. + // NOLINTNEXTLINE (readability-named-parameter) + TEST_F(AutoScaling_GTests, groups_and_instances_scenario_2L_) { + AddCommandLineResponses(RESPONSES); + + bool result = AwsDoc::AutoScaling::groupsAndInstancesScenario(*s_clientConfig); + ASSERT_TRUE(result); + } +#endif // NOLINTNEXTLINE (readability-named-parameter) - TEST_F(AutoScaling_GTests, groups_and_instances_scenario_2_ - ) { - AddCommandLineResponses( { - "n", // "Would you like to use an existing EC2 launch template (y/n)?" - "integration_tests_template", // "Enter the name for a new EC2 launch template: " - "integration_tests_group", // "Enter a name for the Amazon EC2 Auto Scaling group: " - "1", // "Choose an Availability Zone: " - "y", // "Do you want to collect metrics about the Amazon EC2 Auto Scaling during this demo (y/n)?" - "", // "Press enter to continue:" - "", // "Press enter to continue:" - "1", // "Which EC2 instance do you want to stop?" - "", // "Press enter to continue:" - "1", // "Which metric would you like to view? " - "n", // "Would you like to view another metric (y/n)? " - "", // "Press enter to continue:" - "y", // "Delete the EC2 Auto Scaling group 'integration_tests_group' (y/n)?" - "y" // "Delete the EC2 launch template 'integration_tests_template' (y/n)?" -} -); - -bool result = AwsDoc::AutoScaling::groupsAndInstancesScenario(*s_clientConfig); -ASSERT_TRUE(result); -} + TEST_F(AutoScaling_GTests, groups_and_instances_scenario_3_) { + AddCommandLineResponses(RESPONSES); + MockHTTP mockHttp; + bool result = addHttpResponses(mockHttp); + ASSERT_TRUE(result) << preconditionError(); + + result = AwsDoc::AutoScaling::groupsAndInstancesScenario(*s_clientConfig); + ASSERT_TRUE(result); + } + + const std::vector RESPONSES = { + "n", // "Would you like to use an existing EC2 launch template (y/n)?" + "integration_tests_template", // "Enter the name for a new EC2 launch template: " + "integration_tests_group", // "Enter a name for the Amazon EC2 Auto Scaling group: " + "1", // "Choose an Availability Zone: " + "y", // "Do you want to collect metrics about the Amazon EC2 Auto Scaling during this demo (y/n)?" + "", // "Press enter to continue:" + "", // "Press enter to continue:" + "1", // "Which EC2 instance do you want to stop?" + "", // "Press enter to continue:" + "1", // "Which metric would you like to view? " + "n", // "Would you like to view another metric (y/n)? " + "", // "Press enter to continue:" + "y", // "Delete the EC2 Auto Scaling group 'integration_tests_group' (y/n)?" + "y" // "Delete the EC2 launch template 'integration_tests_template' (y/n)?" + }; + + bool addHttpResponses(MockHTTP &mockHttp) { + if (!mockHttp.addResponseWithBody( + "mock_input/1-CreateLaunchTemplate.xml")) { + return false; + } + if (!mockHttp.addResponseWithBody( + "mock_input/2-DescribeAvailabilityZones.xml")) { + return false; + } + if (!mockHttp.addResponseWithBody( + "mock_input/3-CreateAutoScalingGroup.xml")) { + return false; + } + if (!mockHttp.addResponseWithBody( + "mock_input/4-DescribeAutoScalingGroups.xml")) { + return false; + } + if (!mockHttp.addResponseWithBody( + "mock_input/5-DescribeAutoScalingGroups.xml")) { + return false; + } + if (!mockHttp.addResponseWithBody( + "mock_input/6-DescribeAutoScalingInstances.xml")) { + return false; + } + if (!mockHttp.addResponseWithBody( + "mock_input/7-DescribeAutoScalingGroups.xml")) { + return false; + } + if (!mockHttp.addResponseWithBody("mock_input/8-EnableMetricsCollection.xml")) { + return false; + } + if (!mockHttp.addResponseWithBody( + "mock_input/9-UpdateAutoScalingGroup.xml")) { + return false; + } + if (!mockHttp.addResponseWithBody( + "mock_input/10-DescribeAutoScalingGroups.xml")) { + return false; + } + if (!mockHttp.addResponseWithBody( + "mock_input/11-SetDesiredCapacity.xml")) { + return false; + } + if (!mockHttp.addResponseWithBody( + "mock_input/12-DescribeAutoScalingGroups.xml")) { + return false; + } + if (!mockHttp.addResponseWithBody( + "mock_input/13-DescribeAutoScalingGroups.xml")) { + return false; + } + if (!mockHttp.addResponseWithBody( + "mock_input/14-DescribeAutoScalingInstances.xml")) { + return false; + } + if (!mockHttp.addResponseWithBody("mock_input/15-DescribeAutoScalingGroups.xml")) { + return false; + } + if (!mockHttp.addResponseWithBody("mock_input/16-TerminateInstanceInAutoScalingGroup.xml")) { + return false; + } + if (!mockHttp.addResponseWithBody("mock_input/17-DescribeAutoScalingGroups.xml")) { + return false; + } + if (!mockHttp.addResponseWithBody( + "mock_input/72-DescribeAutoScalingInstances.xml")) { + return false; + } + if (!mockHttp.addResponseWithBody( + "mock_input/73-DescribeAutoScalingGroups.xml")) { + return false; + } + if (!mockHttp.addResponseWithBody( + "mock_input/74-DescribeScalingActivities.xml")) { + return false; + } + if (!mockHttp.addResponseWithBody("mock_input/75-ListMetrics.xml")) { + return false; + } + if (!mockHttp.addResponseWithBody("mock_input/76-GetMetricStatistics.xml")) { + return false; + } + if (!mockHttp.addResponseWithBody("mock_input/77-DisableMetricsCollection.xml")) { + return false; + } + if (!mockHttp.addResponseWithBody("mock_input/78-UpdateAutoScalingGroup.xml")) { + return false; + } + if (!mockHttp.addResponseWithBody("mock_input/79-DescribeAutoScalingGroups.xml")) { + return false; + } + if (!mockHttp.addResponseWithBody("mock_input/80-TerminateInstanceInAutoScalingGroup.xml")) { + return false; + } + if (!mockHttp.addResponseWithBody( + "mock_input/81-TerminateInstanceInAutoScalingGroup.xml")) { + return false; + } + if (!mockHttp.addResponseWithBody( + "mock_input/82-DescribeAutoScalingGroups.xml")) { + return false; + } + if (!mockHttp.addResponseWithBody( + "mock_input/133-DescribeAutoScalingInstances.xml")) { + return false; + } + if (!mockHttp.addResponseWithBody( + "mock_input/134-DescribeAutoScalingGroups.xml")) { + return false; + } + if (!mockHttp.addResponseWithBody( + "mock_input/135-DescribeAutoScalingGroups.xml")) { + return false; + } + if (!mockHttp.addResponseWithBody( + "mock_input/136-DeleteAutoScalingGroup.xml")) { + return false; + } + if (!mockHttp.addResponseWithBody( + "mock_input/137-DeleteLaunchTemplate.xml")) { + return false; + } + + return true; + } + } // AwsDocTest \ No newline at end of file diff --git a/cpp/example_code/autoscaling/tests/mock_input/1-CreateLaunchTemplate.xml b/cpp/example_code/autoscaling/tests/mock_input/1-CreateLaunchTemplate.xml new file mode 100644 index 00000000000..d1ab9247ca0 --- /dev/null +++ b/cpp/example_code/autoscaling/tests/mock_input/1-CreateLaunchTemplate.xml @@ -0,0 +1,11 @@ + + + + + InvalidLaunchTemplateName.AlreadyExistsException + Launch template name already in use. + + + b8545979-2a83-4c70-bf83-1052a2ed4ecc + + diff --git a/cpp/example_code/autoscaling/tests/mock_input/10-DescribeAutoScalingGroups.xml b/cpp/example_code/autoscaling/tests/mock_input/10-DescribeAutoScalingGroups.xml new file mode 100644 index 00000000000..53ba608effb --- /dev/null +++ b/cpp/example_code/autoscaling/tests/mock_input/10-DescribeAutoScalingGroups.xml @@ -0,0 +1,58 @@ + + + + EC2 + + + InService + i-0893468e046aaf009 + Healthy + t1.micro + + lt-02b49ee89dd48f1a9 + 1 + integration_tests_template + + false + us-east-1a + + + + Default + + 300 + arn:aws:autoscaling:us-test:123456789012:autoScalingGroup:a234567-89ab-cdef-0123-4567890abcd:autoScalingGroupName/integration_tests_group + + + GroupInServiceInstances + 1Minute + + + 3 + + us-east-1a + + + integration_tests_group + 0 + false + 2023-11-06T19:24:53.556Z + 1 + + + + + lt-02b49ee89dd48f1a9 + integration_tests_template + + + 2 + + + + + + ed21b022-34e6-4d2b-b520-e161a5cdf1c5 + + + diff --git a/cpp/example_code/autoscaling/tests/mock_input/11-SetDesiredCapacity.xml b/cpp/example_code/autoscaling/tests/mock_input/11-SetDesiredCapacity.xml new file mode 100644 index 00000000000..b7ed931616b --- /dev/null +++ b/cpp/example_code/autoscaling/tests/mock_input/11-SetDesiredCapacity.xml @@ -0,0 +1,5 @@ + + f33a1816-02d5-44b9-bb31-6c9e99a5599c + + + diff --git a/cpp/example_code/autoscaling/tests/mock_input/12-DescribeAutoScalingGroups.xml b/cpp/example_code/autoscaling/tests/mock_input/12-DescribeAutoScalingGroups.xml new file mode 100644 index 00000000000..65c3d63e37d --- /dev/null +++ b/cpp/example_code/autoscaling/tests/mock_input/12-DescribeAutoScalingGroups.xml @@ -0,0 +1,58 @@ + + + + EC2 + + + InService + i-0893468e046aaf009 + Healthy + t1.micro + + lt-02b49ee89dd48f1a9 + 1 + integration_tests_template + + false + us-east-1a + + + + Default + + 300 + arn:aws:autoscaling:us-test:123456789012:autoScalingGroup:a234567-89ab-cdef-0123-4567890abcd:autoScalingGroupName/integration_tests_group + + + GroupTotalInstances + 1Minute + + + 3 + + us-east-1a + + + integration_tests_group + 0 + false + 2023-11-06T19:24:53.556Z + 1 + + + + + lt-02b49ee89dd48f1a9 + integration_tests_template + + + 2 + + + + + + 5ac4b3b5-0cfa-46af-8de5-801192349e15 + + + diff --git a/cpp/example_code/autoscaling/tests/mock_input/13-DescribeAutoScalingGroups.xml b/cpp/example_code/autoscaling/tests/mock_input/13-DescribeAutoScalingGroups.xml new file mode 100644 index 00000000000..5618e597dda --- /dev/null +++ b/cpp/example_code/autoscaling/tests/mock_input/13-DescribeAutoScalingGroups.xml @@ -0,0 +1,58 @@ + + + + EC2 + + + InService + i-0893468e046aaf009 + Healthy + t1.micro + + lt-02b49ee89dd48f1a9 + 1 + integration_tests_template + + false + us-east-1a + + + + Default + + 300 + arn:aws:autoscaling:us-test:123456789012:autoScalingGroup:a234567-89ab-cdef-0123-4567890abcd:autoScalingGroupName/integration_tests_group + + + GroupTotalInstances + 1Minute + + + 3 + + us-east-1a + + + integration_tests_group + 0 + false + 2023-11-06T19:24:53.556Z + 1 + + + + + lt-02b49ee89dd48f1a9 + integration_tests_template + + + 2 + + + + + + 03532e67-878d-4e39-ab93-49e5c7a2dabc + + + diff --git a/cpp/example_code/autoscaling/tests/mock_input/133-DescribeAutoScalingInstances.xml b/cpp/example_code/autoscaling/tests/mock_input/133-DescribeAutoScalingInstances.xml new file mode 100644 index 00000000000..cbc91261ea6 --- /dev/null +++ b/cpp/example_code/autoscaling/tests/mock_input/133-DescribeAutoScalingInstances.xml @@ -0,0 +1,23 @@ + + + + Terminating + integration_tests_group + i-0a23fc0e38f39ca25 + HEALTHY + t1.micro + + lt-02b49ee89dd48f1a9 + 1 + integration_tests_template + + false + us-east-1a + + + + + 5d717997-97ec-4186-a176-77f742105fac + + + diff --git a/cpp/example_code/autoscaling/tests/mock_input/134-DescribeAutoScalingGroups.xml b/cpp/example_code/autoscaling/tests/mock_input/134-DescribeAutoScalingGroups.xml new file mode 100644 index 00000000000..d1ce7345a9a --- /dev/null +++ b/cpp/example_code/autoscaling/tests/mock_input/134-DescribeAutoScalingGroups.xml @@ -0,0 +1,40 @@ + + + + EC2 + + + Default + + 300 + arn:aws:autoscaling:us-test:123456789012:autoScalingGroup:a234567-89ab-cdef-0123-4567890abcd:autoScalingGroupName/integration_tests_group + + 3 + + us-east-1a + + + integration_tests_group + 0 + false + 2023-11-06T19:24:53.556Z + 0 + + + + arn:aws:iam::123456789012:role/aws-service-role/autoscaling.amazonaws.com/AWSServiceRoleForAutoScaling + + lt-02b49ee89dd48f1a9 + integration_tests_template + + + 0 + + + + + + 00dbad6a-f0af-4f04-9d9f-ae8478e5a9fe + + + diff --git a/cpp/example_code/autoscaling/tests/mock_input/135-DescribeAutoScalingGroups.xml b/cpp/example_code/autoscaling/tests/mock_input/135-DescribeAutoScalingGroups.xml new file mode 100644 index 00000000000..9790738fa6b --- /dev/null +++ b/cpp/example_code/autoscaling/tests/mock_input/135-DescribeAutoScalingGroups.xml @@ -0,0 +1,40 @@ + + + + EC2 + + + Default + + 300 + arn:aws:autoscaling:us-test:123456789012:autoScalingGroup:a234567-89ab-cdef-0123-4567890abcd:autoScalingGroupName/integration_tests_group + + 3 + + us-east-1a + + + integration_tests_group + 0 + false + 2023-11-06T19:24:53.556Z + 0 + + + + arn:aws:iam::123456789012:role/aws-service-role/autoscaling.amazonaws.com/AWSServiceRoleForAutoScaling + + lt-02b49ee89dd48f1a9 + integration_tests_template + + + 0 + + + + + + fea39124-5c2e-4d75-8584-cca10ae14e47 + + + diff --git a/cpp/example_code/autoscaling/tests/mock_input/136-DeleteAutoScalingGroup.xml b/cpp/example_code/autoscaling/tests/mock_input/136-DeleteAutoScalingGroup.xml new file mode 100644 index 00000000000..da42b318ba9 --- /dev/null +++ b/cpp/example_code/autoscaling/tests/mock_input/136-DeleteAutoScalingGroup.xml @@ -0,0 +1,5 @@ + + 3354d6c4-cf94-46db-a90c-0176f57f9d15 + + + diff --git a/cpp/example_code/autoscaling/tests/mock_input/137-DeleteLaunchTemplate.xml b/cpp/example_code/autoscaling/tests/mock_input/137-DeleteLaunchTemplate.xml new file mode 100644 index 00000000000..3f253199340 --- /dev/null +++ b/cpp/example_code/autoscaling/tests/mock_input/137-DeleteLaunchTemplate.xml @@ -0,0 +1,13 @@ + + + fec10038-20f2-41e1-b7b5-3520d602b69f + + 2023-11-06T19:24:51.000Z + arn:aws:iam::123456789012:user/UnitTester + 1 + 1 + lt-02b49ee89dd48f1a9 + integration_tests_template + + + diff --git a/cpp/example_code/autoscaling/tests/mock_input/14-DescribeAutoScalingInstances.xml b/cpp/example_code/autoscaling/tests/mock_input/14-DescribeAutoScalingInstances.xml new file mode 100644 index 00000000000..bf8bdd608ea --- /dev/null +++ b/cpp/example_code/autoscaling/tests/mock_input/14-DescribeAutoScalingInstances.xml @@ -0,0 +1,37 @@ + + + + InService + integration_tests_group + i-0893468e046aaf009 + HEALTHY + t1.micro + + lt-02b49ee89dd48f1a9 + 1 + integration_tests_template + + false + us-east-1a + + + InService + integration_tests_group + i-09513149875f57017 + HEALTHY + t1.micro + + lt-02b49ee89dd48f1a9 + 1 + integration_tests_template + + false + us-east-1a + + + + + 2db688c7-3f35-4b3d-815f-a92f846ed644 + + + diff --git a/cpp/example_code/autoscaling/tests/mock_input/15-DescribeAutoScalingGroups.xml b/cpp/example_code/autoscaling/tests/mock_input/15-DescribeAutoScalingGroups.xml new file mode 100644 index 00000000000..10a23cec83f --- /dev/null +++ b/cpp/example_code/autoscaling/tests/mock_input/15-DescribeAutoScalingGroups.xml @@ -0,0 +1,58 @@ + + + + EC2 + + + InService + i-0893468e046aaf009 + Healthy + t1.micro + + lt-02b49ee89dd48f1a9 + 1 + integration_tests_template + + false + us-east-1a + + + + Default + + 300 + arn:aws:autoscaling:us-test:123456789012:autoScalingGroup:a234567-89ab-cdef-0123-4567890abcd:autoScalingGroupName/integration_tests_group + + + GroupTotalInstances + 1Minute + + + 3 + + us-east-1a + + + integration_tests_group + 0 + false + 2023-11-06T19:24:53.556Z + 1 + + + + + lt-02b49ee89dd48f1a9 + integration_tests_template + + + 2 + + + + + + c5ddb5d5-5852-49e2-8d8d-a95c6edc121e + + + diff --git a/cpp/example_code/autoscaling/tests/mock_input/16-TerminateInstanceInAutoScalingGroup.xml b/cpp/example_code/autoscaling/tests/mock_input/16-TerminateInstanceInAutoScalingGroup.xml new file mode 100644 index 00000000000..79b5f4a60f1 --- /dev/null +++ b/cpp/example_code/autoscaling/tests/mock_input/16-TerminateInstanceInAutoScalingGroup.xml @@ -0,0 +1,17 @@ + + + Terminating EC2 instance: i-0893468e046aaf009 + At 2023-11-06T19:46:34Z instance i-0893468e046aaf009 was taken out of service in response to a user request. + 74162e98-b0ac-9071-a3fb-0047abb80234 + integration_tests_group + 0 + 2023-11-06T19:46:34.404Z +
{"Availability Zone":"us-east-1a"}
+ InProgress +
+
+ + 604b92d2-da44-4ac1-ae28-42caa82361b8 + +
+ diff --git a/cpp/example_code/autoscaling/tests/mock_input/17-DescribeAutoScalingGroups.xml b/cpp/example_code/autoscaling/tests/mock_input/17-DescribeAutoScalingGroups.xml new file mode 100644 index 00000000000..013fb5175ab --- /dev/null +++ b/cpp/example_code/autoscaling/tests/mock_input/17-DescribeAutoScalingGroups.xml @@ -0,0 +1,58 @@ + + + + EC2 + + + Terminating + i-0893468e046aaf009 + Healthy + t1.micro + + lt-02b49ee89dd48f1a9 + 1 + integration_tests_template + + false + us-east-1a + + + + Default + + 300 + arn:aws:autoscaling:us-test:123456789012:autoScalingGroup:a234567-89ab-cdef-0123-4567890abcd:autoScalingGroupName/integration_tests_group + + + GroupTotalInstances + 1Minute + + + 3 + + us-east-1a + + + integration_tests_group + 0 + false + 2023-11-06T19:24:53.556Z + 1 + + + + + lt-02b49ee89dd48f1a9 + integration_tests_template + + + 2 + + + + + + 54dad360-4258-4e6e-a8d8-1fa1ad1e93c0 + + + diff --git a/cpp/example_code/autoscaling/tests/mock_input/2-DescribeAvailabilityZones.xml b/cpp/example_code/autoscaling/tests/mock_input/2-DescribeAvailabilityZones.xml new file mode 100644 index 00000000000..132c206f518 --- /dev/null +++ b/cpp/example_code/autoscaling/tests/mock_input/2-DescribeAvailabilityZones.xml @@ -0,0 +1,16 @@ + + f90191a2-f19f-4eba-9859-63b5c534dffe + + + us-east-1a + use1-az2 + available + us-test + us-test + opt-in-not-required + us-test + availability-zone + + + + diff --git a/cpp/example_code/autoscaling/tests/mock_input/3-CreateAutoScalingGroup.xml b/cpp/example_code/autoscaling/tests/mock_input/3-CreateAutoScalingGroup.xml new file mode 100644 index 00000000000..043e86ce821 --- /dev/null +++ b/cpp/example_code/autoscaling/tests/mock_input/3-CreateAutoScalingGroup.xml @@ -0,0 +1,8 @@ + + Sender + AlreadyExists + AutoScalingGroup by this name already exists - A group with the name integration_tests_group already exists + + 8ded96d5-e4ba-4050-8c8c-acb9f2a84137 + + diff --git a/cpp/example_code/autoscaling/tests/mock_input/4-DescribeAutoScalingGroups.xml b/cpp/example_code/autoscaling/tests/mock_input/4-DescribeAutoScalingGroups.xml new file mode 100644 index 00000000000..3e61949271b --- /dev/null +++ b/cpp/example_code/autoscaling/tests/mock_input/4-DescribeAutoScalingGroups.xml @@ -0,0 +1,58 @@ + + + + EC2 + + + InService + i-0893468e046aaf009 + Healthy + t1.micro + + lt-02b49ee89dd48f1a9 + 1 + integration_tests_template + + false + us-east-1a + + + + Default + + 300 + arn:aws:autoscaling:us-test:123456789012:autoScalingGroup:a234567-89ab-cdef-0123-4567890abcd:autoScalingGroupName/integration_tests_group + + + GroupDesiredCapacity + 1Minute + + + 3 + + us-east-1a + + + integration_tests_group + 0 + false + 2023-11-06T19:24:53.556Z + 1 + + + + + lt-02b49ee89dd48f1a9 + integration_tests_template + + + 2 + + + + + + 85d8296f-3ef7-4b15-9099-13be0e6a308d + + + diff --git a/cpp/example_code/autoscaling/tests/mock_input/5-DescribeAutoScalingGroups.xml b/cpp/example_code/autoscaling/tests/mock_input/5-DescribeAutoScalingGroups.xml new file mode 100644 index 00000000000..d1785d99360 --- /dev/null +++ b/cpp/example_code/autoscaling/tests/mock_input/5-DescribeAutoScalingGroups.xml @@ -0,0 +1,58 @@ + + + + EC2 + + + InService + i-0893468e046aaf009 + Healthy + t1.micro + + lt-02b49ee89dd48f1a9 + 1 + integration_tests_template + + false + us-east-1a + + + + Default + + 300 + arn:aws:autoscaling:us-test:123456789012:autoScalingGroup:a234567-89ab-cdef-0123-4567890abcd:autoScalingGroupName/integration_tests_group + + + GroupInServiceInstances + 1Minute + + + 3 + + us-east-1a + + + integration_tests_group + 0 + false + 2023-11-06T19:24:53.556Z + 1 + + + + + lt-02b49ee89dd48f1a9 + integration_tests_template + + + 2 + + + + + + 6f9fec0c-95f8-4624-9209-88faa9a932bf + + + diff --git a/cpp/example_code/autoscaling/tests/mock_input/6-DescribeAutoScalingInstances.xml b/cpp/example_code/autoscaling/tests/mock_input/6-DescribeAutoScalingInstances.xml new file mode 100644 index 00000000000..a884e307fd0 --- /dev/null +++ b/cpp/example_code/autoscaling/tests/mock_input/6-DescribeAutoScalingInstances.xml @@ -0,0 +1,37 @@ + + + + InService + integration_tests_group + i-0893468e046aaf009 + HEALTHY + t1.micro + + lt-02b49ee89dd48f1a9 + 1 + integration_tests_template + + false + us-east-1a + + + InService + integration_tests_group + i-09513149875f57017 + HEALTHY + t1.micro + + lt-02b49ee89dd48f1a9 + 1 + integration_tests_template + + false + us-east-1a + + + + + 59cee6a1-649d-4523-8a27-f20d31fb4911 + + + diff --git a/cpp/example_code/autoscaling/tests/mock_input/7-DescribeAutoScalingGroups.xml b/cpp/example_code/autoscaling/tests/mock_input/7-DescribeAutoScalingGroups.xml new file mode 100644 index 00000000000..9863ef3ab8d --- /dev/null +++ b/cpp/example_code/autoscaling/tests/mock_input/7-DescribeAutoScalingGroups.xml @@ -0,0 +1,58 @@ + + + + EC2 + + + InService + i-0893468e046aaf009 + Healthy + t1.micro + + lt-02b49ee89dd48f1a9 + 1 + integration_tests_template + + false + us-east-1a + + + + Default + + 300 + arn:aws:autoscaling:us-test:123456789012:autoScalingGroup:a234567-89ab-cdef-0123-4567890abcd:autoScalingGroupName/integration_tests_group + + + GroupDesiredCapacity + 1Minute + + + 3 + + us-east-1a + + + integration_tests_group + 0 + false + 2023-11-06T19:24:53.556Z + 1 + + + + + lt-02b49ee89dd48f1a9 + integration_tests_template + + + 2 + + + + + + 8f7922c9-1527-475a-be68-8554a5eeaa80 + + + diff --git a/cpp/example_code/autoscaling/tests/mock_input/72-DescribeAutoScalingInstances.xml b/cpp/example_code/autoscaling/tests/mock_input/72-DescribeAutoScalingInstances.xml new file mode 100644 index 00000000000..5424fdf8274 --- /dev/null +++ b/cpp/example_code/autoscaling/tests/mock_input/72-DescribeAutoScalingInstances.xml @@ -0,0 +1,37 @@ + + + + InService + integration_tests_group + i-09513149875f57017 + HEALTHY + t1.micro + + lt-02b49ee89dd48f1a9 + 1 + integration_tests_template + + false + us-east-1a + + + InService + integration_tests_group + i-0a23fc0e38f39ca25 + HEALTHY + t1.micro + + lt-02b49ee89dd48f1a9 + 1 + integration_tests_template + + false + us-east-1a + + + + + 3d27c24e-034d-4999-a0e2-bd99aaea3439 + + + diff --git a/cpp/example_code/autoscaling/tests/mock_input/73-DescribeAutoScalingGroups.xml b/cpp/example_code/autoscaling/tests/mock_input/73-DescribeAutoScalingGroups.xml new file mode 100644 index 00000000000..33c19c4d799 --- /dev/null +++ b/cpp/example_code/autoscaling/tests/mock_input/73-DescribeAutoScalingGroups.xml @@ -0,0 +1,58 @@ + + + + EC2 + + + InService + i-09513149875f57017 + Healthy + t1.micro + + lt-02b49ee89dd48f1a9 + 1 + integration_tests_template + + false + us-east-1a + + + + Default + + 300 + arn:aws:autoscaling:us-test:123456789012:autoScalingGroup:a234567-89ab-cdef-0123-4567890abcd:autoScalingGroupName/integration_tests_group + + + GroupInServiceInstances + 1Minute + + + 3 + + us-east-1a + + + integration_tests_group + 0 + false + 2023-11-06T19:24:53.556Z + 1 + + + + + lt-02b49ee89dd48f1a9 + integration_tests_template + + + 2 + + + + + + 883e7ec1-d800-4511-a6ee-ee36fb99bbed + + + diff --git a/cpp/example_code/autoscaling/tests/mock_input/74-DescribeScalingActivities.xml b/cpp/example_code/autoscaling/tests/mock_input/74-DescribeScalingActivities.xml new file mode 100644 index 00000000000..6d9768d2d1c --- /dev/null +++ b/cpp/example_code/autoscaling/tests/mock_input/74-DescribeScalingActivities.xml @@ -0,0 +1,21 @@ + + + + Launching a new EC2 instance: i-0a23fc0e38f39ca25 + arn:aws:autoscaling:us-test:123456789012:autoScalingGroup:a234567-89ab-cdef-0123-4567890abcd:autoScalingGroupName/integration_tests_group + At 2023-11-06T19:46:45Z an instance was started in response to a difference between desired and actual capacity, increasing the capacity from 1 to 2. + 8ce62e98-b171-d705-5671-490fa7226bb6 + integration_tests_group + 100 + 2023-11-06T19:46:47.029Z +
{"Availability Zone":"us-east-1a"}
+ 2023-11-06T19:47:18Z + Successful +
+
+
+ + 9155b0e8-6a67-47a8-8e31-70cd6cff1b64 + +
+ diff --git a/cpp/example_code/autoscaling/tests/mock_input/75-ListMetrics.xml b/cpp/example_code/autoscaling/tests/mock_input/75-ListMetrics.xml new file mode 100644 index 00000000000..cc2c5c264df --- /dev/null +++ b/cpp/example_code/autoscaling/tests/mock_input/75-ListMetrics.xml @@ -0,0 +1,19 @@ + + + + GroupTotalInstances + AWS/AutoScaling + + + AutoScalingGroupName + integration_tests_group + + + + + + + e2fa0bc4-e312-45a5-ad2d-286d9149db73 + + + diff --git a/cpp/example_code/autoscaling/tests/mock_input/76-GetMetricStatistics.xml b/cpp/example_code/autoscaling/tests/mock_input/76-GetMetricStatistics.xml new file mode 100644 index 00000000000..afaff509528 --- /dev/null +++ b/cpp/example_code/autoscaling/tests/mock_input/76-GetMetricStatistics.xml @@ -0,0 +1,17 @@ + + + + 2.0 + None + 3.0 + 1.0 + 2023-11-06T15:47:00Z + + + + + + ed7c847c-13c6-4a7c-b1f9-6a0cadd84dc1 + + + diff --git a/cpp/example_code/autoscaling/tests/mock_input/77-DisableMetricsCollection.xml b/cpp/example_code/autoscaling/tests/mock_input/77-DisableMetricsCollection.xml new file mode 100644 index 00000000000..95bd3d50a41 --- /dev/null +++ b/cpp/example_code/autoscaling/tests/mock_input/77-DisableMetricsCollection.xml @@ -0,0 +1,5 @@ + + f30e48c4-9887-42b6-8b5b-516725adc5e2 + + + diff --git a/cpp/example_code/autoscaling/tests/mock_input/78-UpdateAutoScalingGroup.xml b/cpp/example_code/autoscaling/tests/mock_input/78-UpdateAutoScalingGroup.xml new file mode 100644 index 00000000000..9ef9c00fb58 --- /dev/null +++ b/cpp/example_code/autoscaling/tests/mock_input/78-UpdateAutoScalingGroup.xml @@ -0,0 +1,5 @@ + + dfd7d66b-f7a4-4a63-9ea3-fc8b894d76c5 + + + diff --git a/cpp/example_code/autoscaling/tests/mock_input/79-DescribeAutoScalingGroups.xml b/cpp/example_code/autoscaling/tests/mock_input/79-DescribeAutoScalingGroups.xml new file mode 100644 index 00000000000..841d638ecb8 --- /dev/null +++ b/cpp/example_code/autoscaling/tests/mock_input/79-DescribeAutoScalingGroups.xml @@ -0,0 +1,53 @@ + + + + EC2 + + + InService + i-09513149875f57017 + Healthy + t1.micro + + lt-02b49ee89dd48f1a9 + 1 + integration_tests_template + + false + us-east-1a + + + + Default + + 300 + arn:aws:autoscaling:us-test:123456789012:autoScalingGroup:a234567-89ab-cdef-0123-4567890abcd:autoScalingGroupName/integration_tests_group + + 3 + + us-east-1a + + + integration_tests_group + 0 + false + 2023-11-06T19:24:53.556Z + 0 + + + + + lt-02b49ee89dd48f1a9 + integration_tests_template + + + 0 + + + + + + 0c324aad-a7b3-4c07-bf31-bbf3727f53ea + + + diff --git a/cpp/example_code/autoscaling/tests/mock_input/8-EnableMetricsCollection.xml b/cpp/example_code/autoscaling/tests/mock_input/8-EnableMetricsCollection.xml new file mode 100644 index 00000000000..aff644da66f --- /dev/null +++ b/cpp/example_code/autoscaling/tests/mock_input/8-EnableMetricsCollection.xml @@ -0,0 +1,5 @@ + + 3303ea8a-f715-43da-b3ec-61ba4566de15 + + + diff --git a/cpp/example_code/autoscaling/tests/mock_input/80-TerminateInstanceInAutoScalingGroup.xml b/cpp/example_code/autoscaling/tests/mock_input/80-TerminateInstanceInAutoScalingGroup.xml new file mode 100644 index 00000000000..5fb2310ca03 --- /dev/null +++ b/cpp/example_code/autoscaling/tests/mock_input/80-TerminateInstanceInAutoScalingGroup.xml @@ -0,0 +1,17 @@ + + + Terminating EC2 instance: i-09513149875f57017 + At 2023-11-06T19:47:21Z instance i-09513149875f57017 was taken out of service in response to a user request. + 0d662e98-b385-6204-51e9-c809053b9286 + integration_tests_group + 0 + 2023-11-06T19:47:21.048Z +
{"Availability Zone":"us-east-1a"}
+ InProgress +
+
+ + 619a0ee0-da9c-4a48-8728-99b042ddaa9d + +
+ diff --git a/cpp/example_code/autoscaling/tests/mock_input/81-TerminateInstanceInAutoScalingGroup.xml b/cpp/example_code/autoscaling/tests/mock_input/81-TerminateInstanceInAutoScalingGroup.xml new file mode 100644 index 00000000000..e3aed9e8888 --- /dev/null +++ b/cpp/example_code/autoscaling/tests/mock_input/81-TerminateInstanceInAutoScalingGroup.xml @@ -0,0 +1,17 @@ + + + Terminating EC2 instance: i-0a23fc0e38f39ca25 + At 2023-11-06T19:47:21Z instance i-0a23fc0e38f39ca25 was taken out of service in response to a user request. + 78b62e98-b38d-4097-2fa1-4c89b6a1863a + integration_tests_group + 0 + 2023-11-06T19:47:21.552Z +
{"Availability Zone":"us-east-1a"}
+ InProgress +
+
+ + 9839f5a5-2fc3-4a6a-982b-a86c41803f08 + +
+ diff --git a/cpp/example_code/autoscaling/tests/mock_input/82-DescribeAutoScalingGroups.xml b/cpp/example_code/autoscaling/tests/mock_input/82-DescribeAutoScalingGroups.xml new file mode 100644 index 00000000000..db02ccad414 --- /dev/null +++ b/cpp/example_code/autoscaling/tests/mock_input/82-DescribeAutoScalingGroups.xml @@ -0,0 +1,53 @@ + + + + EC2 + + + Terminating + i-09513149875f57017 + Healthy + t1.micro + + lt-02b49ee89dd48f1a9 + 1 + integration_tests_template + + false + us-east-1a + + + + Default + + 300 + + 3 + + us-east-1a + + + integration_tests_group + 0 + false + 2023-11-06T19:24:53.556Z + 0 + + + + arn:aws:iam::123456789012:role/aws-service-role/autoscaling.amazonaws.com/AWSServiceRoleForAutoScaling + + lt-02b49ee89dd48f1a9 + integration_tests_template + + + 0 + + + + + + 46fe6ae3-2a2e-48bf-a2c2-59add2288ff3 + + + diff --git a/cpp/example_code/autoscaling/tests/mock_input/9-UpdateAutoScalingGroup.xml b/cpp/example_code/autoscaling/tests/mock_input/9-UpdateAutoScalingGroup.xml new file mode 100644 index 00000000000..03075ed002c --- /dev/null +++ b/cpp/example_code/autoscaling/tests/mock_input/9-UpdateAutoScalingGroup.xml @@ -0,0 +1,5 @@ + + 490bebc2-828d-43e4-95c6-3db126819711 + + + diff --git a/cpp/example_code/dynamodb/tests/gtest_dynamodb_getting_started_scenario.cpp b/cpp/example_code/dynamodb/tests/gtest_dynamodb_getting_started_scenario.cpp index be0e717cd63..f7d6586a0e0 100644 --- a/cpp/example_code/dynamodb/tests/gtest_dynamodb_getting_started_scenario.cpp +++ b/cpp/example_code/dynamodb/tests/gtest_dynamodb_getting_started_scenario.cpp @@ -17,8 +17,9 @@ #include "dynamodb_samples.h" namespace AwsDocTest { + // Designated _2R_ because it requires resources. // NOLINTNEXTLINE (readability-named-parameter) - TEST_F(DynamoDB_GTests, getting_started_scenario_2_) { + TEST_F(DynamoDB_GTests, getting_started_scenario_2R_) { AddCommandLineResponses({"Jaws", "1972", "8", diff --git a/cpp/example_code/dynamodb/tests/gtest_dynamodb_partiql_single_scenario.cpp b/cpp/example_code/dynamodb/tests/gtest_dynamodb_partiql_single_scenario.cpp index 75f4d70ede1..478577a8fa6 100644 --- a/cpp/example_code/dynamodb/tests/gtest_dynamodb_partiql_single_scenario.cpp +++ b/cpp/example_code/dynamodb/tests/gtest_dynamodb_partiql_single_scenario.cpp @@ -22,7 +22,7 @@ namespace AwsDocTest { TEST_F(DynamoDB_GTests, paritql_single_execute_scenario_2_ ) { AddCommandLineResponses({ - "Jaws", + "Unjaws", "1972", "8", "Sharks", diff --git a/cpp/example_code/iam/tests/gtest_iam_create_user_assume_role_scenario.cpp b/cpp/example_code/iam/tests/gtest_iam_create_user_assume_role_scenario.cpp index 29bf8e4a001..a59668619b2 100644 --- a/cpp/example_code/iam/tests/gtest_iam_create_user_assume_role_scenario.cpp +++ b/cpp/example_code/iam/tests/gtest_iam_create_user_assume_role_scenario.cpp @@ -16,7 +16,7 @@ namespace AwsDocTest { // NOLINTNEXTLINE(readability-named-parameter) - TEST_F(IAM_GTests, create_user_assume_role_scenario_2_ ) { + TEST_F(IAM_GTests, create_user_assume_role_scenario_2_) { auto result = AwsDoc::IAM::iamCreateUserAssumeRoleScenario(*s_clientConfig); EXPECT_TRUE(result); diff --git a/cpp/example_code/ses/tests/gtest_create_receipt_filter.cpp b/cpp/example_code/ses/tests/gtest_create_receipt_filter.cpp index 596e7a9ae88..ffb2fd5aa3b 100644 --- a/cpp/example_code/ses/tests/gtest_create_receipt_filter.cpp +++ b/cpp/example_code/ses/tests/gtest_create_receipt_filter.cpp @@ -17,7 +17,7 @@ namespace AwsDocTest { // NOLINTNEXTLINE(readability-named-parameter) - TEST_F(SES_GTests, create_receipt_filter_1_) { + TEST_F(SES_GTests, create_receipt_filter_3_) { MockHTTP mockHttp; bool result = mockHttp.addResponseWithBody("mock_input/CreateReceiptFilter.xml"); ASSERT_TRUE(result) << preconditionError() << std::endl; diff --git a/cpp/example_code/ses/tests/gtest_create_receipt_rule.cpp b/cpp/example_code/ses/tests/gtest_create_receipt_rule.cpp index 43248aa7eda..0de750f2cb3 100644 --- a/cpp/example_code/ses/tests/gtest_create_receipt_rule.cpp +++ b/cpp/example_code/ses/tests/gtest_create_receipt_rule.cpp @@ -17,7 +17,7 @@ namespace AwsDocTest { // NOLINTNEXTLINE(readability-named-parameter) - TEST_F(SES_GTests, create_receipt_rule_1_) { + TEST_F(SES_GTests, create_receipt_rule_3_) { MockHTTP mockHttp; bool result = mockHttp.addResponseWithBody("mock_input/CreateReceiptRule.xml"); ASSERT_TRUE(result) << preconditionError() << std::endl; diff --git a/cpp/example_code/ses/tests/gtest_create_receipt_rule_set.cpp b/cpp/example_code/ses/tests/gtest_create_receipt_rule_set.cpp index 583e10f3e42..dfe0ffaf47c 100644 --- a/cpp/example_code/ses/tests/gtest_create_receipt_rule_set.cpp +++ b/cpp/example_code/ses/tests/gtest_create_receipt_rule_set.cpp @@ -17,7 +17,7 @@ namespace AwsDocTest { // NOLINTNEXTLINE(readability-named-parameter) - TEST_F(SES_GTests, create_receipt_rule_set_1_) { + TEST_F(SES_GTests, create_receipt_rule_set_3_) { MockHTTP mockHttp; bool result = mockHttp.addResponseWithBody("mock_input/CreateReceiptRuleSet.xml"); ASSERT_TRUE(result) << preconditionError() << std::endl; diff --git a/cpp/example_code/ses/tests/gtest_create_template.cpp b/cpp/example_code/ses/tests/gtest_create_template.cpp index c964a960797..d4ec506cc83 100644 --- a/cpp/example_code/ses/tests/gtest_create_template.cpp +++ b/cpp/example_code/ses/tests/gtest_create_template.cpp @@ -17,7 +17,7 @@ namespace AwsDocTest { // NOLINTNEXTLINE(readability-named-parameter) - TEST_F(SES_GTests, create_template_1_) { + TEST_F(SES_GTests, create_template_3_) { MockHTTP mockHttp; bool result = mockHttp.addResponseWithBody("mock_input/CreateTemplate.xml"); ASSERT_TRUE(result) << preconditionError() << std::endl; diff --git a/cpp/example_code/ses/tests/gtest_delete_identity.cpp b/cpp/example_code/ses/tests/gtest_delete_identity.cpp index a78ae752b0d..4ee654125a1 100644 --- a/cpp/example_code/ses/tests/gtest_delete_identity.cpp +++ b/cpp/example_code/ses/tests/gtest_delete_identity.cpp @@ -17,7 +17,7 @@ namespace AwsDocTest { // NOLINTNEXTLINE(readability-named-parameter) - TEST_F(SES_GTests, delete_identity_1_) { + TEST_F(SES_GTests, delete_identity_3_) { MockHTTP mockHttp; bool result = mockHttp.addResponseWithBody("mock_input/DeleteIdentity.xml"); ASSERT_TRUE(result) << preconditionError() << std::endl; diff --git a/cpp/example_code/ses/tests/gtest_delete_receipt_filter.cpp b/cpp/example_code/ses/tests/gtest_delete_receipt_filter.cpp index aee196b672f..89b8d164799 100644 --- a/cpp/example_code/ses/tests/gtest_delete_receipt_filter.cpp +++ b/cpp/example_code/ses/tests/gtest_delete_receipt_filter.cpp @@ -17,7 +17,7 @@ namespace AwsDocTest { // NOLINTNEXTLINE(readability-named-parameter) - TEST_F(SES_GTests, delete_receipt_filter_1_) { + TEST_F(SES_GTests, delete_receipt_filter_3_) { MockHTTP mockHttp; bool result = mockHttp.addResponseWithBody("mock_input/DeleteReceiptFilter.xml"); ASSERT_TRUE(result) << preconditionError() << std::endl; diff --git a/cpp/example_code/ses/tests/gtest_delete_receipt_rule.cpp b/cpp/example_code/ses/tests/gtest_delete_receipt_rule.cpp index 78fe3304e5f..27ade191dbb 100644 --- a/cpp/example_code/ses/tests/gtest_delete_receipt_rule.cpp +++ b/cpp/example_code/ses/tests/gtest_delete_receipt_rule.cpp @@ -17,7 +17,7 @@ namespace AwsDocTest { // NOLINTNEXTLINE(readability-named-parameter) - TEST_F(SES_GTests, delete_receipt_rule_1_) { + TEST_F(SES_GTests, delete_receipt_rule_3_) { MockHTTP mockHttp; bool result = mockHttp.addResponseWithBody("mock_input/DeleteReceiptRule.xml"); ASSERT_TRUE(result) << preconditionError() << std::endl; diff --git a/cpp/example_code/ses/tests/gtest_delete_receipt_rule_set.cpp b/cpp/example_code/ses/tests/gtest_delete_receipt_rule_set.cpp index e7c370247d3..73e0ed7ce20 100644 --- a/cpp/example_code/ses/tests/gtest_delete_receipt_rule_set.cpp +++ b/cpp/example_code/ses/tests/gtest_delete_receipt_rule_set.cpp @@ -17,7 +17,7 @@ namespace AwsDocTest { // NOLINTNEXTLINE(readability-named-parameter) - TEST_F(SES_GTests, delete_receipt_rule_set_1_) { + TEST_F(SES_GTests, delete_receipt_rule_set_3_) { MockHTTP mockHttp; bool result = mockHttp.addResponseWithBody("mock_input/DeleteReceiptRuleSet.xml"); ASSERT_TRUE(result) << preconditionError() << std::endl; diff --git a/cpp/example_code/ses/tests/gtest_delete_template.cpp b/cpp/example_code/ses/tests/gtest_delete_template.cpp index ef21f45c0f2..08808741a9a 100644 --- a/cpp/example_code/ses/tests/gtest_delete_template.cpp +++ b/cpp/example_code/ses/tests/gtest_delete_template.cpp @@ -17,7 +17,7 @@ namespace AwsDocTest { // NOLINTNEXTLINE(readability-named-parameter) - TEST_F(SES_GTests, delete_template_1_) { + TEST_F(SES_GTests, delete_template_3_) { MockHTTP mockHttp; bool result = mockHttp.addResponseWithBody("mock_input/DeleteTemplate.xml"); ASSERT_TRUE(result) << preconditionError() << std::endl; diff --git a/cpp/example_code/ses/tests/gtest_get_template.cpp b/cpp/example_code/ses/tests/gtest_get_template.cpp index 333de4a5c09..7167b3a2fa5 100644 --- a/cpp/example_code/ses/tests/gtest_get_template.cpp +++ b/cpp/example_code/ses/tests/gtest_get_template.cpp @@ -17,7 +17,7 @@ namespace AwsDocTest { // NOLINTNEXTLINE(readability-named-parameter) - TEST_F(SES_GTests, get_template_1_) { + TEST_F(SES_GTests, get_template_3_) { MockHTTP mockHttp; bool result = mockHttp.addResponseWithBody("mock_input/GetTemplate.xml"); ASSERT_TRUE(result) << preconditionError() << std::endl; diff --git a/cpp/example_code/ses/tests/gtest_list_identities.cpp b/cpp/example_code/ses/tests/gtest_list_identities.cpp index 6e5dcd2f3d8..8f4e6564e44 100644 --- a/cpp/example_code/ses/tests/gtest_list_identities.cpp +++ b/cpp/example_code/ses/tests/gtest_list_identities.cpp @@ -17,7 +17,7 @@ namespace AwsDocTest { // NOLINTNEXTLINE(readability-named-parameter) - TEST_F(SES_GTests, list_identities_1_) { + TEST_F(SES_GTests, list_identities_3_) { MockHTTP mockHttp; bool result = mockHttp.addResponseWithBody("mock_input/ListIdentities.xml"); ASSERT_TRUE(result) << preconditionError() << std::endl; diff --git a/cpp/example_code/ses/tests/gtest_list_receipt_filters.cpp b/cpp/example_code/ses/tests/gtest_list_receipt_filters.cpp index c77a2ab11aa..019b7373d30 100644 --- a/cpp/example_code/ses/tests/gtest_list_receipt_filters.cpp +++ b/cpp/example_code/ses/tests/gtest_list_receipt_filters.cpp @@ -17,7 +17,7 @@ namespace AwsDocTest { // NOLINTNEXTLINE(readability-named-parameter) - TEST_F(SES_GTests, list_receipt_filters_1_) { + TEST_F(SES_GTests, list_receipt_filters_3_) { MockHTTP mockHttp; bool result = mockHttp.addResponseWithBody("mock_input/ListReceiptFilters.xml"); ASSERT_TRUE(result) << preconditionError() << std::endl; diff --git a/cpp/example_code/ses/tests/gtest_send_email.cpp b/cpp/example_code/ses/tests/gtest_send_email.cpp index 31f3ee3598d..de5ac8d3ba2 100644 --- a/cpp/example_code/ses/tests/gtest_send_email.cpp +++ b/cpp/example_code/ses/tests/gtest_send_email.cpp @@ -17,7 +17,7 @@ namespace AwsDocTest { // NOLINTNEXTLINE(readability-named-parameter) - TEST_F(SES_GTests, send_email_1_) { + TEST_F(SES_GTests, send_email_3_) { MockHTTP mockHttp; bool result = mockHttp.addResponseWithBody("mock_input/SendEmail.xml"); ASSERT_TRUE(result) << preconditionError() << std::endl; diff --git a/cpp/example_code/ses/tests/gtest_send_templated_email.cpp b/cpp/example_code/ses/tests/gtest_send_templated_email.cpp index c488f3ec52e..360129a086a 100644 --- a/cpp/example_code/ses/tests/gtest_send_templated_email.cpp +++ b/cpp/example_code/ses/tests/gtest_send_templated_email.cpp @@ -17,7 +17,7 @@ namespace AwsDocTest { // NOLINTNEXTLINE(readability-named-parameter) - TEST_F(SES_GTests, send_templated_email_1_) { + TEST_F(SES_GTests, send_templated_email_3_) { MockHTTP mockHttp; bool result = mockHttp.addResponseWithBody("mock_input/SendTemplatedEmail.xml"); ASSERT_TRUE(result) << preconditionError() << std::endl; diff --git a/cpp/example_code/ses/tests/gtest_update_template.cpp b/cpp/example_code/ses/tests/gtest_update_template.cpp index bcb740521a1..7302aa01ace 100644 --- a/cpp/example_code/ses/tests/gtest_update_template.cpp +++ b/cpp/example_code/ses/tests/gtest_update_template.cpp @@ -17,7 +17,7 @@ namespace AwsDocTest { // NOLINTNEXTLINE(readability-named-parameter) - TEST_F(SES_GTests, update_template_1_) { + TEST_F(SES_GTests, update_template_3_) { MockHTTP mockHttp; bool result = mockHttp.addResponseWithBody("mock_input/UpdateTemplate.xml"); ASSERT_TRUE(result) << preconditionError() << std::endl; diff --git a/cpp/example_code/ses/tests/gtest_verify_email_identity.cpp b/cpp/example_code/ses/tests/gtest_verify_email_identity.cpp index 720938d25ff..65ee3b28b47 100644 --- a/cpp/example_code/ses/tests/gtest_verify_email_identity.cpp +++ b/cpp/example_code/ses/tests/gtest_verify_email_identity.cpp @@ -17,7 +17,7 @@ namespace AwsDocTest { // NOLINTNEXTLINE(readability-named-parameter) - TEST_F(SES_GTests, verify_email_identity_1_) { + TEST_F(SES_GTests, verify_email_identity_3_) { MockHTTP mockHttp; bool result = mockHttp.addResponseWithBody("mock_input/VerifyEmailIdentity.xml"); ASSERT_TRUE(result) << preconditionError() << std::endl;