|
1 | 1 | {
|
2 | 2 | "testCases": [
|
3 | 3 | {
|
4 |
| - "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", |
| 4 | + "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", |
5 | 5 | "expect": {
|
6 | 6 | "endpoint": {
|
7 |
| - "url": "https://imagebuilder-fips.us-iso-east-1.c2s.ic.gov" |
| 7 | + "url": "https://imagebuilder-fips.us-east-1.api.aws" |
8 | 8 | }
|
9 | 9 | },
|
10 | 10 | "params": {
|
11 |
| - "UseDualStack": false, |
| 11 | + "UseDualStack": true, |
12 | 12 | "UseFIPS": true,
|
13 |
| - "Region": "us-iso-east-1" |
| 13 | + "Region": "us-east-1" |
14 | 14 | }
|
15 | 15 | },
|
16 | 16 | {
|
17 |
| - "documentation": "For region us-iso-east-1 with FIPS disabled 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://imagebuilder.us-iso-east-1.c2s.ic.gov" |
| 20 | + "url": "https://imagebuilder-fips.us-east-1.amazonaws.com" |
21 | 21 | }
|
22 | 22 | },
|
23 | 23 | "params": {
|
24 | 24 | "UseDualStack": false,
|
25 |
| - "UseFIPS": false, |
26 |
| - "Region": "us-iso-east-1" |
| 25 | + "UseFIPS": true, |
| 26 | + "Region": "us-east-1" |
27 | 27 | }
|
28 | 28 | },
|
29 | 29 | {
|
30 |
| - "documentation": "For region us-east-1 with FIPS enabled 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://imagebuilder-fips.us-east-1.api.aws" |
| 33 | + "url": "https://imagebuilder.us-east-1.api.aws" |
34 | 34 | }
|
35 | 35 | },
|
36 | 36 | "params": {
|
37 | 37 | "UseDualStack": true,
|
38 |
| - "UseFIPS": true, |
| 38 | + "UseFIPS": false, |
39 | 39 | "Region": "us-east-1"
|
40 | 40 | }
|
41 | 41 | },
|
42 | 42 | {
|
43 |
| - "documentation": "For region us-east-1 with FIPS enabled 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://imagebuilder-fips.us-east-1.amazonaws.com" |
| 46 | + "url": "https://imagebuilder.us-east-1.amazonaws.com" |
47 | 47 | }
|
48 | 48 | },
|
49 | 49 | "params": {
|
50 | 50 | "UseDualStack": false,
|
51 |
| - "UseFIPS": true, |
| 51 | + "UseFIPS": false, |
52 | 52 | "Region": "us-east-1"
|
53 | 53 | }
|
54 | 54 | },
|
55 | 55 | {
|
56 |
| - "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", |
| 56 | + "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", |
57 | 57 | "expect": {
|
58 | 58 | "endpoint": {
|
59 |
| - "url": "https://imagebuilder.us-east-1.api.aws" |
| 59 | + "url": "https://imagebuilder-fips.cn-north-1.api.amazonwebservices.com.cn" |
60 | 60 | }
|
61 | 61 | },
|
62 | 62 | "params": {
|
63 | 63 | "UseDualStack": true,
|
64 |
| - "UseFIPS": false, |
65 |
| - "Region": "us-east-1" |
| 64 | + "UseFIPS": true, |
| 65 | + "Region": "cn-north-1" |
66 | 66 | }
|
67 | 67 | },
|
68 | 68 | {
|
69 |
| - "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", |
| 69 | + "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", |
70 | 70 | "expect": {
|
71 | 71 | "endpoint": {
|
72 |
| - "url": "https://imagebuilder.us-east-1.amazonaws.com" |
| 72 | + "url": "https://imagebuilder-fips.cn-north-1.amazonaws.com.cn" |
73 | 73 | }
|
74 | 74 | },
|
75 | 75 | "params": {
|
76 | 76 | "UseDualStack": false,
|
77 |
| - "UseFIPS": false, |
78 |
| - "Region": "us-east-1" |
| 77 | + "UseFIPS": true, |
| 78 | + "Region": "cn-north-1" |
79 | 79 | }
|
80 | 80 | },
|
81 | 81 | {
|
82 |
| - "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack disabled", |
| 82 | + "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", |
83 | 83 | "expect": {
|
84 | 84 | "endpoint": {
|
85 |
| - "url": "https://imagebuilder.us-gov-west-1.amazonaws.com" |
| 85 | + "url": "https://imagebuilder.cn-north-1.api.amazonwebservices.com.cn" |
86 | 86 | }
|
87 | 87 | },
|
88 | 88 | "params": {
|
89 |
| - "UseDualStack": false, |
| 89 | + "UseDualStack": true, |
90 | 90 | "UseFIPS": false,
|
91 |
| - "Region": "us-gov-west-1" |
| 91 | + "Region": "cn-north-1" |
92 | 92 | }
|
93 | 93 | },
|
94 | 94 | {
|
95 |
| - "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack disabled", |
| 95 | + "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", |
96 | 96 | "expect": {
|
97 | 97 | "endpoint": {
|
98 |
| - "url": "https://imagebuilder.us-gov-west-1.amazonaws.com" |
| 98 | + "url": "https://imagebuilder.cn-north-1.amazonaws.com.cn" |
99 | 99 | }
|
100 | 100 | },
|
101 | 101 | "params": {
|
102 | 102 | "UseDualStack": false,
|
103 |
| - "UseFIPS": true, |
104 |
| - "Region": "us-gov-west-1" |
| 103 | + "UseFIPS": false, |
| 104 | + "Region": "cn-north-1" |
105 | 105 | }
|
106 | 106 | },
|
107 | 107 | {
|
|
130 | 130 | "Region": "us-gov-east-1"
|
131 | 131 | }
|
132 | 132 | },
|
| 133 | + { |
| 134 | + "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack disabled", |
| 135 | + "expect": { |
| 136 | + "endpoint": { |
| 137 | + "url": "https://imagebuilder.us-gov-west-1.amazonaws.com" |
| 138 | + } |
| 139 | + }, |
| 140 | + "params": { |
| 141 | + "UseDualStack": false, |
| 142 | + "UseFIPS": false, |
| 143 | + "Region": "us-gov-west-1" |
| 144 | + } |
| 145 | + }, |
| 146 | + { |
| 147 | + "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack disabled", |
| 148 | + "expect": { |
| 149 | + "endpoint": { |
| 150 | + "url": "https://imagebuilder.us-gov-west-1.amazonaws.com" |
| 151 | + } |
| 152 | + }, |
| 153 | + "params": { |
| 154 | + "UseDualStack": false, |
| 155 | + "UseFIPS": true, |
| 156 | + "Region": "us-gov-west-1" |
| 157 | + } |
| 158 | + }, |
133 | 159 | {
|
134 | 160 | "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled",
|
135 | 161 | "expect": {
|
|
157 | 183 | }
|
158 | 184 | },
|
159 | 185 | {
|
160 |
| - "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", |
| 186 | + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled", |
| 187 | + "expect": { |
| 188 | + "error": "FIPS and DualStack are enabled, but this partition does not support one or both" |
| 189 | + }, |
| 190 | + "params": { |
| 191 | + "UseDualStack": true, |
| 192 | + "UseFIPS": true, |
| 193 | + "Region": "us-iso-east-1" |
| 194 | + } |
| 195 | + }, |
| 196 | + { |
| 197 | + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", |
161 | 198 | "expect": {
|
162 | 199 | "endpoint": {
|
163 |
| - "url": "https://imagebuilder-fips.us-isob-east-1.sc2s.sgov.gov" |
| 200 | + "url": "https://imagebuilder-fips.us-iso-east-1.c2s.ic.gov" |
164 | 201 | }
|
165 | 202 | },
|
166 | 203 | "params": {
|
167 | 204 | "UseDualStack": false,
|
168 | 205 | "UseFIPS": true,
|
169 |
| - "Region": "us-isob-east-1" |
| 206 | + "Region": "us-iso-east-1" |
170 | 207 | }
|
171 | 208 | },
|
172 | 209 | {
|
173 |
| - "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", |
| 210 | + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled", |
| 211 | + "expect": { |
| 212 | + "error": "DualStack is enabled but this partition does not support DualStack" |
| 213 | + }, |
| 214 | + "params": { |
| 215 | + "UseDualStack": true, |
| 216 | + "UseFIPS": false, |
| 217 | + "Region": "us-iso-east-1" |
| 218 | + } |
| 219 | + }, |
| 220 | + { |
| 221 | + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", |
174 | 222 | "expect": {
|
175 | 223 | "endpoint": {
|
176 |
| - "url": "https://imagebuilder.us-isob-east-1.sc2s.sgov.gov" |
| 224 | + "url": "https://imagebuilder.us-iso-east-1.c2s.ic.gov" |
177 | 225 | }
|
178 | 226 | },
|
179 | 227 | "params": {
|
180 | 228 | "UseDualStack": false,
|
181 | 229 | "UseFIPS": false,
|
182 |
| - "Region": "us-isob-east-1" |
| 230 | + "Region": "us-iso-east-1" |
183 | 231 | }
|
184 | 232 | },
|
185 | 233 | {
|
186 |
| - "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", |
| 234 | + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled", |
187 | 235 | "expect": {
|
188 |
| - "endpoint": { |
189 |
| - "url": "https://imagebuilder-fips.cn-north-1.api.amazonwebservices.com.cn" |
190 |
| - } |
| 236 | + "error": "FIPS and DualStack are enabled, but this partition does not support one or both" |
191 | 237 | },
|
192 | 238 | "params": {
|
193 | 239 | "UseDualStack": true,
|
194 | 240 | "UseFIPS": true,
|
195 |
| - "Region": "cn-north-1" |
| 241 | + "Region": "us-isob-east-1" |
196 | 242 | }
|
197 | 243 | },
|
198 | 244 | {
|
199 |
| - "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", |
| 245 | + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", |
200 | 246 | "expect": {
|
201 | 247 | "endpoint": {
|
202 |
| - "url": "https://imagebuilder-fips.cn-north-1.amazonaws.com.cn" |
| 248 | + "url": "https://imagebuilder-fips.us-isob-east-1.sc2s.sgov.gov" |
203 | 249 | }
|
204 | 250 | },
|
205 | 251 | "params": {
|
206 | 252 | "UseDualStack": false,
|
207 | 253 | "UseFIPS": true,
|
208 |
| - "Region": "cn-north-1" |
| 254 | + "Region": "us-isob-east-1" |
209 | 255 | }
|
210 | 256 | },
|
211 | 257 | {
|
212 |
| - "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", |
| 258 | + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled", |
213 | 259 | "expect": {
|
214 |
| - "endpoint": { |
215 |
| - "url": "https://imagebuilder.cn-north-1.api.amazonwebservices.com.cn" |
216 |
| - } |
| 260 | + "error": "DualStack is enabled but this partition does not support DualStack" |
217 | 261 | },
|
218 | 262 | "params": {
|
219 | 263 | "UseDualStack": true,
|
220 | 264 | "UseFIPS": false,
|
221 |
| - "Region": "cn-north-1" |
| 265 | + "Region": "us-isob-east-1" |
222 | 266 | }
|
223 | 267 | },
|
224 | 268 | {
|
225 |
| - "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", |
| 269 | + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", |
226 | 270 | "expect": {
|
227 | 271 | "endpoint": {
|
228 |
| - "url": "https://imagebuilder.cn-north-1.amazonaws.com.cn" |
| 272 | + "url": "https://imagebuilder.us-isob-east-1.sc2s.sgov.gov" |
229 | 273 | }
|
230 | 274 | },
|
231 | 275 | "params": {
|
232 | 276 | "UseDualStack": false,
|
233 | 277 | "UseFIPS": false,
|
234 |
| - "Region": "cn-north-1" |
| 278 | + "Region": "us-isob-east-1" |
235 | 279 | }
|
236 | 280 | },
|
237 | 281 | {
|
238 |
| - "documentation": "For custom endpoint with fips disabled and dualstack disabled", |
| 282 | + "documentation": "For custom endpoint with region set and fips disabled and dualstack disabled", |
239 | 283 | "expect": {
|
240 | 284 | "endpoint": {
|
241 | 285 | "url": "https://example.com"
|
|
248 | 292 | "Endpoint": "https://example.com"
|
249 | 293 | }
|
250 | 294 | },
|
| 295 | + { |
| 296 | + "documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled", |
| 297 | + "expect": { |
| 298 | + "endpoint": { |
| 299 | + "url": "https://example.com" |
| 300 | + } |
| 301 | + }, |
| 302 | + "params": { |
| 303 | + "UseDualStack": false, |
| 304 | + "UseFIPS": false, |
| 305 | + "Endpoint": "https://example.com" |
| 306 | + } |
| 307 | + }, |
251 | 308 | {
|
252 | 309 | "documentation": "For custom endpoint with fips enabled and dualstack disabled",
|
253 | 310 | "expect": {
|
|
271 | 328 | "Region": "us-east-1",
|
272 | 329 | "Endpoint": "https://example.com"
|
273 | 330 | }
|
| 331 | + }, |
| 332 | + { |
| 333 | + "documentation": "Missing region", |
| 334 | + "expect": { |
| 335 | + "error": "Invalid Configuration: Missing Region" |
| 336 | + } |
274 | 337 | }
|
275 | 338 | ],
|
276 | 339 | "version": "1.0"
|
|
0 commit comments