@@ -32,75 +32,60 @@ public partial class ECRPublicEndpointsTests
32
32
[ TestCategory ( "UnitTest" ) ]
33
33
[ TestCategory ( "Endpoints" ) ]
34
34
[ TestCategory ( "ECRPublic" ) ]
35
- [ Description ( "For region us-east-1 with FIPS disabled and DualStack disabled" ) ]
36
- public void For_region_useast1_with_FIPS_disabled_and_DualStack_disabled_Test ( )
37
- {
38
- var parameters = new ECRPublicEndpointParameters ( ) ;
39
- parameters [ "Region" ] = "us-east-1" ;
40
- parameters [ "UseFIPS" ] = false ;
41
- parameters [ "UseDualStack" ] = false ;
42
- var endpoint = new AmazonECRPublicEndpointProvider ( ) . ResolveEndpoint ( parameters ) ;
43
- Assert . AreEqual ( "https://api.ecr-public.us-east-1.amazonaws.com" , endpoint . URL ) ;
44
- }
45
-
46
- [ TestMethod ]
47
- [ TestCategory ( "UnitTest" ) ]
48
- [ TestCategory ( "Endpoints" ) ]
49
- [ TestCategory ( "ECRPublic" ) ]
50
- [ Description ( "For region us-east-1 with FIPS disabled and DualStack enabled" ) ]
51
- public void For_region_useast1_with_FIPS_disabled_and_DualStack_enabled_Test ( )
35
+ [ Description ( "For region us-east-1 with FIPS enabled and DualStack enabled" ) ]
36
+ public void For_region_useast1_with_FIPS_enabled_and_DualStack_enabled_Test ( )
52
37
{
53
38
var parameters = new ECRPublicEndpointParameters ( ) ;
54
39
parameters [ "Region" ] = "us-east-1" ;
55
- parameters [ "UseFIPS" ] = false ;
40
+ parameters [ "UseFIPS" ] = true ;
56
41
parameters [ "UseDualStack" ] = true ;
57
42
var endpoint = new AmazonECRPublicEndpointProvider ( ) . ResolveEndpoint ( parameters ) ;
58
- Assert . AreEqual ( "https://ecr-public.us-east-1.api.aws" , endpoint . URL ) ;
43
+ Assert . AreEqual ( "https://api. ecr-public-fips .us-east-1.api.aws" , endpoint . URL ) ;
59
44
}
60
45
61
46
[ TestMethod ]
62
47
[ TestCategory ( "UnitTest" ) ]
63
48
[ TestCategory ( "Endpoints" ) ]
64
49
[ TestCategory ( "ECRPublic" ) ]
65
- [ Description ( "For region us-west-2 with FIPS disabled and DualStack disabled" ) ]
66
- public void For_region_uswest2_with_FIPS_disabled_and_DualStack_disabled_Test ( )
50
+ [ Description ( "For region us-east-1 with FIPS enabled and DualStack disabled" ) ]
51
+ public void For_region_useast1_with_FIPS_enabled_and_DualStack_disabled_Test ( )
67
52
{
68
53
var parameters = new ECRPublicEndpointParameters ( ) ;
69
- parameters [ "Region" ] = "us-west-2 " ;
70
- parameters [ "UseFIPS" ] = false ;
54
+ parameters [ "Region" ] = "us-east-1 " ;
55
+ parameters [ "UseFIPS" ] = true ;
71
56
parameters [ "UseDualStack" ] = false ;
72
57
var endpoint = new AmazonECRPublicEndpointProvider ( ) . ResolveEndpoint ( parameters ) ;
73
- Assert . AreEqual ( "https://api.ecr-public.us-west-2 .amazonaws.com" , endpoint . URL ) ;
58
+ Assert . AreEqual ( "https://api.ecr-public-fips .us-east-1 .amazonaws.com" , endpoint . URL ) ;
74
59
}
75
60
76
61
[ TestMethod ]
77
62
[ TestCategory ( "UnitTest" ) ]
78
63
[ TestCategory ( "Endpoints" ) ]
79
64
[ TestCategory ( "ECRPublic" ) ]
80
- [ Description ( "For region us-east-1 with FIPS enabled and DualStack enabled" ) ]
81
- public void For_region_useast1_with_FIPS_enabled_and_DualStack_enabled_Test ( )
65
+ [ Description ( "For region us-east-1 with FIPS disabled and DualStack enabled" ) ]
66
+ public void For_region_useast1_with_FIPS_disabled_and_DualStack_enabled_Test ( )
82
67
{
83
68
var parameters = new ECRPublicEndpointParameters ( ) ;
84
69
parameters [ "Region" ] = "us-east-1" ;
85
- parameters [ "UseFIPS" ] = true ;
70
+ parameters [ "UseFIPS" ] = false ;
86
71
parameters [ "UseDualStack" ] = true ;
87
72
var endpoint = new AmazonECRPublicEndpointProvider ( ) . ResolveEndpoint ( parameters ) ;
88
- Assert . AreEqual ( "https://api.ecr-public-fips .us-east-1.api.aws" , endpoint . URL ) ;
73
+ Assert . AreEqual ( "https://api.ecr-public.us-east-1.api.aws" , endpoint . URL ) ;
89
74
}
90
75
91
76
[ TestMethod ]
92
77
[ TestCategory ( "UnitTest" ) ]
93
78
[ TestCategory ( "Endpoints" ) ]
94
79
[ TestCategory ( "ECRPublic" ) ]
95
- [ Description ( "For region us-east-1 with FIPS enabled and DualStack disabled" ) ]
96
- public void For_region_useast1_with_FIPS_enabled_and_DualStack_disabled_Test ( )
80
+ [ Description ( "For region us-east-1 with FIPS disabled and DualStack disabled" ) ]
81
+ public void For_region_useast1_with_FIPS_disabled_and_DualStack_disabled_Test ( )
97
82
{
98
83
var parameters = new ECRPublicEndpointParameters ( ) ;
99
84
parameters [ "Region" ] = "us-east-1" ;
100
- parameters [ "UseFIPS" ] = true ;
85
+ parameters [ "UseFIPS" ] = false ;
101
86
parameters [ "UseDualStack" ] = false ;
102
87
var endpoint = new AmazonECRPublicEndpointProvider ( ) . ResolveEndpoint ( parameters ) ;
103
- Assert . AreEqual ( "https://api.ecr-public-fips .us-east-1.amazonaws.com" , endpoint . URL ) ;
88
+ Assert . AreEqual ( "https://api.ecr-public.us-east-1.amazonaws.com" , endpoint . URL ) ;
104
89
}
105
90
106
91
[ TestMethod ]
0 commit comments