|
1 | 1 | {
|
2 | 2 | "testCases": [
|
| 3 | + { |
| 4 | + "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", |
| 5 | + "expect": { |
| 6 | + "endpoint": { |
| 7 | + "url": "https://billingconductor-fips.cn-north-1.api.amazonwebservices.com.cn" |
| 8 | + } |
| 9 | + }, |
| 10 | + "params": { |
| 11 | + "Region": "cn-north-1", |
| 12 | + "UseDualStack": true, |
| 13 | + "UseFIPS": true |
| 14 | + } |
| 15 | + }, |
| 16 | + { |
| 17 | + "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", |
| 18 | + "expect": { |
| 19 | + "endpoint": { |
| 20 | + "url": "https://billingconductor-fips.cn-north-1.amazonaws.com.cn" |
| 21 | + } |
| 22 | + }, |
| 23 | + "params": { |
| 24 | + "Region": "cn-north-1", |
| 25 | + "UseDualStack": false, |
| 26 | + "UseFIPS": true |
| 27 | + } |
| 28 | + }, |
| 29 | + { |
| 30 | + "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", |
| 31 | + "expect": { |
| 32 | + "endpoint": { |
| 33 | + "url": "https://billingconductor.cn-north-1.api.amazonwebservices.com.cn" |
| 34 | + } |
| 35 | + }, |
| 36 | + "params": { |
| 37 | + "Region": "cn-north-1", |
| 38 | + "UseDualStack": true, |
| 39 | + "UseFIPS": false |
| 40 | + } |
| 41 | + }, |
| 42 | + { |
| 43 | + "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", |
| 44 | + "expect": { |
| 45 | + "endpoint": { |
| 46 | + "url": "https://billingconductor.cn-north-1.amazonaws.com.cn" |
| 47 | + } |
| 48 | + }, |
| 49 | + "params": { |
| 50 | + "Region": "cn-north-1", |
| 51 | + "UseDualStack": false, |
| 52 | + "UseFIPS": false |
| 53 | + } |
| 54 | + }, |
| 55 | + { |
| 56 | + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", |
| 57 | + "expect": { |
| 58 | + "endpoint": { |
| 59 | + "url": "https://billingconductor-fips.us-iso-east-1.c2s.ic.gov" |
| 60 | + } |
| 61 | + }, |
| 62 | + "params": { |
| 63 | + "Region": "us-iso-east-1", |
| 64 | + "UseDualStack": false, |
| 65 | + "UseFIPS": true |
| 66 | + } |
| 67 | + }, |
| 68 | + { |
| 69 | + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", |
| 70 | + "expect": { |
| 71 | + "endpoint": { |
| 72 | + "url": "https://billingconductor.us-iso-east-1.c2s.ic.gov" |
| 73 | + } |
| 74 | + }, |
| 75 | + "params": { |
| 76 | + "Region": "us-iso-east-1", |
| 77 | + "UseDualStack": false, |
| 78 | + "UseFIPS": false |
| 79 | + } |
| 80 | + }, |
3 | 81 | {
|
4 | 82 | "documentation": "For region aws-global with FIPS disabled and DualStack disabled",
|
5 | 83 | "expect": {
|
|
17 | 95 | }
|
18 | 96 | },
|
19 | 97 | "params": {
|
| 98 | + "Region": "aws-global", |
20 | 99 | "UseDualStack": false,
|
21 |
| - "UseFIPS": false, |
22 |
| - "Region": "aws-global" |
| 100 | + "UseFIPS": false |
| 101 | + } |
| 102 | + }, |
| 103 | + { |
| 104 | + "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", |
| 105 | + "expect": { |
| 106 | + "endpoint": { |
| 107 | + "url": "https://billingconductor-fips.us-east-1.api.aws" |
| 108 | + } |
| 109 | + }, |
| 110 | + "params": { |
| 111 | + "Region": "us-east-1", |
| 112 | + "UseDualStack": true, |
| 113 | + "UseFIPS": true |
| 114 | + } |
| 115 | + }, |
| 116 | + { |
| 117 | + "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", |
| 118 | + "expect": { |
| 119 | + "endpoint": { |
| 120 | + "url": "https://billingconductor-fips.us-east-1.amazonaws.com" |
| 121 | + } |
| 122 | + }, |
| 123 | + "params": { |
| 124 | + "Region": "us-east-1", |
| 125 | + "UseDualStack": false, |
| 126 | + "UseFIPS": true |
| 127 | + } |
| 128 | + }, |
| 129 | + { |
| 130 | + "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", |
| 131 | + "expect": { |
| 132 | + "endpoint": { |
| 133 | + "url": "https://billingconductor.us-east-1.api.aws" |
| 134 | + } |
| 135 | + }, |
| 136 | + "params": { |
| 137 | + "Region": "us-east-1", |
| 138 | + "UseDualStack": true, |
| 139 | + "UseFIPS": false |
| 140 | + } |
| 141 | + }, |
| 142 | + { |
| 143 | + "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", |
| 144 | + "expect": { |
| 145 | + "endpoint": { |
| 146 | + "properties": { |
| 147 | + "authSchemes": [ |
| 148 | + { |
| 149 | + "name": "sigv4", |
| 150 | + "signingName": "billingconductor", |
| 151 | + "signingRegion": "us-east-1" |
| 152 | + } |
| 153 | + ] |
| 154 | + }, |
| 155 | + "url": "https://billingconductor.us-east-1.amazonaws.com" |
| 156 | + } |
| 157 | + }, |
| 158 | + "params": { |
| 159 | + "Region": "us-east-1", |
| 160 | + "UseDualStack": false, |
| 161 | + "UseFIPS": false |
| 162 | + } |
| 163 | + }, |
| 164 | + { |
| 165 | + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", |
| 166 | + "expect": { |
| 167 | + "endpoint": { |
| 168 | + "url": "https://billingconductor-fips.us-gov-east-1.api.aws" |
| 169 | + } |
| 170 | + }, |
| 171 | + "params": { |
| 172 | + "Region": "us-gov-east-1", |
| 173 | + "UseDualStack": true, |
| 174 | + "UseFIPS": true |
| 175 | + } |
| 176 | + }, |
| 177 | + { |
| 178 | + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", |
| 179 | + "expect": { |
| 180 | + "endpoint": { |
| 181 | + "url": "https://billingconductor-fips.us-gov-east-1.amazonaws.com" |
| 182 | + } |
| 183 | + }, |
| 184 | + "params": { |
| 185 | + "Region": "us-gov-east-1", |
| 186 | + "UseDualStack": false, |
| 187 | + "UseFIPS": true |
| 188 | + } |
| 189 | + }, |
| 190 | + { |
| 191 | + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", |
| 192 | + "expect": { |
| 193 | + "endpoint": { |
| 194 | + "url": "https://billingconductor.us-gov-east-1.api.aws" |
| 195 | + } |
| 196 | + }, |
| 197 | + "params": { |
| 198 | + "Region": "us-gov-east-1", |
| 199 | + "UseDualStack": true, |
| 200 | + "UseFIPS": false |
| 201 | + } |
| 202 | + }, |
| 203 | + { |
| 204 | + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", |
| 205 | + "expect": { |
| 206 | + "endpoint": { |
| 207 | + "url": "https://billingconductor.us-gov-east-1.amazonaws.com" |
| 208 | + } |
| 209 | + }, |
| 210 | + "params": { |
| 211 | + "Region": "us-gov-east-1", |
| 212 | + "UseDualStack": false, |
| 213 | + "UseFIPS": false |
| 214 | + } |
| 215 | + }, |
| 216 | + { |
| 217 | + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", |
| 218 | + "expect": { |
| 219 | + "endpoint": { |
| 220 | + "url": "https://billingconductor-fips.us-isob-east-1.sc2s.sgov.gov" |
| 221 | + } |
| 222 | + }, |
| 223 | + "params": { |
| 224 | + "Region": "us-isob-east-1", |
| 225 | + "UseDualStack": false, |
| 226 | + "UseFIPS": true |
| 227 | + } |
| 228 | + }, |
| 229 | + { |
| 230 | + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", |
| 231 | + "expect": { |
| 232 | + "endpoint": { |
| 233 | + "url": "https://billingconductor.us-isob-east-1.sc2s.sgov.gov" |
| 234 | + } |
| 235 | + }, |
| 236 | + "params": { |
| 237 | + "Region": "us-isob-east-1", |
| 238 | + "UseDualStack": false, |
| 239 | + "UseFIPS": false |
23 | 240 | }
|
24 | 241 | },
|
25 | 242 | {
|
|
30 | 247 | }
|
31 | 248 | },
|
32 | 249 | "params": {
|
| 250 | + "Region": "us-east-1", |
33 | 251 | "UseDualStack": false,
|
34 | 252 | "UseFIPS": false,
|
35 |
| - "Region": "us-east-1", |
36 | 253 | "Endpoint": "https://example.com"
|
37 | 254 | }
|
38 | 255 | },
|
|
42 | 259 | "error": "Invalid Configuration: FIPS and custom endpoint are not supported"
|
43 | 260 | },
|
44 | 261 | "params": {
|
| 262 | + "Region": "us-east-1", |
45 | 263 | "UseDualStack": false,
|
46 | 264 | "UseFIPS": true,
|
47 |
| - "Region": "us-east-1", |
48 | 265 | "Endpoint": "https://example.com"
|
49 | 266 | }
|
50 | 267 | },
|
|
54 | 271 | "error": "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
55 | 272 | },
|
56 | 273 | "params": {
|
| 274 | + "Region": "us-east-1", |
57 | 275 | "UseDualStack": true,
|
58 | 276 | "UseFIPS": false,
|
59 |
| - "Region": "us-east-1", |
60 | 277 | "Endpoint": "https://example.com"
|
61 | 278 | }
|
62 | 279 | }
|
|
0 commit comments