|
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://vpc-lattice-fips.us-gov-east-1.api.aws" |
| 7 | + "url": "https://vpc-lattice-fips.us-east-1.api.aws" |
8 | 8 | } |
9 | 9 | }, |
10 | 10 | "params": { |
11 | | - "UseDualStack": true, |
12 | | - "Region": "us-gov-east-1", |
13 | | - "UseFIPS": true |
| 11 | + "Region": "us-east-1", |
| 12 | + "UseFIPS": true, |
| 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://vpc-lattice-fips.us-gov-east-1.amazonaws.com" |
| 20 | + "url": "https://vpc-lattice-fips.us-east-1.amazonaws.com" |
21 | 21 | } |
22 | 22 | }, |
23 | 23 | "params": { |
24 | | - "UseDualStack": false, |
25 | | - "Region": "us-gov-east-1", |
26 | | - "UseFIPS": true |
| 24 | + "Region": "us-east-1", |
| 25 | + "UseFIPS": true, |
| 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://vpc-lattice.us-gov-east-1.api.aws" |
| 33 | + "url": "https://vpc-lattice.us-east-1.api.aws" |
34 | 34 | } |
35 | 35 | }, |
36 | 36 | "params": { |
37 | | - "UseDualStack": true, |
38 | | - "Region": "us-gov-east-1", |
39 | | - "UseFIPS": false |
| 37 | + "Region": "us-east-1", |
| 38 | + "UseFIPS": false, |
| 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://vpc-lattice.us-gov-east-1.amazonaws.com" |
| 46 | + "url": "https://vpc-lattice.us-east-1.amazonaws.com" |
47 | 47 | } |
48 | 48 | }, |
49 | 49 | "params": { |
50 | | - "UseDualStack": false, |
51 | | - "Region": "us-gov-east-1", |
52 | | - "UseFIPS": false |
| 50 | + "Region": "us-east-1", |
| 51 | + "UseFIPS": false, |
| 52 | + "UseDualStack": false |
53 | 53 | } |
54 | 54 | }, |
55 | 55 | { |
|
60 | 60 | } |
61 | 61 | }, |
62 | 62 | "params": { |
63 | | - "UseDualStack": true, |
64 | 63 | "Region": "cn-north-1", |
65 | | - "UseFIPS": true |
| 64 | + "UseFIPS": true, |
| 65 | + "UseDualStack": true |
66 | 66 | } |
67 | 67 | }, |
68 | 68 | { |
|
73 | 73 | } |
74 | 74 | }, |
75 | 75 | "params": { |
76 | | - "UseDualStack": false, |
77 | 76 | "Region": "cn-north-1", |
78 | | - "UseFIPS": true |
| 77 | + "UseFIPS": true, |
| 78 | + "UseDualStack": false |
79 | 79 | } |
80 | 80 | }, |
81 | 81 | { |
|
86 | 86 | } |
87 | 87 | }, |
88 | 88 | "params": { |
89 | | - "UseDualStack": true, |
90 | 89 | "Region": "cn-north-1", |
91 | | - "UseFIPS": false |
| 90 | + "UseFIPS": false, |
| 91 | + "UseDualStack": true |
92 | 92 | } |
93 | 93 | }, |
94 | 94 | { |
|
99 | 99 | } |
100 | 100 | }, |
101 | 101 | "params": { |
102 | | - "UseDualStack": false, |
103 | 102 | "Region": "cn-north-1", |
104 | | - "UseFIPS": false |
| 103 | + "UseFIPS": false, |
| 104 | + "UseDualStack": false |
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://vpc-lattice-fips.us-gov-east-1.api.aws" |
| 112 | + } |
111 | 113 | }, |
112 | 114 | "params": { |
113 | | - "UseDualStack": true, |
114 | | - "Region": "us-iso-east-1", |
115 | | - "UseFIPS": true |
| 115 | + "Region": "us-gov-east-1", |
| 116 | + "UseFIPS": true, |
| 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://vpc-lattice-fips.us-iso-east-1.c2s.ic.gov" |
| 124 | + "url": "https://vpc-lattice-fips.us-gov-east-1.amazonaws.com" |
123 | 125 | } |
124 | 126 | }, |
125 | 127 | "params": { |
126 | | - "UseDualStack": false, |
127 | | - "Region": "us-iso-east-1", |
128 | | - "UseFIPS": true |
| 128 | + "Region": "us-gov-east-1", |
| 129 | + "UseFIPS": true, |
| 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://vpc-lattice.us-gov-east-1.api.aws" |
| 138 | + } |
135 | 139 | }, |
136 | 140 | "params": { |
137 | | - "UseDualStack": true, |
138 | | - "Region": "us-iso-east-1", |
139 | | - "UseFIPS": false |
| 141 | + "Region": "us-gov-east-1", |
| 142 | + "UseFIPS": false, |
| 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://vpc-lattice.us-iso-east-1.c2s.ic.gov" |
| 150 | + "url": "https://vpc-lattice.us-gov-east-1.amazonaws.com" |
147 | 151 | } |
148 | 152 | }, |
149 | 153 | "params": { |
150 | | - "UseDualStack": false, |
151 | | - "Region": "us-iso-east-1", |
152 | | - "UseFIPS": false |
| 154 | + "Region": "us-gov-east-1", |
| 155 | + "UseFIPS": false, |
| 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://vpc-lattice-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 | | - "UseDualStack": true, |
164 | | - "Region": "us-east-1", |
165 | | - "UseFIPS": true |
| 165 | + "Region": "us-iso-east-1", |
| 166 | + "UseFIPS": true, |
| 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://vpc-lattice-fips.us-east-1.amazonaws.com" |
| 174 | + "url": "https://vpc-lattice-fips.us-iso-east-1.c2s.ic.gov" |
173 | 175 | } |
174 | 176 | }, |
175 | 177 | "params": { |
176 | | - "UseDualStack": false, |
177 | | - "Region": "us-east-1", |
178 | | - "UseFIPS": true |
| 178 | + "Region": "us-iso-east-1", |
| 179 | + "UseFIPS": true, |
| 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://vpc-lattice.us-east-1.api.aws" |
186 | | - } |
| 186 | + "error": "DualStack is enabled but this partition does not support DualStack" |
187 | 187 | }, |
188 | 188 | "params": { |
189 | | - "UseDualStack": true, |
190 | | - "Region": "us-east-1", |
191 | | - "UseFIPS": false |
| 189 | + "Region": "us-iso-east-1", |
| 190 | + "UseFIPS": false, |
| 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://vpc-lattice.us-east-1.amazonaws.com" |
| 198 | + "url": "https://vpc-lattice.us-iso-east-1.c2s.ic.gov" |
199 | 199 | } |
200 | 200 | }, |
201 | 201 | "params": { |
202 | | - "UseDualStack": false, |
203 | | - "Region": "us-east-1", |
204 | | - "UseFIPS": false |
| 202 | + "Region": "us-iso-east-1", |
| 203 | + "UseFIPS": false, |
| 204 | + "UseDualStack": false |
205 | 205 | } |
206 | 206 | }, |
207 | 207 | { |
|
210 | 210 | "error": "FIPS and DualStack are enabled, but this partition does not support one or both" |
211 | 211 | }, |
212 | 212 | "params": { |
213 | | - "UseDualStack": true, |
214 | 213 | "Region": "us-isob-east-1", |
215 | | - "UseFIPS": true |
| 214 | + "UseFIPS": true, |
| 215 | + "UseDualStack": true |
216 | 216 | } |
217 | 217 | }, |
218 | 218 | { |
|
223 | 223 | } |
224 | 224 | }, |
225 | 225 | "params": { |
226 | | - "UseDualStack": false, |
227 | 226 | "Region": "us-isob-east-1", |
228 | | - "UseFIPS": true |
| 227 | + "UseFIPS": true, |
| 228 | + "UseDualStack": false |
229 | 229 | } |
230 | 230 | }, |
231 | 231 | { |
|
234 | 234 | "error": "DualStack is enabled but this partition does not support DualStack" |
235 | 235 | }, |
236 | 236 | "params": { |
237 | | - "UseDualStack": true, |
238 | 237 | "Region": "us-isob-east-1", |
239 | | - "UseFIPS": false |
| 238 | + "UseFIPS": false, |
| 239 | + "UseDualStack": true |
240 | 240 | } |
241 | 241 | }, |
242 | 242 | { |
|
247 | 247 | } |
248 | 248 | }, |
249 | 249 | "params": { |
250 | | - "UseDualStack": false, |
251 | 250 | "Region": "us-isob-east-1", |
252 | | - "UseFIPS": false |
| 251 | + "UseFIPS": false, |
| 252 | + "UseDualStack": false |
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" |
260 | 260 | } |
261 | 261 | }, |
262 | 262 | "params": { |
263 | | - "UseDualStack": false, |
264 | 263 | "Region": "us-east-1", |
265 | 264 | "UseFIPS": false, |
| 265 | + "UseDualStack": false, |
| 266 | + "Endpoint": "https://example.com" |
| 267 | + } |
| 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, |
266 | 279 | "Endpoint": "https://example.com" |
267 | 280 | } |
268 | 281 | }, |
|
272 | 285 | "error": "Invalid Configuration: FIPS and custom endpoint are not supported" |
273 | 286 | }, |
274 | 287 | "params": { |
275 | | - "UseDualStack": false, |
276 | 288 | "Region": "us-east-1", |
277 | 289 | "UseFIPS": true, |
| 290 | + "UseDualStack": false, |
278 | 291 | "Endpoint": "https://example.com" |
279 | 292 | } |
280 | 293 | }, |
|
284 | 297 | "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" |
285 | 298 | }, |
286 | 299 | "params": { |
287 | | - "UseDualStack": true, |
288 | 300 | "Region": "us-east-1", |
289 | 301 | "UseFIPS": false, |
| 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