Skip to content

Commit 7188d84

Browse files
Remove incorrect endpoint tests
1 parent 98f0529 commit 7188d84

File tree

2 files changed

+0
-104
lines changed

2 files changed

+0
-104
lines changed

generator/ServiceModels/sts/sts-2011-06-15.endpoint-tests.json

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -555,17 +555,6 @@
555555
"UseDualStack": false
556556
}
557557
},
558-
{
559-
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled",
560-
"expect": {
561-
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
562-
},
563-
"params": {
564-
"Region": "us-iso-east-1",
565-
"UseFIPS": true,
566-
"UseDualStack": true
567-
}
568-
},
569558
{
570559
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled",
571560
"expect": {
@@ -579,17 +568,6 @@
579568
"UseDualStack": false
580569
}
581570
},
582-
{
583-
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled",
584-
"expect": {
585-
"error": "DualStack is enabled but this partition does not support DualStack"
586-
},
587-
"params": {
588-
"Region": "us-iso-east-1",
589-
"UseFIPS": false,
590-
"UseDualStack": true
591-
}
592-
},
593571
{
594572
"documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled",
595573
"expect": {
@@ -603,17 +581,6 @@
603581
"UseDualStack": false
604582
}
605583
},
606-
{
607-
"documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled",
608-
"expect": {
609-
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
610-
},
611-
"params": {
612-
"Region": "us-isob-east-1",
613-
"UseFIPS": true,
614-
"UseDualStack": true
615-
}
616-
},
617584
{
618585
"documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled",
619586
"expect": {
@@ -627,17 +594,6 @@
627594
"UseDualStack": false
628595
}
629596
},
630-
{
631-
"documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled",
632-
"expect": {
633-
"error": "DualStack is enabled but this partition does not support DualStack"
634-
},
635-
"params": {
636-
"Region": "us-isob-east-1",
637-
"UseFIPS": false,
638-
"UseDualStack": true
639-
}
640-
},
641597
{
642598
"documentation": "For custom endpoint with region set and fips disabled and dualstack disabled",
643599
"expect": {

sdk/test/Services/SecurityToken/UnitTests/Generated/Endpoints/SecurityTokenServiceEndpointProviderTests.cs

Lines changed: 0 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -658,21 +658,6 @@ public void For_region_usisowest1_with_FIPS_disabled_and_DualStack_disabled_Test
658658
Assert.AreEqual("https://sts.us-iso-west-1.c2s.ic.gov", endpoint.URL);
659659
}
660660

661-
[TestMethod]
662-
[TestCategory("UnitTest")]
663-
[TestCategory("Endpoints")]
664-
[TestCategory("SecurityToken")]
665-
[Description("For region us-iso-east-1 with FIPS enabled and DualStack enabled")]
666-
[ExpectedException(typeof(AmazonClientException), @"FIPS and DualStack are enabled, but this partition does not support one or both")]
667-
public void For_region_usisoeast1_with_FIPS_enabled_and_DualStack_enabled_Test()
668-
{
669-
var parameters = new SecurityTokenServiceEndpointParameters();
670-
parameters["Region"] = "us-iso-east-1";
671-
parameters["UseFIPS"] = true;
672-
parameters["UseDualStack"] = true;
673-
var endpoint = new AmazonSecurityTokenServiceEndpointProvider().ResolveEndpoint(parameters);
674-
}
675-
676661
[TestMethod]
677662
[TestCategory("UnitTest")]
678663
[TestCategory("Endpoints")]
@@ -688,21 +673,6 @@ public void For_region_usisoeast1_with_FIPS_enabled_and_DualStack_disabled_Test(
688673
Assert.AreEqual("https://sts-fips.us-iso-east-1.c2s.ic.gov", endpoint.URL);
689674
}
690675

691-
[TestMethod]
692-
[TestCategory("UnitTest")]
693-
[TestCategory("Endpoints")]
694-
[TestCategory("SecurityToken")]
695-
[Description("For region us-iso-east-1 with FIPS disabled and DualStack enabled")]
696-
[ExpectedException(typeof(AmazonClientException), @"DualStack is enabled but this partition does not support DualStack")]
697-
public void For_region_usisoeast1_with_FIPS_disabled_and_DualStack_enabled_Test()
698-
{
699-
var parameters = new SecurityTokenServiceEndpointParameters();
700-
parameters["Region"] = "us-iso-east-1";
701-
parameters["UseFIPS"] = false;
702-
parameters["UseDualStack"] = true;
703-
var endpoint = new AmazonSecurityTokenServiceEndpointProvider().ResolveEndpoint(parameters);
704-
}
705-
706676
[TestMethod]
707677
[TestCategory("UnitTest")]
708678
[TestCategory("Endpoints")]
@@ -718,21 +688,6 @@ public void For_region_usisobeast1_with_FIPS_disabled_and_DualStack_disabled_Tes
718688
Assert.AreEqual("https://sts.us-isob-east-1.sc2s.sgov.gov", endpoint.URL);
719689
}
720690

721-
[TestMethod]
722-
[TestCategory("UnitTest")]
723-
[TestCategory("Endpoints")]
724-
[TestCategory("SecurityToken")]
725-
[Description("For region us-isob-east-1 with FIPS enabled and DualStack enabled")]
726-
[ExpectedException(typeof(AmazonClientException), @"FIPS and DualStack are enabled, but this partition does not support one or both")]
727-
public void For_region_usisobeast1_with_FIPS_enabled_and_DualStack_enabled_Test()
728-
{
729-
var parameters = new SecurityTokenServiceEndpointParameters();
730-
parameters["Region"] = "us-isob-east-1";
731-
parameters["UseFIPS"] = true;
732-
parameters["UseDualStack"] = true;
733-
var endpoint = new AmazonSecurityTokenServiceEndpointProvider().ResolveEndpoint(parameters);
734-
}
735-
736691
[TestMethod]
737692
[TestCategory("UnitTest")]
738693
[TestCategory("Endpoints")]
@@ -748,21 +703,6 @@ public void For_region_usisobeast1_with_FIPS_enabled_and_DualStack_disabled_Test
748703
Assert.AreEqual("https://sts-fips.us-isob-east-1.sc2s.sgov.gov", endpoint.URL);
749704
}
750705

751-
[TestMethod]
752-
[TestCategory("UnitTest")]
753-
[TestCategory("Endpoints")]
754-
[TestCategory("SecurityToken")]
755-
[Description("For region us-isob-east-1 with FIPS disabled and DualStack enabled")]
756-
[ExpectedException(typeof(AmazonClientException), @"DualStack is enabled but this partition does not support DualStack")]
757-
public void For_region_usisobeast1_with_FIPS_disabled_and_DualStack_enabled_Test()
758-
{
759-
var parameters = new SecurityTokenServiceEndpointParameters();
760-
parameters["Region"] = "us-isob-east-1";
761-
parameters["UseFIPS"] = false;
762-
parameters["UseDualStack"] = true;
763-
var endpoint = new AmazonSecurityTokenServiceEndpointProvider().ResolveEndpoint(parameters);
764-
}
765-
766706
[TestMethod]
767707
[TestCategory("UnitTest")]
768708
[TestCategory("Endpoints")]

0 commit comments

Comments
 (0)