From 570b05097c29f266f525d9a67bfa394f601716b6 Mon Sep 17 00:00:00 2001 From: Steven Meyer <108885656+meyertst-aws@users.noreply.github.com> Date: Wed, 8 Nov 2023 10:07:41 -0500 Subject: [PATCH] tweaking mock_inpout --- .../gtest_groups_and_instances_scenario.cpp | 4 +- .../10-DescribeAutoScalingGroups.xml | 32 +------- .../12-DescribeAutoScalingGroups.xml | 36 +-------- .../13-DescribeAutoScalingGroups.xml | 34 +------- .../134-DescribeAutoScalingGroups.xml | 4 +- .../135-DescribeAutoScalingGroups.xml | 4 +- .../mock_input/137-DeleteLaunchTemplate.xml | 2 +- .../15-DescribeAutoScalingGroups.xml | 34 +------- .../17-DescribeAutoScalingGroups.xml | 32 +------- .../2-DescribeAvailabilityZones.xml | 63 +-------------- .../4-DescribeAutoScalingGroups.xml | 32 +------- .../5-DescribeAutoScalingGroups.xml | 32 +------- .../7-DescribeAutoScalingGroups.xml | 32 +------- .../73-DescribeAutoScalingGroups.xml | 36 +-------- .../74-DescribeScalingActivities.xml | 77 +------------------ .../tests/mock_input/75-ListMetrics.xml | 40 ---------- .../mock_input/76-GetMetricStatistics.xml | 16 +--- .../79-DescribeAutoScalingGroups.xml | 18 +---- .../82-DescribeAutoScalingGroups.xml | 16 +--- .../ses/tests/gtest_create_receipt_rule.cpp | 2 +- 20 files changed, 32 insertions(+), 514 deletions(-) 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 01ebbd16d56..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 @@ -20,7 +20,7 @@ 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_) { @@ -29,7 +29,7 @@ namespace AwsDocTest { bool result = AwsDoc::AutoScaling::groupsAndInstancesScenario(*s_clientConfig); ASSERT_TRUE(result); } - +#endif // NOLINTNEXTLINE (readability-named-parameter) TEST_F(AutoScaling_GTests, groups_and_instances_scenario_3_) { AddCommandLineResponses(RESPONSES); diff --git a/cpp/example_code/autoscaling/tests/mock_input/10-DescribeAutoScalingGroups.xml b/cpp/example_code/autoscaling/tests/mock_input/10-DescribeAutoScalingGroups.xml index 4d10eeb9a84..53ba608effb 100644 --- a/cpp/example_code/autoscaling/tests/mock_input/10-DescribeAutoScalingGroups.xml +++ b/cpp/example_code/autoscaling/tests/mock_input/10-DescribeAutoScalingGroups.xml @@ -16,46 +16,17 @@ false us-east-1a - - InService - i-09513149875f57017 - Healthy - t1.micro - - lt-02b49ee89dd48f1a9 - 1 - integration_tests_template - - false - us-east-1a - Default 300 - arn:aws:autoscaling:us-east-1:123502194722:autoScalingGroup:a8ea22f2-1b4e-4f44-a15e-34b8415f1270:autoScalingGroupName/integration_tests_group + arn:aws:autoscaling:us-test:123456789012:autoScalingGroup:a234567-89ab-cdef-0123-4567890abcd:autoScalingGroupName/integration_tests_group GroupInServiceInstances 1Minute - - GroupMinSize - 1Minute - - - GroupDesiredCapacity - 1Minute - - - GroupTotalInstances - 1Minute - - - GroupMaxSize - 1Minute - 3 @@ -70,7 +41,6 @@ - arn:aws:iam::123502194722:role/aws-service-role/autoscaling.amazonaws.com/AWSServiceRoleForAutoScaling lt-02b49ee89dd48f1a9 integration_tests_template diff --git a/cpp/example_code/autoscaling/tests/mock_input/12-DescribeAutoScalingGroups.xml b/cpp/example_code/autoscaling/tests/mock_input/12-DescribeAutoScalingGroups.xml index 95eaef8a8a5..65c3d63e37d 100644 --- a/cpp/example_code/autoscaling/tests/mock_input/12-DescribeAutoScalingGroups.xml +++ b/cpp/example_code/autoscaling/tests/mock_input/12-DescribeAutoScalingGroups.xml @@ -16,47 +16,18 @@ false us-east-1a - - InService - i-09513149875f57017 - Healthy - t1.micro - - lt-02b49ee89dd48f1a9 - 1 - integration_tests_template - - false - us-east-1a - - + Default 300 - arn:aws:autoscaling:us-east-1:123502194722:autoScalingGroup:a8ea22f2-1b4e-4f44-a15e-34b8415f1270:autoScalingGroupName/integration_tests_group + arn:aws:autoscaling:us-test:123456789012:autoScalingGroup:a234567-89ab-cdef-0123-4567890abcd:autoScalingGroupName/integration_tests_group GroupTotalInstances 1Minute - - GroupInServiceInstances - 1Minute - - - GroupDesiredCapacity - 1Minute - - - GroupMaxSize - 1Minute - - - GroupMinSize - 1Minute - - + 3 us-east-1a @@ -70,7 +41,6 @@ - arn:aws:iam::123502194722:role/aws-service-role/autoscaling.amazonaws.com/AWSServiceRoleForAutoScaling lt-02b49ee89dd48f1a9 integration_tests_template diff --git a/cpp/example_code/autoscaling/tests/mock_input/13-DescribeAutoScalingGroups.xml b/cpp/example_code/autoscaling/tests/mock_input/13-DescribeAutoScalingGroups.xml index aa2f89dda47..5618e597dda 100644 --- a/cpp/example_code/autoscaling/tests/mock_input/13-DescribeAutoScalingGroups.xml +++ b/cpp/example_code/autoscaling/tests/mock_input/13-DescribeAutoScalingGroups.xml @@ -16,46 +16,17 @@ false us-east-1a - - InService - i-09513149875f57017 - Healthy - t1.micro - - lt-02b49ee89dd48f1a9 - 1 - integration_tests_template - - false - us-east-1a - - + Default 300 - arn:aws:autoscaling:us-east-1:123502194722:autoScalingGroup:a8ea22f2-1b4e-4f44-a15e-34b8415f1270:autoScalingGroupName/integration_tests_group + arn:aws:autoscaling:us-test:123456789012:autoScalingGroup:a234567-89ab-cdef-0123-4567890abcd:autoScalingGroupName/integration_tests_group GroupTotalInstances 1Minute - - GroupInServiceInstances - 1Minute - - - GroupMaxSize - 1Minute - - - GroupMinSize - 1Minute - - - GroupDesiredCapacity - 1Minute - 3 @@ -70,7 +41,6 @@ - arn:aws:iam::123502194722:role/aws-service-role/autoscaling.amazonaws.com/AWSServiceRoleForAutoScaling lt-02b49ee89dd48f1a9 integration_tests_template diff --git a/cpp/example_code/autoscaling/tests/mock_input/134-DescribeAutoScalingGroups.xml b/cpp/example_code/autoscaling/tests/mock_input/134-DescribeAutoScalingGroups.xml index 3d8d3eddc85..d1ce7345a9a 100644 --- a/cpp/example_code/autoscaling/tests/mock_input/134-DescribeAutoScalingGroups.xml +++ b/cpp/example_code/autoscaling/tests/mock_input/134-DescribeAutoScalingGroups.xml @@ -7,7 +7,7 @@ Default 300 - arn:aws:autoscaling:us-east-1:123502194722:autoScalingGroup:a8ea22f2-1b4e-4f44-a15e-34b8415f1270:autoScalingGroupName/integration_tests_group + arn:aws:autoscaling:us-test:123456789012:autoScalingGroup:a234567-89ab-cdef-0123-4567890abcd:autoScalingGroupName/integration_tests_group 3 @@ -22,7 +22,7 @@ - arn:aws:iam::123502194722:role/aws-service-role/autoscaling.amazonaws.com/AWSServiceRoleForAutoScaling + arn:aws:iam::123456789012:role/aws-service-role/autoscaling.amazonaws.com/AWSServiceRoleForAutoScaling lt-02b49ee89dd48f1a9 integration_tests_template diff --git a/cpp/example_code/autoscaling/tests/mock_input/135-DescribeAutoScalingGroups.xml b/cpp/example_code/autoscaling/tests/mock_input/135-DescribeAutoScalingGroups.xml index 36780889139..9790738fa6b 100644 --- a/cpp/example_code/autoscaling/tests/mock_input/135-DescribeAutoScalingGroups.xml +++ b/cpp/example_code/autoscaling/tests/mock_input/135-DescribeAutoScalingGroups.xml @@ -7,7 +7,7 @@ Default 300 - arn:aws:autoscaling:us-east-1:123502194722:autoScalingGroup:a8ea22f2-1b4e-4f44-a15e-34b8415f1270:autoScalingGroupName/integration_tests_group + arn:aws:autoscaling:us-test:123456789012:autoScalingGroup:a234567-89ab-cdef-0123-4567890abcd:autoScalingGroupName/integration_tests_group 3 @@ -22,7 +22,7 @@ - arn:aws:iam::123502194722:role/aws-service-role/autoscaling.amazonaws.com/AWSServiceRoleForAutoScaling + arn:aws:iam::123456789012:role/aws-service-role/autoscaling.amazonaws.com/AWSServiceRoleForAutoScaling lt-02b49ee89dd48f1a9 integration_tests_template diff --git a/cpp/example_code/autoscaling/tests/mock_input/137-DeleteLaunchTemplate.xml b/cpp/example_code/autoscaling/tests/mock_input/137-DeleteLaunchTemplate.xml index 45a96d46e5c..3f253199340 100644 --- a/cpp/example_code/autoscaling/tests/mock_input/137-DeleteLaunchTemplate.xml +++ b/cpp/example_code/autoscaling/tests/mock_input/137-DeleteLaunchTemplate.xml @@ -3,7 +3,7 @@ fec10038-20f2-41e1-b7b5-3520d602b69f 2023-11-06T19:24:51.000Z - arn:aws:iam::123502194722:user/UnitTester + arn:aws:iam::123456789012:user/UnitTester 1 1 lt-02b49ee89dd48f1a9 diff --git a/cpp/example_code/autoscaling/tests/mock_input/15-DescribeAutoScalingGroups.xml b/cpp/example_code/autoscaling/tests/mock_input/15-DescribeAutoScalingGroups.xml index 1aedae0dae4..10a23cec83f 100644 --- a/cpp/example_code/autoscaling/tests/mock_input/15-DescribeAutoScalingGroups.xml +++ b/cpp/example_code/autoscaling/tests/mock_input/15-DescribeAutoScalingGroups.xml @@ -16,46 +16,17 @@ false us-east-1a - - InService - i-09513149875f57017 - Healthy - t1.micro - - lt-02b49ee89dd48f1a9 - 1 - integration_tests_template - - false - us-east-1a - Default 300 - arn:aws:autoscaling:us-east-1:123502194722:autoScalingGroup:a8ea22f2-1b4e-4f44-a15e-34b8415f1270:autoScalingGroupName/integration_tests_group + arn:aws:autoscaling:us-test:123456789012:autoScalingGroup:a234567-89ab-cdef-0123-4567890abcd:autoScalingGroupName/integration_tests_group GroupTotalInstances 1Minute - - GroupInServiceInstances - 1Minute - - - GroupMaxSize - 1Minute - - - GroupMinSize - 1Minute - - - GroupDesiredCapacity - 1Minute - 3 @@ -70,8 +41,7 @@ - arn:aws:iam::123502194722:role/aws-service-role/autoscaling.amazonaws.com/AWSServiceRoleForAutoScaling - + lt-02b49ee89dd48f1a9 integration_tests_template diff --git a/cpp/example_code/autoscaling/tests/mock_input/17-DescribeAutoScalingGroups.xml b/cpp/example_code/autoscaling/tests/mock_input/17-DescribeAutoScalingGroups.xml index 49f2381709b..013fb5175ab 100644 --- a/cpp/example_code/autoscaling/tests/mock_input/17-DescribeAutoScalingGroups.xml +++ b/cpp/example_code/autoscaling/tests/mock_input/17-DescribeAutoScalingGroups.xml @@ -16,46 +16,17 @@ false us-east-1a - - InService - i-09513149875f57017 - Healthy - t1.micro - - lt-02b49ee89dd48f1a9 - 1 - integration_tests_template - - false - us-east-1a - Default 300 - arn:aws:autoscaling:us-east-1:123502194722:autoScalingGroup:a8ea22f2-1b4e-4f44-a15e-34b8415f1270:autoScalingGroupName/integration_tests_group + arn:aws:autoscaling:us-test:123456789012:autoScalingGroup:a234567-89ab-cdef-0123-4567890abcd:autoScalingGroupName/integration_tests_group GroupTotalInstances 1Minute - - GroupInServiceInstances - 1Minute - - - GroupMaxSize - 1Minute - - - GroupMinSize - 1Minute - - - GroupDesiredCapacity - 1Minute - 3 @@ -70,7 +41,6 @@ - arn:aws:iam::123502194722:role/aws-service-role/autoscaling.amazonaws.com/AWSServiceRoleForAutoScaling lt-02b49ee89dd48f1a9 integration_tests_template diff --git a/cpp/example_code/autoscaling/tests/mock_input/2-DescribeAvailabilityZones.xml b/cpp/example_code/autoscaling/tests/mock_input/2-DescribeAvailabilityZones.xml index bf3fa826f11..132c206f518 100644 --- a/cpp/example_code/autoscaling/tests/mock_input/2-DescribeAvailabilityZones.xml +++ b/cpp/example_code/autoscaling/tests/mock_input/2-DescribeAvailabilityZones.xml @@ -5,67 +5,12 @@ us-east-1a use1-az2 available - us-east-1 - us-east-1 + us-test + us-test opt-in-not-required - us-east-1 + us-test availability-zone - - us-east-1b - use1-az4 - available - us-east-1 - us-east-1 - opt-in-not-required - us-east-1 - availability-zone - - - - us-east-1c - use1-az6 - available - us-east-1 - us-east-1 - opt-in-not-required - us-east-1 - availability-zone - - - - us-east-1d - use1-az1 - available - us-east-1 - us-east-1 - opt-in-not-required - us-east-1 - availability-zone - - - - us-east-1e - use1-az3 - available - us-east-1 - us-east-1 - opt-in-not-required - us-east-1 - availability-zone - - - - us-east-1f - use1-az5 - available - us-east-1 - us-east-1 - opt-in-not-required - us-east-1 - availability-zone - - - + diff --git a/cpp/example_code/autoscaling/tests/mock_input/4-DescribeAutoScalingGroups.xml b/cpp/example_code/autoscaling/tests/mock_input/4-DescribeAutoScalingGroups.xml index b25a76c9755..3e61949271b 100644 --- a/cpp/example_code/autoscaling/tests/mock_input/4-DescribeAutoScalingGroups.xml +++ b/cpp/example_code/autoscaling/tests/mock_input/4-DescribeAutoScalingGroups.xml @@ -16,46 +16,17 @@ false us-east-1a - - InService - i-09513149875f57017 - Healthy - t1.micro - - lt-02b49ee89dd48f1a9 - 1 - integration_tests_template - - false - us-east-1a - Default 300 - arn:aws:autoscaling:us-east-1:123502194722:autoScalingGroup:a8ea22f2-1b4e-4f44-a15e-34b8415f1270:autoScalingGroupName/integration_tests_group + arn:aws:autoscaling:us-test:123456789012:autoScalingGroup:a234567-89ab-cdef-0123-4567890abcd:autoScalingGroupName/integration_tests_group GroupDesiredCapacity 1Minute - - GroupMinSize - 1Minute - - - GroupTotalInstances - 1Minute - - - GroupMaxSize - 1Minute - - - GroupInServiceInstances - 1Minute - 3 @@ -70,7 +41,6 @@ - arn:aws:iam::123502194722:role/aws-service-role/autoscaling.amazonaws.com/AWSServiceRoleForAutoScaling lt-02b49ee89dd48f1a9 integration_tests_template diff --git a/cpp/example_code/autoscaling/tests/mock_input/5-DescribeAutoScalingGroups.xml b/cpp/example_code/autoscaling/tests/mock_input/5-DescribeAutoScalingGroups.xml index 744d4f5d442..d1785d99360 100644 --- a/cpp/example_code/autoscaling/tests/mock_input/5-DescribeAutoScalingGroups.xml +++ b/cpp/example_code/autoscaling/tests/mock_input/5-DescribeAutoScalingGroups.xml @@ -16,46 +16,17 @@ false us-east-1a - - InService - i-09513149875f57017 - Healthy - t1.micro - - lt-02b49ee89dd48f1a9 - 1 - integration_tests_template - - false - us-east-1a - Default 300 - arn:aws:autoscaling:us-east-1:123502194722:autoScalingGroup:a8ea22f2-1b4e-4f44-a15e-34b8415f1270:autoScalingGroupName/integration_tests_group + arn:aws:autoscaling:us-test:123456789012:autoScalingGroup:a234567-89ab-cdef-0123-4567890abcd:autoScalingGroupName/integration_tests_group GroupInServiceInstances 1Minute - - GroupMinSize - 1Minute - - - GroupDesiredCapacity - 1Minute - - - GroupTotalInstances - 1Minute - - - GroupMaxSize - 1Minute - 3 @@ -70,7 +41,6 @@ - arn:aws:iam::123502194722:role/aws-service-role/autoscaling.amazonaws.com/AWSServiceRoleForAutoScaling lt-02b49ee89dd48f1a9 integration_tests_template diff --git a/cpp/example_code/autoscaling/tests/mock_input/7-DescribeAutoScalingGroups.xml b/cpp/example_code/autoscaling/tests/mock_input/7-DescribeAutoScalingGroups.xml index 19e228039e6..9863ef3ab8d 100644 --- a/cpp/example_code/autoscaling/tests/mock_input/7-DescribeAutoScalingGroups.xml +++ b/cpp/example_code/autoscaling/tests/mock_input/7-DescribeAutoScalingGroups.xml @@ -16,46 +16,17 @@ false us-east-1a - - InService - i-09513149875f57017 - Healthy - t1.micro - - lt-02b49ee89dd48f1a9 - 1 - integration_tests_template - - false - us-east-1a - Default 300 - arn:aws:autoscaling:us-east-1:123502194722:autoScalingGroup:a8ea22f2-1b4e-4f44-a15e-34b8415f1270:autoScalingGroupName/integration_tests_group + arn:aws:autoscaling:us-test:123456789012:autoScalingGroup:a234567-89ab-cdef-0123-4567890abcd:autoScalingGroupName/integration_tests_group GroupDesiredCapacity 1Minute - - GroupInServiceInstances - 1Minute - - - GroupMaxSize - 1Minute - - - GroupMinSize - 1Minute - - - GroupTotalInstances - 1Minute - 3 @@ -70,7 +41,6 @@ - arn:aws:iam::123502194722:role/aws-service-role/autoscaling.amazonaws.com/AWSServiceRoleForAutoScaling lt-02b49ee89dd48f1a9 integration_tests_template diff --git a/cpp/example_code/autoscaling/tests/mock_input/73-DescribeAutoScalingGroups.xml b/cpp/example_code/autoscaling/tests/mock_input/73-DescribeAutoScalingGroups.xml index 6d9822ee7d7..33c19c4d799 100644 --- a/cpp/example_code/autoscaling/tests/mock_input/73-DescribeAutoScalingGroups.xml +++ b/cpp/example_code/autoscaling/tests/mock_input/73-DescribeAutoScalingGroups.xml @@ -16,47 +16,18 @@ false us-east-1a - - InService - i-0a23fc0e38f39ca25 - Healthy - t1.micro - - lt-02b49ee89dd48f1a9 - 1 - integration_tests_template - - false - us-east-1a - Default 300 - arn:aws:autoscaling:us-east-1:123502194722:autoScalingGroup:a8ea22f2-1b4e-4f44-a15e-34b8415f1270:autoScalingGroupName/integration_tests_group + arn:aws:autoscaling:us-test:123456789012:autoScalingGroup:a234567-89ab-cdef-0123-4567890abcd:autoScalingGroupName/integration_tests_group GroupInServiceInstances 1Minute - - GroupDesiredCapacity - 1Minute - - - GroupMinSize - 1Minute - - - GroupMaxSize - 1Minute - - - GroupTotalInstances - 1Minute - - + 3 us-east-1a @@ -70,8 +41,7 @@ - arn:aws:iam::123502194722:role/aws-service-role/autoscaling.amazonaws.com/AWSServiceRoleForAutoScaling - + lt-02b49ee89dd48f1a9 integration_tests_template diff --git a/cpp/example_code/autoscaling/tests/mock_input/74-DescribeScalingActivities.xml b/cpp/example_code/autoscaling/tests/mock_input/74-DescribeScalingActivities.xml index 8f8c4af4eb3..6d9768d2d1c 100644 --- a/cpp/example_code/autoscaling/tests/mock_input/74-DescribeScalingActivities.xml +++ b/cpp/example_code/autoscaling/tests/mock_input/74-DescribeScalingActivities.xml @@ -2,7 +2,7 @@ Launching a new EC2 instance: i-0a23fc0e38f39ca25 - arn:aws:autoscaling:us-east-1:123502194722:autoScalingGroup:a8ea22f2-1b4e-4f44-a15e-34b8415f1270:autoScalingGroupName/integration_tests_group + 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 @@ -12,81 +12,6 @@ 2023-11-06T19:47:18Z Successful - - Terminating EC2 instance: i-0893468e046aaf009 - arn:aws:autoscaling:us-east-1:123502194722:autoScalingGroup:a8ea22f2-1b4e-4f44-a15e-34b8415f1270:autoScalingGroupName/integration_tests_group - 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 - 100 - 2023-11-06T19:46:34.404Z -
{"Availability Zone":"us-east-1a"}
- 2023-11-06T19:47:16Z - Successful -
- - Launching a new EC2 instance: i-09513149875f57017 - arn:aws:autoscaling:us-east-1:123502194722:autoScalingGroup:a8ea22f2-1b4e-4f44-a15e-34b8415f1270:autoScalingGroupName/integration_tests_group - At 2023-11-06T19:26:04Z a user request explicitly set group desired capacity changing the desired capacity from 1 to 2. At 2023-11-06T19:26:12Z an instance was started in response to a difference between desired and actual capacity, increasing the capacity from 1 to 2. - 9e962e98-6639-264e-9dc0-fd30c651b2e6 - integration_tests_group - 100 - 2023-11-06T19:26:14.601Z -
{"Availability Zone":"us-east-1a"}
- 2023-11-06T19:28:21Z - Successful -
- - Launching a new EC2 instance: i-0893468e046aaf009 - arn:aws:autoscaling:us-east-1:123502194722:autoScalingGroup:a8ea22f2-1b4e-4f44-a15e-34b8415f1270:autoScalingGroupName/integration_tests_group - At 2023-11-06T19:25:29Z an instance was started in response to a difference between desired and actual capacity, increasing the capacity from 0 to 1. - 65a62e98-6398-1e2b-2a58-6801272ceeb6 - integration_tests_group - 100 - 2023-11-06T19:25:31.527Z -
{"Availability Zone":"us-east-1a"}
- 2023-11-06T19:26:03Z - Successful -
- - Launching a new EC2 instance. Status Reason: We currently do not have sufficient t1.micro capacity in the Availability Zone you requested (us-east-1a). Our system will be working on provisioning additional capacity. You can currently get t1.micro capacity by not specifying an Availability Zone in your request or choosing us-east-1b, us-east-1c, us-east-1d, us-east-1f. Launching EC2 instance failed. - arn:aws:autoscaling:us-east-1:123502194722:autoScalingGroup:a8ea22f2-1b4e-4f44-a15e-34b8415f1270:autoScalingGroupName/integration_tests_group - At 2023-11-06T19:25:18Z an instance was started in response to a difference between desired and actual capacity, increasing the capacity from 0 to 1. - We currently do not have sufficient t1.micro capacity in the Availability Zone you requested (us-east-1a). Our system will be working on provisioning additional capacity. You can currently get t1.micro capacity by not specifying an Availability Zone in your request or choosing us-east-1b, us-east-1c, us-east-1d, us-east-1f. Launching EC2 instance failed. - 47262e98-6323-f996-33de-a7547ae3fcdb - integration_tests_group - 100 - 2023-11-06T19:25:24.094Z -
{"Availability Zone":"us-east-1a"}
- 2023-11-06T19:25:24Z - Failed -
- - Launching a new EC2 instance. Status Reason: We currently do not have sufficient t1.micro capacity in the Availability Zone you requested (us-east-1a). Our system will be working on provisioning additional capacity. You can currently get t1.micro capacity by not specifying an Availability Zone in your request or choosing us-east-1b, us-east-1c, us-east-1d, us-east-1f. Launching EC2 instance failed. - arn:aws:autoscaling:us-east-1:123502194722:autoScalingGroup:a8ea22f2-1b4e-4f44-a15e-34b8415f1270:autoScalingGroupName/integration_tests_group - At 2023-11-06T19:25:07Z an instance was started in response to a difference between desired and actual capacity, increasing the capacity from 0 to 1. - We currently do not have sufficient t1.micro capacity in the Availability Zone you requested (us-east-1a). Our system will be working on provisioning additional capacity. You can currently get t1.micro capacity by not specifying an Availability Zone in your request or choosing us-east-1b, us-east-1c, us-east-1d, us-east-1f. Launching EC2 instance failed. - 0cc62e98-626d-5cf4-d552-f744a73f31e1 - integration_tests_group - 100 - 2023-11-06T19:25:12.407Z -
{"Availability Zone":"us-east-1a"}
- 2023-11-06T19:25:12Z - Failed -
- - Launching a new EC2 instance. Status Reason: We currently do not have sufficient t1.micro capacity in the Availability Zone you requested (us-east-1a). Our system will be working on provisioning additional capacity. You can currently get t1.micro capacity by not specifying an Availability Zone in your request or choosing us-east-1b, us-east-1c, us-east-1d, us-east-1f. Launching EC2 instance failed. - arn:aws:autoscaling:us-east-1:123502194722:autoScalingGroup:a8ea22f2-1b4e-4f44-a15e-34b8415f1270:autoScalingGroupName/integration_tests_group - At 2023-11-06T19:24:53Z a user request created an AutoScalingGroup changing the desired capacity from 0 to 1. At 2023-11-06T19:24:56Z an instance was started in response to a difference between desired and actual capacity, increasing the capacity from 0 to 1. - We currently do not have sufficient t1.micro capacity in the Availability Zone you requested (us-east-1a). Our system will be working on provisioning additional capacity. You can currently get t1.micro capacity by not specifying an Availability Zone in your request or choosing us-east-1b, us-east-1c, us-east-1d, us-east-1f. Launching EC2 instance failed. - 5da62e98-61bc-44bd-645a-40b4c9069ed1 - integration_tests_group - 100 - 2023-11-06T19:25:01.073Z -
{"Availability Zone":"us-east-1a"}
- 2023-11-06T19:25:01Z - Failed -
diff --git a/cpp/example_code/autoscaling/tests/mock_input/75-ListMetrics.xml b/cpp/example_code/autoscaling/tests/mock_input/75-ListMetrics.xml index f2fb50a34c6..cc2c5c264df 100644 --- a/cpp/example_code/autoscaling/tests/mock_input/75-ListMetrics.xml +++ b/cpp/example_code/autoscaling/tests/mock_input/75-ListMetrics.xml @@ -10,46 +10,6 @@ - - GroupMaxSize - AWS/AutoScaling - - - AutoScalingGroupName - integration_tests_group - - - - - GroupDesiredCapacity - AWS/AutoScaling - - - AutoScalingGroupName - integration_tests_group - - - - - GroupMinSize - AWS/AutoScaling - - - AutoScalingGroupName - integration_tests_group - - - - - GroupInServiceInstances - AWS/AutoScaling - - - AutoScalingGroupName - integration_tests_group - - - diff --git a/cpp/example_code/autoscaling/tests/mock_input/76-GetMetricStatistics.xml b/cpp/example_code/autoscaling/tests/mock_input/76-GetMetricStatistics.xml index 9dfd64b4bf7..afaff509528 100644 --- a/cpp/example_code/autoscaling/tests/mock_input/76-GetMetricStatistics.xml +++ b/cpp/example_code/autoscaling/tests/mock_input/76-GetMetricStatistics.xml @@ -7,21 +7,7 @@ 1.0 2023-11-06T15:47:00Z - - 1.5 - None - 2.0 - 1.0 - 2023-11-06T17:47:00Z - - - 2.0 - None - 3.0 - 1.0 - 2023-11-06T18:47:00Z - - + diff --git a/cpp/example_code/autoscaling/tests/mock_input/79-DescribeAutoScalingGroups.xml b/cpp/example_code/autoscaling/tests/mock_input/79-DescribeAutoScalingGroups.xml index 56c0d63ad82..841d638ecb8 100644 --- a/cpp/example_code/autoscaling/tests/mock_input/79-DescribeAutoScalingGroups.xml +++ b/cpp/example_code/autoscaling/tests/mock_input/79-DescribeAutoScalingGroups.xml @@ -16,25 +16,12 @@ false us-east-1a - - InService - i-0a23fc0e38f39ca25 - Healthy - t1.micro - - lt-02b49ee89dd48f1a9 - 1 - integration_tests_template - - false - us-east-1a - - + Default 300 - arn:aws:autoscaling:us-east-1:123502194722:autoScalingGroup:a8ea22f2-1b4e-4f44-a15e-34b8415f1270:autoScalingGroupName/integration_tests_group + arn:aws:autoscaling:us-test:123456789012:autoScalingGroup:a234567-89ab-cdef-0123-4567890abcd:autoScalingGroupName/integration_tests_group 3 @@ -49,7 +36,6 @@ - arn:aws:iam::123502194722:role/aws-service-role/autoscaling.amazonaws.com/AWSServiceRoleForAutoScaling lt-02b49ee89dd48f1a9 integration_tests_template diff --git a/cpp/example_code/autoscaling/tests/mock_input/82-DescribeAutoScalingGroups.xml b/cpp/example_code/autoscaling/tests/mock_input/82-DescribeAutoScalingGroups.xml index e4627468397..db02ccad414 100644 --- a/cpp/example_code/autoscaling/tests/mock_input/82-DescribeAutoScalingGroups.xml +++ b/cpp/example_code/autoscaling/tests/mock_input/82-DescribeAutoScalingGroups.xml @@ -16,25 +16,11 @@ false us-east-1a - - Terminating - i-0a23fc0e38f39ca25 - Healthy - t1.micro - - lt-02b49ee89dd48f1a9 - 1 - integration_tests_template - - false - us-east-1a - Default 300 - arn:aws:autoscaling:us-east-1:123502194722:autoScalingGroup:a8ea22f2-1b4e-4f44-a15e-34b8415f1270:autoScalingGroupName/integration_tests_group 3 @@ -49,7 +35,7 @@ - arn:aws:iam::123502194722:role/aws-service-role/autoscaling.amazonaws.com/AWSServiceRoleForAutoScaling + arn:aws:iam::123456789012:role/aws-service-role/autoscaling.amazonaws.com/AWSServiceRoleForAutoScaling lt-02b49ee89dd48f1a9 integration_tests_template 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 1d37c3ee450..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__) { + TEST_F(SES_GTests, create_receipt_rule_3_) { MockHTTP mockHttp; bool result = mockHttp.addResponseWithBody("mock_input/CreateReceiptRule.xml"); ASSERT_TRUE(result) << preconditionError() << std::endl;