Skip to content

Commit

Permalink
tweaking mock_inpout
Browse files Browse the repository at this point in the history
  • Loading branch information
meyertst-aws committed Nov 8, 2023
1 parent 05e784b commit 570b050
Show file tree
Hide file tree
Showing 20 changed files with 32 additions and 514 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace AwsDocTest {
extern const std::vector<std::string> 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_) {
Expand All @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,46 +16,17 @@
<ProtectedFromScaleIn>false</ProtectedFromScaleIn>
<AvailabilityZone>us-east-1a</AvailabilityZone>
</member>
<member>
<LifecycleState>InService</LifecycleState>
<InstanceId>i-09513149875f57017</InstanceId>
<HealthStatus>Healthy</HealthStatus>
<InstanceType>t1.micro</InstanceType>
<LaunchTemplate>
<LaunchTemplateId>lt-02b49ee89dd48f1a9</LaunchTemplateId>
<Version>1</Version>
<LaunchTemplateName>integration_tests_template</LaunchTemplateName>
</LaunchTemplate>
<ProtectedFromScaleIn>false</ProtectedFromScaleIn>
<AvailabilityZone>us-east-1a</AvailabilityZone>
</member>
</Instances>
<TerminationPolicies>
<member>Default</member>
</TerminationPolicies>
<DefaultCooldown>300</DefaultCooldown>
<AutoScalingGroupARN>arn:aws:autoscaling:us-east-1:123502194722:autoScalingGroup:a8ea22f2-1b4e-4f44-a15e-34b8415f1270:autoScalingGroupName/integration_tests_group</AutoScalingGroupARN>
<AutoScalingGroupARN>arn:aws:autoscaling:us-test:123456789012:autoScalingGroup:a234567-89ab-cdef-0123-4567890abcd:autoScalingGroupName/integration_tests_group</AutoScalingGroupARN>
<EnabledMetrics>
<member>
<Metric>GroupInServiceInstances</Metric>
<Granularity>1Minute</Granularity>
</member>
<member>
<Metric>GroupMinSize</Metric>
<Granularity>1Minute</Granularity>
</member>
<member>
<Metric>GroupDesiredCapacity</Metric>
<Granularity>1Minute</Granularity>
</member>
<member>
<Metric>GroupTotalInstances</Metric>
<Granularity>1Minute</Granularity>
</member>
<member>
<Metric>GroupMaxSize</Metric>
<Granularity>1Minute</Granularity>
</member>
</EnabledMetrics>
<MaxSize>3</MaxSize>
<AvailabilityZones>
Expand All @@ -70,7 +41,6 @@
<TrafficSources/>
<LoadBalancerNames/>
<Tags/>
<ServiceLinkedRoleARN>arn:aws:iam::123502194722:role/aws-service-role/autoscaling.amazonaws.com/AWSServiceRoleForAutoScaling</ServiceLinkedRoleARN>
<LaunchTemplate>
<LaunchTemplateId>lt-02b49ee89dd48f1a9</LaunchTemplateId>
<LaunchTemplateName>integration_tests_template</LaunchTemplateName>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,47 +16,18 @@
<ProtectedFromScaleIn>false</ProtectedFromScaleIn>
<AvailabilityZone>us-east-1a</AvailabilityZone>
</member>
<member>
<LifecycleState>InService</LifecycleState>
<InstanceId>i-09513149875f57017</InstanceId>
<HealthStatus>Healthy</HealthStatus>
<InstanceType>t1.micro</InstanceType>
<LaunchTemplate>
<LaunchTemplateId>lt-02b49ee89dd48f1a9</LaunchTemplateId>
<Version>1</Version>
<LaunchTemplateName>integration_tests_template</LaunchTemplateName>
</LaunchTemplate>
<ProtectedFromScaleIn>false</ProtectedFromScaleIn>
<AvailabilityZone>us-east-1a</AvailabilityZone>
</member>
</Instances>
</Instances>
<TerminationPolicies>
<member>Default</member>
</TerminationPolicies>
<DefaultCooldown>300</DefaultCooldown>
<AutoScalingGroupARN>arn:aws:autoscaling:us-east-1:123502194722:autoScalingGroup:a8ea22f2-1b4e-4f44-a15e-34b8415f1270:autoScalingGroupName/integration_tests_group</AutoScalingGroupARN>
<AutoScalingGroupARN>arn:aws:autoscaling:us-test:123456789012:autoScalingGroup:a234567-89ab-cdef-0123-4567890abcd:autoScalingGroupName/integration_tests_group</AutoScalingGroupARN>
<EnabledMetrics>
<member>
<Metric>GroupTotalInstances</Metric>
<Granularity>1Minute</Granularity>
</member>
<member>
<Metric>GroupInServiceInstances</Metric>
<Granularity>1Minute</Granularity>
</member>
<member>
<Metric>GroupDesiredCapacity</Metric>
<Granularity>1Minute</Granularity>
</member>
<member>
<Metric>GroupMaxSize</Metric>
<Granularity>1Minute</Granularity>
</member>
<member>
<Metric>GroupMinSize</Metric>
<Granularity>1Minute</Granularity>
</member>
</EnabledMetrics>
</EnabledMetrics>
<MaxSize>3</MaxSize>
<AvailabilityZones>
<member>us-east-1a</member>
Expand All @@ -70,7 +41,6 @@
<TrafficSources/>
<LoadBalancerNames/>
<Tags/>
<ServiceLinkedRoleARN>arn:aws:iam::123502194722:role/aws-service-role/autoscaling.amazonaws.com/AWSServiceRoleForAutoScaling</ServiceLinkedRoleARN>
<LaunchTemplate>
<LaunchTemplateId>lt-02b49ee89dd48f1a9</LaunchTemplateId>
<LaunchTemplateName>integration_tests_template</LaunchTemplateName>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,46 +16,17 @@
<ProtectedFromScaleIn>false</ProtectedFromScaleIn>
<AvailabilityZone>us-east-1a</AvailabilityZone>
</member>
<member>
<LifecycleState>InService</LifecycleState>
<InstanceId>i-09513149875f57017</InstanceId>
<HealthStatus>Healthy</HealthStatus>
<InstanceType>t1.micro</InstanceType>
<LaunchTemplate>
<LaunchTemplateId>lt-02b49ee89dd48f1a9</LaunchTemplateId>
<Version>1</Version>
<LaunchTemplateName>integration_tests_template</LaunchTemplateName>
</LaunchTemplate>
<ProtectedFromScaleIn>false</ProtectedFromScaleIn>
<AvailabilityZone>us-east-1a</AvailabilityZone>
</member>
</Instances>
</Instances>
<TerminationPolicies>
<member>Default</member>
</TerminationPolicies>
<DefaultCooldown>300</DefaultCooldown>
<AutoScalingGroupARN>arn:aws:autoscaling:us-east-1:123502194722:autoScalingGroup:a8ea22f2-1b4e-4f44-a15e-34b8415f1270:autoScalingGroupName/integration_tests_group</AutoScalingGroupARN>
<AutoScalingGroupARN>arn:aws:autoscaling:us-test:123456789012:autoScalingGroup:a234567-89ab-cdef-0123-4567890abcd:autoScalingGroupName/integration_tests_group</AutoScalingGroupARN>
<EnabledMetrics>
<member>
<Metric>GroupTotalInstances</Metric>
<Granularity>1Minute</Granularity>
</member>
<member>
<Metric>GroupInServiceInstances</Metric>
<Granularity>1Minute</Granularity>
</member>
<member>
<Metric>GroupMaxSize</Metric>
<Granularity>1Minute</Granularity>
</member>
<member>
<Metric>GroupMinSize</Metric>
<Granularity>1Minute</Granularity>
</member>
<member>
<Metric>GroupDesiredCapacity</Metric>
<Granularity>1Minute</Granularity>
</member>
</EnabledMetrics>
<MaxSize>3</MaxSize>
<AvailabilityZones>
Expand All @@ -70,7 +41,6 @@
<TrafficSources/>
<LoadBalancerNames/>
<Tags/>
<ServiceLinkedRoleARN>arn:aws:iam::123502194722:role/aws-service-role/autoscaling.amazonaws.com/AWSServiceRoleForAutoScaling</ServiceLinkedRoleARN>
<LaunchTemplate>
<LaunchTemplateId>lt-02b49ee89dd48f1a9</LaunchTemplateId>
<LaunchTemplateName>integration_tests_template</LaunchTemplateName>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<member>Default</member>
</TerminationPolicies>
<DefaultCooldown>300</DefaultCooldown>
<AutoScalingGroupARN>arn:aws:autoscaling:us-east-1:123502194722:autoScalingGroup:a8ea22f2-1b4e-4f44-a15e-34b8415f1270:autoScalingGroupName/integration_tests_group</AutoScalingGroupARN>
<AutoScalingGroupARN>arn:aws:autoscaling:us-test:123456789012:autoScalingGroup:a234567-89ab-cdef-0123-4567890abcd:autoScalingGroupName/integration_tests_group</AutoScalingGroupARN>
<EnabledMetrics/>
<MaxSize>3</MaxSize>
<AvailabilityZones>
Expand All @@ -22,7 +22,7 @@
<TrafficSources/>
<LoadBalancerNames/>
<Tags/>
<ServiceLinkedRoleARN>arn:aws:iam::123502194722:role/aws-service-role/autoscaling.amazonaws.com/AWSServiceRoleForAutoScaling</ServiceLinkedRoleARN>
<ServiceLinkedRoleARN>arn:aws:iam::123456789012:role/aws-service-role/autoscaling.amazonaws.com/AWSServiceRoleForAutoScaling</ServiceLinkedRoleARN>
<LaunchTemplate>
<LaunchTemplateId>lt-02b49ee89dd48f1a9</LaunchTemplateId>
<LaunchTemplateName>integration_tests_template</LaunchTemplateName>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<member>Default</member>
</TerminationPolicies>
<DefaultCooldown>300</DefaultCooldown>
<AutoScalingGroupARN>arn:aws:autoscaling:us-east-1:123502194722:autoScalingGroup:a8ea22f2-1b4e-4f44-a15e-34b8415f1270:autoScalingGroupName/integration_tests_group</AutoScalingGroupARN>
<AutoScalingGroupARN>arn:aws:autoscaling:us-test:123456789012:autoScalingGroup:a234567-89ab-cdef-0123-4567890abcd:autoScalingGroupName/integration_tests_group</AutoScalingGroupARN>
<EnabledMetrics/>
<MaxSize>3</MaxSize>
<AvailabilityZones>
Expand All @@ -22,7 +22,7 @@
<TrafficSources/>
<LoadBalancerNames/>
<Tags/>
<ServiceLinkedRoleARN>arn:aws:iam::123502194722:role/aws-service-role/autoscaling.amazonaws.com/AWSServiceRoleForAutoScaling</ServiceLinkedRoleARN>
<ServiceLinkedRoleARN>arn:aws:iam::123456789012:role/aws-service-role/autoscaling.amazonaws.com/AWSServiceRoleForAutoScaling</ServiceLinkedRoleARN>
<LaunchTemplate>
<LaunchTemplateId>lt-02b49ee89dd48f1a9</LaunchTemplateId>
<LaunchTemplateName>integration_tests_template</LaunchTemplateName>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<requestId>fec10038-20f2-41e1-b7b5-3520d602b69f</requestId>
<launchTemplate>
<createTime>2023-11-06T19:24:51.000Z</createTime>
<createdBy>arn:aws:iam::123502194722:user/UnitTester</createdBy>
<createdBy>arn:aws:iam::123456789012:user/UnitTester</createdBy>
<defaultVersionNumber>1</defaultVersionNumber>
<latestVersionNumber>1</latestVersionNumber>
<launchTemplateId>lt-02b49ee89dd48f1a9</launchTemplateId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,46 +16,17 @@
<ProtectedFromScaleIn>false</ProtectedFromScaleIn>
<AvailabilityZone>us-east-1a</AvailabilityZone>
</member>
<member>
<LifecycleState>InService</LifecycleState>
<InstanceId>i-09513149875f57017</InstanceId>
<HealthStatus>Healthy</HealthStatus>
<InstanceType>t1.micro</InstanceType>
<LaunchTemplate>
<LaunchTemplateId>lt-02b49ee89dd48f1a9</LaunchTemplateId>
<Version>1</Version>
<LaunchTemplateName>integration_tests_template</LaunchTemplateName>
</LaunchTemplate>
<ProtectedFromScaleIn>false</ProtectedFromScaleIn>
<AvailabilityZone>us-east-1a</AvailabilityZone>
</member>
</Instances>
<TerminationPolicies>
<member>Default</member>
</TerminationPolicies>
<DefaultCooldown>300</DefaultCooldown>
<AutoScalingGroupARN>arn:aws:autoscaling:us-east-1:123502194722:autoScalingGroup:a8ea22f2-1b4e-4f44-a15e-34b8415f1270:autoScalingGroupName/integration_tests_group</AutoScalingGroupARN>
<AutoScalingGroupARN>arn:aws:autoscaling:us-test:123456789012:autoScalingGroup:a234567-89ab-cdef-0123-4567890abcd:autoScalingGroupName/integration_tests_group</AutoScalingGroupARN>
<EnabledMetrics>
<member>
<Metric>GroupTotalInstances</Metric>
<Granularity>1Minute</Granularity>
</member>
<member>
<Metric>GroupInServiceInstances</Metric>
<Granularity>1Minute</Granularity>
</member>
<member>
<Metric>GroupMaxSize</Metric>
<Granularity>1Minute</Granularity>
</member>
<member>
<Metric>GroupMinSize</Metric>
<Granularity>1Minute</Granularity>
</member>
<member>
<Metric>GroupDesiredCapacity</Metric>
<Granularity>1Minute</Granularity>
</member>
</EnabledMetrics>
<MaxSize>3</MaxSize>
<AvailabilityZones>
Expand All @@ -70,8 +41,7 @@
<TrafficSources/>
<LoadBalancerNames/>
<Tags/>
<ServiceLinkedRoleARN>arn:aws:iam::123502194722:role/aws-service-role/autoscaling.amazonaws.com/AWSServiceRoleForAutoScaling</ServiceLinkedRoleARN>
<LaunchTemplate>
<LaunchTemplate>
<LaunchTemplateId>lt-02b49ee89dd48f1a9</LaunchTemplateId>
<LaunchTemplateName>integration_tests_template</LaunchTemplateName>
</LaunchTemplate>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,46 +16,17 @@
<ProtectedFromScaleIn>false</ProtectedFromScaleIn>
<AvailabilityZone>us-east-1a</AvailabilityZone>
</member>
<member>
<LifecycleState>InService</LifecycleState>
<InstanceId>i-09513149875f57017</InstanceId>
<HealthStatus>Healthy</HealthStatus>
<InstanceType>t1.micro</InstanceType>
<LaunchTemplate>
<LaunchTemplateId>lt-02b49ee89dd48f1a9</LaunchTemplateId>
<Version>1</Version>
<LaunchTemplateName>integration_tests_template</LaunchTemplateName>
</LaunchTemplate>
<ProtectedFromScaleIn>false</ProtectedFromScaleIn>
<AvailabilityZone>us-east-1a</AvailabilityZone>
</member>
</Instances>
<TerminationPolicies>
<member>Default</member>
</TerminationPolicies>
<DefaultCooldown>300</DefaultCooldown>
<AutoScalingGroupARN>arn:aws:autoscaling:us-east-1:123502194722:autoScalingGroup:a8ea22f2-1b4e-4f44-a15e-34b8415f1270:autoScalingGroupName/integration_tests_group</AutoScalingGroupARN>
<AutoScalingGroupARN>arn:aws:autoscaling:us-test:123456789012:autoScalingGroup:a234567-89ab-cdef-0123-4567890abcd:autoScalingGroupName/integration_tests_group</AutoScalingGroupARN>
<EnabledMetrics>
<member>
<Metric>GroupTotalInstances</Metric>
<Granularity>1Minute</Granularity>
</member>
<member>
<Metric>GroupInServiceInstances</Metric>
<Granularity>1Minute</Granularity>
</member>
<member>
<Metric>GroupMaxSize</Metric>
<Granularity>1Minute</Granularity>
</member>
<member>
<Metric>GroupMinSize</Metric>
<Granularity>1Minute</Granularity>
</member>
<member>
<Metric>GroupDesiredCapacity</Metric>
<Granularity>1Minute</Granularity>
</member>
</EnabledMetrics>
<MaxSize>3</MaxSize>
<AvailabilityZones>
Expand All @@ -70,7 +41,6 @@
<TrafficSources/>
<LoadBalancerNames/>
<Tags/>
<ServiceLinkedRoleARN>arn:aws:iam::123502194722:role/aws-service-role/autoscaling.amazonaws.com/AWSServiceRoleForAutoScaling</ServiceLinkedRoleARN>
<LaunchTemplate>
<LaunchTemplateId>lt-02b49ee89dd48f1a9</LaunchTemplateId>
<LaunchTemplateName>integration_tests_template</LaunchTemplateName>
Expand Down
Loading

0 comments on commit 570b050

Please sign in to comment.