|
1 | 1 | { |
2 | 2 | "testCases": [ |
3 | 3 | { |
4 | | - "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", |
| 4 | + "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", |
5 | 5 | "expect": { |
6 | 6 | "endpoint": { |
7 | | - "url": "https://cleanrooms-fips.us-gov-east-1.api.aws" |
| 7 | + "url": "https://cleanrooms-fips.us-east-1.api.aws" |
8 | 8 | } |
9 | 9 | }, |
10 | 10 | "params": { |
11 | | - "Region": "us-gov-east-1", |
| 11 | + "Region": "us-east-1", |
12 | 12 | "UseFIPS": true, |
13 | 13 | "UseDualStack": true |
14 | 14 | } |
15 | 15 | }, |
16 | 16 | { |
17 | | - "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", |
| 17 | + "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", |
18 | 18 | "expect": { |
19 | 19 | "endpoint": { |
20 | | - "url": "https://cleanrooms-fips.us-gov-east-1.amazonaws.com" |
| 20 | + "url": "https://cleanrooms-fips.us-east-1.amazonaws.com" |
21 | 21 | } |
22 | 22 | }, |
23 | 23 | "params": { |
24 | | - "Region": "us-gov-east-1", |
| 24 | + "Region": "us-east-1", |
25 | 25 | "UseFIPS": true, |
26 | 26 | "UseDualStack": false |
27 | 27 | } |
28 | 28 | }, |
29 | 29 | { |
30 | | - "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", |
| 30 | + "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", |
31 | 31 | "expect": { |
32 | 32 | "endpoint": { |
33 | | - "url": "https://cleanrooms.us-gov-east-1.api.aws" |
| 33 | + "url": "https://cleanrooms.us-east-1.api.aws" |
34 | 34 | } |
35 | 35 | }, |
36 | 36 | "params": { |
37 | | - "Region": "us-gov-east-1", |
| 37 | + "Region": "us-east-1", |
38 | 38 | "UseFIPS": false, |
39 | 39 | "UseDualStack": true |
40 | 40 | } |
41 | 41 | }, |
42 | 42 | { |
43 | | - "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", |
| 43 | + "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", |
44 | 44 | "expect": { |
45 | 45 | "endpoint": { |
46 | | - "url": "https://cleanrooms.us-gov-east-1.amazonaws.com" |
| 46 | + "url": "https://cleanrooms.us-east-1.amazonaws.com" |
47 | 47 | } |
48 | 48 | }, |
49 | 49 | "params": { |
50 | | - "Region": "us-gov-east-1", |
| 50 | + "Region": "us-east-1", |
51 | 51 | "UseFIPS": false, |
52 | 52 | "UseDualStack": false |
53 | 53 | } |
|
105 | 105 | } |
106 | 106 | }, |
107 | 107 | { |
108 | | - "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled", |
| 108 | + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", |
109 | 109 | "expect": { |
110 | | - "error": "FIPS and DualStack are enabled, but this partition does not support one or both" |
| 110 | + "endpoint": { |
| 111 | + "url": "https://cleanrooms-fips.us-gov-east-1.api.aws" |
| 112 | + } |
111 | 113 | }, |
112 | 114 | "params": { |
113 | | - "Region": "us-iso-east-1", |
| 115 | + "Region": "us-gov-east-1", |
114 | 116 | "UseFIPS": true, |
115 | 117 | "UseDualStack": true |
116 | 118 | } |
117 | 119 | }, |
118 | 120 | { |
119 | | - "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", |
| 121 | + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", |
120 | 122 | "expect": { |
121 | 123 | "endpoint": { |
122 | | - "url": "https://cleanrooms-fips.us-iso-east-1.c2s.ic.gov" |
| 124 | + "url": "https://cleanrooms-fips.us-gov-east-1.amazonaws.com" |
123 | 125 | } |
124 | 126 | }, |
125 | 127 | "params": { |
126 | | - "Region": "us-iso-east-1", |
| 128 | + "Region": "us-gov-east-1", |
127 | 129 | "UseFIPS": true, |
128 | 130 | "UseDualStack": false |
129 | 131 | } |
130 | 132 | }, |
131 | 133 | { |
132 | | - "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled", |
| 134 | + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", |
133 | 135 | "expect": { |
134 | | - "error": "DualStack is enabled but this partition does not support DualStack" |
| 136 | + "endpoint": { |
| 137 | + "url": "https://cleanrooms.us-gov-east-1.api.aws" |
| 138 | + } |
135 | 139 | }, |
136 | 140 | "params": { |
137 | | - "Region": "us-iso-east-1", |
| 141 | + "Region": "us-gov-east-1", |
138 | 142 | "UseFIPS": false, |
139 | 143 | "UseDualStack": true |
140 | 144 | } |
141 | 145 | }, |
142 | 146 | { |
143 | | - "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", |
| 147 | + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", |
144 | 148 | "expect": { |
145 | 149 | "endpoint": { |
146 | | - "url": "https://cleanrooms.us-iso-east-1.c2s.ic.gov" |
| 150 | + "url": "https://cleanrooms.us-gov-east-1.amazonaws.com" |
147 | 151 | } |
148 | 152 | }, |
149 | 153 | "params": { |
150 | | - "Region": "us-iso-east-1", |
| 154 | + "Region": "us-gov-east-1", |
151 | 155 | "UseFIPS": false, |
152 | 156 | "UseDualStack": false |
153 | 157 | } |
154 | 158 | }, |
155 | 159 | { |
156 | | - "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", |
| 160 | + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled", |
157 | 161 | "expect": { |
158 | | - "endpoint": { |
159 | | - "url": "https://cleanrooms-fips.us-east-1.api.aws" |
160 | | - } |
| 162 | + "error": "FIPS and DualStack are enabled, but this partition does not support one or both" |
161 | 163 | }, |
162 | 164 | "params": { |
163 | | - "Region": "us-east-1", |
| 165 | + "Region": "us-iso-east-1", |
164 | 166 | "UseFIPS": true, |
165 | 167 | "UseDualStack": true |
166 | 168 | } |
167 | 169 | }, |
168 | 170 | { |
169 | | - "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", |
| 171 | + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", |
170 | 172 | "expect": { |
171 | 173 | "endpoint": { |
172 | | - "url": "https://cleanrooms-fips.us-east-1.amazonaws.com" |
| 174 | + "url": "https://cleanrooms-fips.us-iso-east-1.c2s.ic.gov" |
173 | 175 | } |
174 | 176 | }, |
175 | 177 | "params": { |
176 | | - "Region": "us-east-1", |
| 178 | + "Region": "us-iso-east-1", |
177 | 179 | "UseFIPS": true, |
178 | 180 | "UseDualStack": false |
179 | 181 | } |
180 | 182 | }, |
181 | 183 | { |
182 | | - "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", |
| 184 | + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled", |
183 | 185 | "expect": { |
184 | | - "endpoint": { |
185 | | - "url": "https://cleanrooms.us-east-1.api.aws" |
186 | | - } |
| 186 | + "error": "DualStack is enabled but this partition does not support DualStack" |
187 | 187 | }, |
188 | 188 | "params": { |
189 | | - "Region": "us-east-1", |
| 189 | + "Region": "us-iso-east-1", |
190 | 190 | "UseFIPS": false, |
191 | 191 | "UseDualStack": true |
192 | 192 | } |
193 | 193 | }, |
194 | 194 | { |
195 | | - "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", |
| 195 | + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", |
196 | 196 | "expect": { |
197 | 197 | "endpoint": { |
198 | | - "url": "https://cleanrooms.us-east-1.amazonaws.com" |
| 198 | + "url": "https://cleanrooms.us-iso-east-1.c2s.ic.gov" |
199 | 199 | } |
200 | 200 | }, |
201 | 201 | "params": { |
202 | | - "Region": "us-east-1", |
| 202 | + "Region": "us-iso-east-1", |
203 | 203 | "UseFIPS": false, |
204 | 204 | "UseDualStack": false |
205 | 205 | } |
|
253 | 253 | } |
254 | 254 | }, |
255 | 255 | { |
256 | | - "documentation": "For custom endpoint with fips disabled and dualstack disabled", |
| 256 | + "documentation": "For custom endpoint with region set and fips disabled and dualstack disabled", |
257 | 257 | "expect": { |
258 | 258 | "endpoint": { |
259 | 259 | "url": "https://example.com" |
|
266 | 266 | "Endpoint": "https://example.com" |
267 | 267 | } |
268 | 268 | }, |
| 269 | + { |
| 270 | + "documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled", |
| 271 | + "expect": { |
| 272 | + "endpoint": { |
| 273 | + "url": "https://example.com" |
| 274 | + } |
| 275 | + }, |
| 276 | + "params": { |
| 277 | + "UseFIPS": false, |
| 278 | + "UseDualStack": false, |
| 279 | + "Endpoint": "https://example.com" |
| 280 | + } |
| 281 | + }, |
269 | 282 | { |
270 | 283 | "documentation": "For custom endpoint with fips enabled and dualstack disabled", |
271 | 284 | "expect": { |
|
289 | 302 | "UseDualStack": true, |
290 | 303 | "Endpoint": "https://example.com" |
291 | 304 | } |
| 305 | + }, |
| 306 | + { |
| 307 | + "documentation": "Missing region", |
| 308 | + "expect": { |
| 309 | + "error": "Invalid Configuration: Missing Region" |
| 310 | + } |
292 | 311 | } |
293 | 312 | ], |
294 | 313 | "version": "1.0" |
|
0 commit comments