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