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