1{ 2 "testCases": [ 3 { 4 "documentation": "For region aws-global with FIPS disabled and DualStack enabled", 5 "expect": { 6 "endpoint": { 7 "properties": { 8 "authSchemes": [ 9 { 10 "name": "sigv4", 11 "signingName": "bcm-data-exports", 12 "signingRegion": "us-east-1" 13 } 14 ] 15 }, 16 "url": "https://bcm-data-exports.us-east-1.api.aws" 17 } 18 }, 19 "params": { 20 "Region": "aws-global", 21 "UseFIPS": false 22 } 23 }, 24 { 25 "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", 26 "expect": { 27 "endpoint": { 28 "url": "https://bcm-data-exports-fips.us-east-1.api.aws" 29 } 30 }, 31 "params": { 32 "Region": "us-east-1", 33 "UseFIPS": true 34 } 35 }, 36 { 37 "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", 38 "expect": { 39 "endpoint": { 40 "properties": { 41 "authSchemes": [ 42 { 43 "name": "sigv4", 44 "signingName": "bcm-data-exports", 45 "signingRegion": "us-east-1" 46 } 47 ] 48 }, 49 "url": "https://bcm-data-exports.us-east-1.api.aws" 50 } 51 }, 52 "params": { 53 "Region": "us-east-1", 54 "UseFIPS": false 55 } 56 }, 57 { 58 "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", 59 "expect": { 60 "endpoint": { 61 "url": "https://bcm-data-exports-fips.cn-north-1.api.amazonwebservices.com.cn" 62 } 63 }, 64 "params": { 65 "Region": "cn-north-1", 66 "UseFIPS": true 67 } 68 }, 69 { 70 "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", 71 "expect": { 72 "endpoint": { 73 "url": "https://bcm-data-exports.cn-north-1.api.amazonwebservices.com.cn" 74 } 75 }, 76 "params": { 77 "Region": "cn-north-1", 78 "UseFIPS": false 79 } 80 }, 81 { 82 "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", 83 "expect": { 84 "endpoint": { 85 "url": "https://bcm-data-exports-fips.us-gov-east-1.api.aws" 86 } 87 }, 88 "params": { 89 "Region": "us-gov-east-1", 90 "UseFIPS": true 91 } 92 }, 93 { 94 "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", 95 "expect": { 96 "endpoint": { 97 "url": "https://bcm-data-exports.us-gov-east-1.api.aws" 98 } 99 }, 100 "params": { 101 "Region": "us-gov-east-1", 102 "UseFIPS": false 103 } 104 }, 105 { 106 "documentation": "For custom endpoint with region set and fips disabled and dualstack disabled", 107 "expect": { 108 "endpoint": { 109 "url": "https://example.com" 110 } 111 }, 112 "params": { 113 "Region": "us-east-1", 114 "UseFIPS": false, 115 "Endpoint": "https://example.com" 116 } 117 }, 118 { 119 "documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled", 120 "expect": { 121 "endpoint": { 122 "url": "https://example.com" 123 } 124 }, 125 "params": { 126 "UseFIPS": false, 127 "Endpoint": "https://example.com" 128 } 129 }, 130 { 131 "documentation": "For custom endpoint with fips enabled and dualstack disabled", 132 "expect": { 133 "error": "Invalid Configuration: FIPS and custom endpoint are not supported" 134 }, 135 "params": { 136 "Region": "us-east-1", 137 "UseFIPS": true, 138 "Endpoint": "https://example.com" 139 } 140 }, 141 { 142 "documentation": "Missing region", 143 "expect": { 144 "error": "Invalid Configuration: Missing Region" 145 } 146 } 147 ], 148 "version": "1.0" 149}