• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{
2    "testCases": [
3        {
4            "documentation": "For region aws-global with FIPS disabled and DualStack disabled",
5            "expect": {
6                "endpoint": {
7                    "properties": {
8                        "authSchemes": [
9                            {
10                                "name": "sigv4",
11                                "signingName": "networkmanager",
12                                "signingRegion": "us-west-2"
13                            }
14                        ]
15                    },
16                    "url": "https://networkmanager.us-west-2.amazonaws.com"
17                }
18            },
19            "params": {
20                "Region": "aws-global",
21                "UseFIPS": false,
22                "UseDualStack": false
23            }
24        },
25        {
26            "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled",
27            "expect": {
28                "endpoint": {
29                    "url": "https://networkmanager-fips.us-east-1.api.aws"
30                }
31            },
32            "params": {
33                "Region": "us-east-1",
34                "UseFIPS": true,
35                "UseDualStack": true
36            }
37        },
38        {
39            "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled",
40            "expect": {
41                "endpoint": {
42                    "url": "https://networkmanager-fips.us-east-1.amazonaws.com"
43                }
44            },
45            "params": {
46                "Region": "us-east-1",
47                "UseFIPS": true,
48                "UseDualStack": false
49            }
50        },
51        {
52            "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled",
53            "expect": {
54                "endpoint": {
55                    "url": "https://networkmanager.us-east-1.api.aws"
56                }
57            },
58            "params": {
59                "Region": "us-east-1",
60                "UseFIPS": false,
61                "UseDualStack": true
62            }
63        },
64        {
65            "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled",
66            "expect": {
67                "endpoint": {
68                    "properties": {
69                        "authSchemes": [
70                            {
71                                "name": "sigv4",
72                                "signingName": "networkmanager",
73                                "signingRegion": "us-west-2"
74                            }
75                        ]
76                    },
77                    "url": "https://networkmanager.us-west-2.amazonaws.com"
78                }
79            },
80            "params": {
81                "Region": "us-east-1",
82                "UseFIPS": false,
83                "UseDualStack": false
84            }
85        },
86        {
87            "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled",
88            "expect": {
89                "endpoint": {
90                    "url": "https://networkmanager-fips.cn-north-1.api.amazonwebservices.com.cn"
91                }
92            },
93            "params": {
94                "Region": "cn-north-1",
95                "UseFIPS": true,
96                "UseDualStack": true
97            }
98        },
99        {
100            "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled",
101            "expect": {
102                "endpoint": {
103                    "url": "https://networkmanager-fips.cn-north-1.amazonaws.com.cn"
104                }
105            },
106            "params": {
107                "Region": "cn-north-1",
108                "UseFIPS": true,
109                "UseDualStack": false
110            }
111        },
112        {
113            "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled",
114            "expect": {
115                "endpoint": {
116                    "url": "https://networkmanager.cn-north-1.api.amazonwebservices.com.cn"
117                }
118            },
119            "params": {
120                "Region": "cn-north-1",
121                "UseFIPS": false,
122                "UseDualStack": true
123            }
124        },
125        {
126            "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled",
127            "expect": {
128                "endpoint": {
129                    "url": "https://networkmanager.cn-north-1.amazonaws.com.cn"
130                }
131            },
132            "params": {
133                "Region": "cn-north-1",
134                "UseFIPS": false,
135                "UseDualStack": false
136            }
137        },
138        {
139            "documentation": "For region aws-us-gov-global with FIPS disabled and DualStack disabled",
140            "expect": {
141                "endpoint": {
142                    "properties": {
143                        "authSchemes": [
144                            {
145                                "name": "sigv4",
146                                "signingName": "networkmanager",
147                                "signingRegion": "us-gov-west-1"
148                            }
149                        ]
150                    },
151                    "url": "https://networkmanager.us-gov-west-1.amazonaws.com"
152                }
153            },
154            "params": {
155                "Region": "aws-us-gov-global",
156                "UseFIPS": false,
157                "UseDualStack": false
158            }
159        },
160        {
161            "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled",
162            "expect": {
163                "endpoint": {
164                    "url": "https://networkmanager-fips.us-gov-east-1.api.aws"
165                }
166            },
167            "params": {
168                "Region": "us-gov-east-1",
169                "UseFIPS": true,
170                "UseDualStack": true
171            }
172        },
173        {
174            "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled",
175            "expect": {
176                "endpoint": {
177                    "url": "https://networkmanager-fips.us-gov-east-1.amazonaws.com"
178                }
179            },
180            "params": {
181                "Region": "us-gov-east-1",
182                "UseFIPS": true,
183                "UseDualStack": false
184            }
185        },
186        {
187            "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled",
188            "expect": {
189                "endpoint": {
190                    "url": "https://networkmanager.us-gov-east-1.api.aws"
191                }
192            },
193            "params": {
194                "Region": "us-gov-east-1",
195                "UseFIPS": false,
196                "UseDualStack": true
197            }
198        },
199        {
200            "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled",
201            "expect": {
202                "endpoint": {
203                    "properties": {
204                        "authSchemes": [
205                            {
206                                "name": "sigv4",
207                                "signingName": "networkmanager",
208                                "signingRegion": "us-gov-west-1"
209                            }
210                        ]
211                    },
212                    "url": "https://networkmanager.us-gov-west-1.amazonaws.com"
213                }
214            },
215            "params": {
216                "Region": "us-gov-east-1",
217                "UseFIPS": false,
218                "UseDualStack": false
219            }
220        },
221        {
222            "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled",
223            "expect": {
224                "error": "FIPS and DualStack are enabled, but this partition does not support one or both"
225            },
226            "params": {
227                "Region": "us-iso-east-1",
228                "UseFIPS": true,
229                "UseDualStack": true
230            }
231        },
232        {
233            "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled",
234            "expect": {
235                "endpoint": {
236                    "url": "https://networkmanager-fips.us-iso-east-1.c2s.ic.gov"
237                }
238            },
239            "params": {
240                "Region": "us-iso-east-1",
241                "UseFIPS": true,
242                "UseDualStack": false
243            }
244        },
245        {
246            "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled",
247            "expect": {
248                "error": "DualStack is enabled but this partition does not support DualStack"
249            },
250            "params": {
251                "Region": "us-iso-east-1",
252                "UseFIPS": false,
253                "UseDualStack": true
254            }
255        },
256        {
257            "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled",
258            "expect": {
259                "endpoint": {
260                    "url": "https://networkmanager.us-iso-east-1.c2s.ic.gov"
261                }
262            },
263            "params": {
264                "Region": "us-iso-east-1",
265                "UseFIPS": false,
266                "UseDualStack": false
267            }
268        },
269        {
270            "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled",
271            "expect": {
272                "error": "FIPS and DualStack are enabled, but this partition does not support one or both"
273            },
274            "params": {
275                "Region": "us-isob-east-1",
276                "UseFIPS": true,
277                "UseDualStack": true
278            }
279        },
280        {
281            "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled",
282            "expect": {
283                "endpoint": {
284                    "url": "https://networkmanager-fips.us-isob-east-1.sc2s.sgov.gov"
285                }
286            },
287            "params": {
288                "Region": "us-isob-east-1",
289                "UseFIPS": true,
290                "UseDualStack": false
291            }
292        },
293        {
294            "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled",
295            "expect": {
296                "error": "DualStack is enabled but this partition does not support DualStack"
297            },
298            "params": {
299                "Region": "us-isob-east-1",
300                "UseFIPS": false,
301                "UseDualStack": true
302            }
303        },
304        {
305            "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled",
306            "expect": {
307                "endpoint": {
308                    "url": "https://networkmanager.us-isob-east-1.sc2s.sgov.gov"
309                }
310            },
311            "params": {
312                "Region": "us-isob-east-1",
313                "UseFIPS": false,
314                "UseDualStack": false
315            }
316        },
317        {
318            "documentation": "For custom endpoint with region set and fips disabled and dualstack disabled",
319            "expect": {
320                "endpoint": {
321                    "url": "https://example.com"
322                }
323            },
324            "params": {
325                "Region": "us-east-1",
326                "UseFIPS": false,
327                "UseDualStack": false,
328                "Endpoint": "https://example.com"
329            }
330        },
331        {
332            "documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled",
333            "expect": {
334                "endpoint": {
335                    "url": "https://example.com"
336                }
337            },
338            "params": {
339                "UseFIPS": false,
340                "UseDualStack": false,
341                "Endpoint": "https://example.com"
342            }
343        },
344        {
345            "documentation": "For custom endpoint with fips enabled and dualstack disabled",
346            "expect": {
347                "error": "Invalid Configuration: FIPS and custom endpoint are not supported"
348            },
349            "params": {
350                "Region": "us-east-1",
351                "UseFIPS": true,
352                "UseDualStack": false,
353                "Endpoint": "https://example.com"
354            }
355        },
356        {
357            "documentation": "For custom endpoint with fips disabled and dualstack enabled",
358            "expect": {
359                "error": "Invalid Configuration: Dualstack and custom endpoint are not supported"
360            },
361            "params": {
362                "Region": "us-east-1",
363                "UseFIPS": false,
364                "UseDualStack": true,
365                "Endpoint": "https://example.com"
366            }
367        },
368        {
369            "documentation": "Missing region",
370            "expect": {
371                "error": "Invalid Configuration: Missing Region"
372            }
373        }
374    ],
375    "version": "1.0"
376}