Skip to content

Commit c749668

Browse files
Remove incorrect endpoint tests
1 parent 8b17178 commit c749668

File tree

7 files changed

+30
-154
lines changed

7 files changed

+30
-154
lines changed

generator/ServiceModels/autoscaling-plans/autoscaling-plans-2018-01-06.api.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@
55
"endpointPrefix":"autoscaling-plans",
66
"jsonVersion":"1.1",
77
"protocol":"json",
8+
"protocols":["json"],
89
"serviceFullName":"AWS Auto Scaling Plans",
910
"serviceId":"Auto Scaling Plans",
1011
"signatureVersion":"v4",
1112
"signingName":"autoscaling-plans",
1213
"targetPrefix":"AnyScaleScalingPlannerFrontendService",
13-
"uid":"autoscaling-plans-2018-01-06"
14+
"uid":"autoscaling-plans-2018-01-06",
15+
"auth":["aws.auth#sigv4"]
1416
},
1517
"operations":{
1618
"CreateScalingPlan":{
@@ -196,8 +198,7 @@
196198
},
197199
"DeleteScalingPlanResponse":{
198200
"type":"structure",
199-
"members":{
200-
}
201+
"members":{}
201202
},
202203
"DescribeScalingPlanResourcesRequest":{
203204
"type":"structure",
@@ -629,8 +630,7 @@
629630
},
630631
"UpdateScalingPlanResponse":{
631632
"type":"structure",
632-
"members":{
633-
}
633+
"members":{}
634634
},
635635
"ValidationException":{
636636
"type":"structure",

generator/ServiceModels/autoscaling-plans/autoscaling-plans-2018-01-06.docs.json

Lines changed: 18 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@
2727
},
2828
"ConcurrentUpdateException": {
2929
"base": "<p>Concurrent updates caused an exception, for example, if you request an update to a scaling plan that already has a pending update.</p>",
30-
"refs": {
31-
}
30+
"refs": {}
3231
},
3332
"Cooldown": {
3433
"base": null,
@@ -40,13 +39,11 @@
4039
},
4140
"CreateScalingPlanRequest": {
4241
"base": null,
43-
"refs": {
44-
}
42+
"refs": {}
4543
},
4644
"CreateScalingPlanResponse": {
4745
"base": null,
48-
"refs": {
49-
}
46+
"refs": {}
5047
},
5148
"CustomizedLoadMetricSpecification": {
5249
"base": "<p>Represents a CloudWatch metric of your choosing that can be used for predictive scaling. </p> <p>For predictive scaling to work with a customized load metric specification, AWS Auto Scaling needs access to the <code>Sum</code> and <code>Average</code> statistics that CloudWatch computes from metric data.</p> <p>When you choose a load metric, make sure that the required <code>Sum</code> and <code>Average</code> statistics for your metric are available in CloudWatch and that they provide relevant data for predictive scaling. The <code>Sum</code> statistic must represent the total load on the resource, and the <code>Average</code> statistic must represent the average load per capacity unit of the resource. For example, there is a metric that counts the number of requests processed by your Auto Scaling group. If the <code>Sum</code> statistic represents the total request count processed by the group, then the <code>Average</code> statistic for the specified metric must represent the average request count processed by each instance of the group. </p> <p>If you publish your own metrics, you can aggregate the data points at a given interval and then publish the aggregated data points to CloudWatch. Before AWS Auto Scaling generates the forecast, it sums up all the metric data points that occurred within each hour to match the granularity period that is used in the forecast (60 minutes).</p> <p>For information about terminology, available metrics, or how to publish new metrics, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html\">Amazon CloudWatch Concepts</a> in the <i>Amazon CloudWatch User Guide</i>. </p> <p>After creating your scaling plan, you can use the AWS Auto Scaling console to visualize forecasts for the specified metric. For more information, see <a href=\"https://docs.aws.amazon.com/autoscaling/plans/userguide/gs-create-scaling-plan.html#gs-view-resource\">View Scaling Information for a Resource</a> in the <i>AWS Auto Scaling User Guide</i>.</p>",
@@ -74,33 +71,27 @@
7471
},
7572
"DeleteScalingPlanRequest": {
7673
"base": null,
77-
"refs": {
78-
}
74+
"refs": {}
7975
},
8076
"DeleteScalingPlanResponse": {
8177
"base": null,
82-
"refs": {
83-
}
78+
"refs": {}
8479
},
8580
"DescribeScalingPlanResourcesRequest": {
8681
"base": null,
87-
"refs": {
88-
}
82+
"refs": {}
8983
},
9084
"DescribeScalingPlanResourcesResponse": {
9185
"base": null,
92-
"refs": {
93-
}
86+
"refs": {}
9487
},
9588
"DescribeScalingPlansRequest": {
9689
"base": null,
97-
"refs": {
98-
}
90+
"refs": {}
9991
},
10092
"DescribeScalingPlansResponse": {
10193
"base": null,
102-
"refs": {
103-
}
94+
"refs": {}
10495
},
10596
"DisableDynamicScaling": {
10697
"base": null,
@@ -133,28 +124,23 @@
133124
},
134125
"GetScalingPlanResourceForecastDataRequest": {
135126
"base": null,
136-
"refs": {
137-
}
127+
"refs": {}
138128
},
139129
"GetScalingPlanResourceForecastDataResponse": {
140130
"base": null,
141-
"refs": {
142-
}
131+
"refs": {}
143132
},
144133
"InternalServiceException": {
145134
"base": "<p>The service encountered an internal error.</p>",
146-
"refs": {
147-
}
135+
"refs": {}
148136
},
149137
"InvalidNextTokenException": {
150138
"base": "<p>The token provided is not valid.</p>",
151-
"refs": {
152-
}
139+
"refs": {}
153140
},
154141
"LimitExceededException": {
155142
"base": "<p>Your account exceeded a limit. This exception is thrown when a per-account resource limit is exceeded.</p>",
156-
"refs": {
157-
}
143+
"refs": {}
158144
},
159145
"LoadMetricType": {
160146
"base": null,
@@ -240,8 +226,7 @@
240226
},
241227
"ObjectNotFoundException": {
242228
"base": "<p>The specified object could not be found.</p>",
243-
"refs": {
244-
}
229+
"refs": {}
245230
},
246231
"PolicyName": {
247232
"base": null,
@@ -472,18 +457,15 @@
472457
},
473458
"UpdateScalingPlanRequest": {
474459
"base": null,
475-
"refs": {
476-
}
460+
"refs": {}
477461
},
478462
"UpdateScalingPlanResponse": {
479463
"base": null,
480-
"refs": {
481-
}
464+
"refs": {}
482465
},
483466
"ValidationException": {
484467
"base": "<p>An exception was thrown for a validation issue. Review the parameters provided.</p>",
485-
"refs": {
486-
}
468+
"refs": {}
487469
},
488470
"XmlString": {
489471
"base": null,

generator/ServiceModels/autoscaling-plans/autoscaling-plans-2018-01-06.endpoint-tests.json

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -455,17 +455,6 @@
455455
"UseDualStack": true
456456
}
457457
},
458-
{
459-
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled",
460-
"expect": {
461-
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
462-
},
463-
"params": {
464-
"Region": "us-iso-east-1",
465-
"UseFIPS": true,
466-
"UseDualStack": true
467-
}
468-
},
469458
{
470459
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled",
471460
"expect": {
@@ -479,17 +468,6 @@
479468
"UseDualStack": false
480469
}
481470
},
482-
{
483-
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled",
484-
"expect": {
485-
"error": "DualStack is enabled but this partition does not support DualStack"
486-
},
487-
"params": {
488-
"Region": "us-iso-east-1",
489-
"UseFIPS": false,
490-
"UseDualStack": true
491-
}
492-
},
493471
{
494472
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled",
495473
"expect": {
@@ -503,17 +481,6 @@
503481
"UseDualStack": false
504482
}
505483
},
506-
{
507-
"documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled",
508-
"expect": {
509-
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
510-
},
511-
"params": {
512-
"Region": "us-isob-east-1",
513-
"UseFIPS": true,
514-
"UseDualStack": true
515-
}
516-
},
517484
{
518485
"documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled",
519486
"expect": {
@@ -527,17 +494,6 @@
527494
"UseDualStack": false
528495
}
529496
},
530-
{
531-
"documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled",
532-
"expect": {
533-
"error": "DualStack is enabled but this partition does not support DualStack"
534-
},
535-
"params": {
536-
"Region": "us-isob-east-1",
537-
"UseFIPS": false,
538-
"UseDualStack": true
539-
}
540-
},
541497
{
542498
"documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled",
543499
"expect": {
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
22
"version": "1.0",
3-
"examples": {
4-
}
3+
"examples": {}
54
}

generator/ServiceModels/autoscaling-plans/autoscaling-plans-2018-01-06.normal.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@
55
"endpointPrefix":"autoscaling-plans",
66
"jsonVersion":"1.1",
77
"protocol":"json",
8+
"protocols":["json"],
89
"serviceFullName":"AWS Auto Scaling Plans",
910
"serviceId":"Auto Scaling Plans",
1011
"signatureVersion":"v4",
1112
"signingName":"autoscaling-plans",
1213
"targetPrefix":"AnyScaleScalingPlannerFrontendService",
13-
"uid":"autoscaling-plans-2018-01-06"
14+
"uid":"autoscaling-plans-2018-01-06",
15+
"auth":["aws.auth#sigv4"]
1416
},
1517
"operations":{
1618
"CreateScalingPlan":{
@@ -267,8 +269,7 @@
267269
},
268270
"DeleteScalingPlanResponse":{
269271
"type":"structure",
270-
"members":{
271-
}
272+
"members":{}
272273
},
273274
"DescribeScalingPlanResourcesRequest":{
274275
"type":"structure",
@@ -935,8 +936,7 @@
935936
},
936937
"UpdateScalingPlanResponse":{
937938
"type":"structure",
938-
"members":{
939-
}
939+
"members":{}
940940
},
941941
"ValidationException":{
942942
"type":"structure",
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
{
2-
"pagination": {
3-
}
2+
"pagination": {}
43
}

sdk/test/Services/AutoScalingPlans/UnitTests/Generated/Endpoints/AutoScalingPlansEndpointProviderTests.cs

Lines changed: 0 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -553,21 +553,6 @@ public void For_region_usgoveast1_with_FIPS_disabled_and_DualStack_enabled_Test(
553553
Assert.AreEqual("https://autoscaling-plans.us-gov-east-1.api.aws", endpoint.URL);
554554
}
555555

556-
[TestMethod]
557-
[TestCategory("UnitTest")]
558-
[TestCategory("Endpoints")]
559-
[TestCategory("AutoScalingPlans")]
560-
[Description("For region us-iso-east-1 with FIPS enabled and DualStack enabled")]
561-
[ExpectedException(typeof(AmazonClientException), @"FIPS and DualStack are enabled, but this partition does not support one or both")]
562-
public void For_region_usisoeast1_with_FIPS_enabled_and_DualStack_enabled_Test()
563-
{
564-
var parameters = new AutoScalingPlansEndpointParameters();
565-
parameters["Region"] = "us-iso-east-1";
566-
parameters["UseFIPS"] = true;
567-
parameters["UseDualStack"] = true;
568-
var endpoint = new AmazonAutoScalingPlansEndpointProvider().ResolveEndpoint(parameters);
569-
}
570-
571556
[TestMethod]
572557
[TestCategory("UnitTest")]
573558
[TestCategory("Endpoints")]
@@ -583,21 +568,6 @@ public void For_region_usisoeast1_with_FIPS_enabled_and_DualStack_disabled_Test(
583568
Assert.AreEqual("https://autoscaling-plans-fips.us-iso-east-1.c2s.ic.gov", endpoint.URL);
584569
}
585570

586-
[TestMethod]
587-
[TestCategory("UnitTest")]
588-
[TestCategory("Endpoints")]
589-
[TestCategory("AutoScalingPlans")]
590-
[Description("For region us-iso-east-1 with FIPS disabled and DualStack enabled")]
591-
[ExpectedException(typeof(AmazonClientException), @"DualStack is enabled but this partition does not support DualStack")]
592-
public void For_region_usisoeast1_with_FIPS_disabled_and_DualStack_enabled_Test()
593-
{
594-
var parameters = new AutoScalingPlansEndpointParameters();
595-
parameters["Region"] = "us-iso-east-1";
596-
parameters["UseFIPS"] = false;
597-
parameters["UseDualStack"] = true;
598-
var endpoint = new AmazonAutoScalingPlansEndpointProvider().ResolveEndpoint(parameters);
599-
}
600-
601571
[TestMethod]
602572
[TestCategory("UnitTest")]
603573
[TestCategory("Endpoints")]
@@ -613,21 +583,6 @@ public void For_region_usisoeast1_with_FIPS_disabled_and_DualStack_disabled_Test
613583
Assert.AreEqual("https://autoscaling-plans.us-iso-east-1.c2s.ic.gov", endpoint.URL);
614584
}
615585

616-
[TestMethod]
617-
[TestCategory("UnitTest")]
618-
[TestCategory("Endpoints")]
619-
[TestCategory("AutoScalingPlans")]
620-
[Description("For region us-isob-east-1 with FIPS enabled and DualStack enabled")]
621-
[ExpectedException(typeof(AmazonClientException), @"FIPS and DualStack are enabled, but this partition does not support one or both")]
622-
public void For_region_usisobeast1_with_FIPS_enabled_and_DualStack_enabled_Test()
623-
{
624-
var parameters = new AutoScalingPlansEndpointParameters();
625-
parameters["Region"] = "us-isob-east-1";
626-
parameters["UseFIPS"] = true;
627-
parameters["UseDualStack"] = true;
628-
var endpoint = new AmazonAutoScalingPlansEndpointProvider().ResolveEndpoint(parameters);
629-
}
630-
631586
[TestMethod]
632587
[TestCategory("UnitTest")]
633588
[TestCategory("Endpoints")]
@@ -643,21 +598,6 @@ public void For_region_usisobeast1_with_FIPS_enabled_and_DualStack_disabled_Test
643598
Assert.AreEqual("https://autoscaling-plans-fips.us-isob-east-1.sc2s.sgov.gov", endpoint.URL);
644599
}
645600

646-
[TestMethod]
647-
[TestCategory("UnitTest")]
648-
[TestCategory("Endpoints")]
649-
[TestCategory("AutoScalingPlans")]
650-
[Description("For region us-isob-east-1 with FIPS disabled and DualStack enabled")]
651-
[ExpectedException(typeof(AmazonClientException), @"DualStack is enabled but this partition does not support DualStack")]
652-
public void For_region_usisobeast1_with_FIPS_disabled_and_DualStack_enabled_Test()
653-
{
654-
var parameters = new AutoScalingPlansEndpointParameters();
655-
parameters["Region"] = "us-isob-east-1";
656-
parameters["UseFIPS"] = false;
657-
parameters["UseDualStack"] = true;
658-
var endpoint = new AmazonAutoScalingPlansEndpointProvider().ResolveEndpoint(parameters);
659-
}
660-
661601
[TestMethod]
662602
[TestCategory("UnitTest")]
663603
[TestCategory("Endpoints")]

0 commit comments

Comments
 (0)