@@ -32,60 +32,75 @@ 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 enabled and DualStack enabled " ) ]
36
- public void For_region_useast1_with_FIPS_enabled_and_DualStack_enabled_Test ( )
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
37
{
38
38
var parameters = new ECRPublicEndpointParameters ( ) ;
39
39
parameters [ "Region" ] = "us-east-1" ;
40
- parameters [ "UseFIPS" ] = true ;
41
- parameters [ "UseDualStack" ] = true ;
40
+ parameters [ "UseFIPS" ] = false ;
41
+ parameters [ "UseDualStack" ] = false ;
42
42
var endpoint = new AmazonECRPublicEndpointProvider ( ) . ResolveEndpoint ( parameters ) ;
43
- Assert . AreEqual ( "https://api.ecr-public-fips .us-east-1.api.aws " , endpoint . URL ) ;
43
+ Assert . AreEqual ( "https://api.ecr-public.us-east-1.amazonaws.com " , endpoint . URL ) ;
44
44
}
45
45
46
46
[ TestMethod ]
47
47
[ TestCategory ( "UnitTest" ) ]
48
48
[ TestCategory ( "Endpoints" ) ]
49
49
[ TestCategory ( "ECRPublic" ) ]
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 ( )
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 ( )
52
52
{
53
53
var parameters = new ECRPublicEndpointParameters ( ) ;
54
54
parameters [ "Region" ] = "us-east-1" ;
55
- parameters [ "UseFIPS" ] = true ;
55
+ parameters [ "UseFIPS" ] = false ;
56
+ parameters [ "UseDualStack" ] = true ;
57
+ var endpoint = new AmazonECRPublicEndpointProvider ( ) . ResolveEndpoint ( parameters ) ;
58
+ Assert . AreEqual ( "https://ecr-public.us-east-1.api.aws" , endpoint . URL ) ;
59
+ }
60
+
61
+ [ TestMethod ]
62
+ [ TestCategory ( "UnitTest" ) ]
63
+ [ TestCategory ( "Endpoints" ) ]
64
+ [ 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 ( )
67
+ {
68
+ var parameters = new ECRPublicEndpointParameters ( ) ;
69
+ parameters [ "Region" ] = "us-west-2" ;
70
+ parameters [ "UseFIPS" ] = false ;
56
71
parameters [ "UseDualStack" ] = false ;
57
72
var endpoint = new AmazonECRPublicEndpointProvider ( ) . ResolveEndpoint ( parameters ) ;
58
- Assert . AreEqual ( "https://api.ecr-public-fips .us-east-1 .amazonaws.com" , endpoint . URL ) ;
73
+ Assert . AreEqual ( "https://api.ecr-public.us-west-2 .amazonaws.com" , endpoint . URL ) ;
59
74
}
60
75
61
76
[ TestMethod ]
62
77
[ TestCategory ( "UnitTest" ) ]
63
78
[ TestCategory ( "Endpoints" ) ]
64
79
[ TestCategory ( "ECRPublic" ) ]
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 ( )
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 ( )
67
82
{
68
83
var parameters = new ECRPublicEndpointParameters ( ) ;
69
84
parameters [ "Region" ] = "us-east-1" ;
70
- parameters [ "UseFIPS" ] = false ;
85
+ parameters [ "UseFIPS" ] = true ;
71
86
parameters [ "UseDualStack" ] = true ;
72
87
var endpoint = new AmazonECRPublicEndpointProvider ( ) . ResolveEndpoint ( parameters ) ;
73
- Assert . AreEqual ( "https://api.ecr-public.us-east-1.api.aws" , endpoint . URL ) ;
88
+ Assert . AreEqual ( "https://api.ecr-public-fips .us-east-1.api.aws" , endpoint . URL ) ;
74
89
}
75
90
76
91
[ TestMethod ]
77
92
[ TestCategory ( "UnitTest" ) ]
78
93
[ TestCategory ( "Endpoints" ) ]
79
94
[ TestCategory ( "ECRPublic" ) ]
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 ( )
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 ( )
82
97
{
83
98
var parameters = new ECRPublicEndpointParameters ( ) ;
84
99
parameters [ "Region" ] = "us-east-1" ;
85
- parameters [ "UseFIPS" ] = false ;
100
+ parameters [ "UseFIPS" ] = true ;
86
101
parameters [ "UseDualStack" ] = false ;
87
102
var endpoint = new AmazonECRPublicEndpointProvider ( ) . ResolveEndpoint ( parameters ) ;
88
- Assert . AreEqual ( "https://api.ecr-public.us-east-1.amazonaws.com" , endpoint . URL ) ;
103
+ Assert . AreEqual ( "https://api.ecr-public-fips .us-east-1.amazonaws.com" , endpoint . URL ) ;
89
104
}
90
105
91
106
[ TestMethod ]
0 commit comments