{ "testCases": [ { "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { "url": "https://servicediscovery-fips.us-gov-east-1.api.aws" } }, "params": { "UseFIPS": true, "Region": "us-gov-east-1", "UseDualStack": true } }, { "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://servicediscovery-fips.us-gov-east-1.amazonaws.com" } }, "params": { "UseFIPS": true, "Region": "us-gov-east-1", "UseDualStack": false } }, { "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { "url": "https://servicediscovery.us-gov-east-1.api.aws" } }, "params": { "UseFIPS": false, "Region": "us-gov-east-1", "UseDualStack": true } }, { "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://servicediscovery.us-gov-east-1.amazonaws.com" } }, "params": { "UseFIPS": false, "Region": "us-gov-east-1", "UseDualStack": false } }, { "documentation": "For region us-iso-west-1 with FIPS enabled and DualStack enabled", "expect": { "error": "FIPS and DualStack are enabled, but this partition does not support one or both" }, "params": { "UseFIPS": true, "Region": "us-iso-west-1", "UseDualStack": true } }, { "documentation": "For region us-iso-west-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://servicediscovery-fips.us-iso-west-1.c2s.ic.gov" } }, "params": { "UseFIPS": true, "Region": "us-iso-west-1", "UseDualStack": false } }, { "documentation": "For region us-iso-west-1 with FIPS disabled and DualStack enabled", "expect": { "error": "DualStack is enabled but this partition does not support DualStack" }, "params": { "UseFIPS": false, "Region": "us-iso-west-1", "UseDualStack": true } }, { "documentation": "For region us-iso-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://servicediscovery.us-iso-west-1.c2s.ic.gov" } }, "params": { "UseFIPS": false, "Region": "us-iso-west-1", "UseDualStack": false } }, { "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { "url": "https://servicediscovery-fips.cn-north-1.api.amazonwebservices.com.cn" } }, "params": { "UseFIPS": true, "Region": "cn-north-1", "UseDualStack": true } }, { "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://servicediscovery-fips.cn-north-1.amazonaws.com.cn" } }, "params": { "UseFIPS": true, "Region": "cn-north-1", "UseDualStack": false } }, { "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { "url": "https://servicediscovery.cn-north-1.api.amazonwebservices.com.cn" } }, "params": { "UseFIPS": false, "Region": "cn-north-1", "UseDualStack": true } }, { "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://servicediscovery.cn-north-1.amazonaws.com.cn" } }, "params": { "UseFIPS": false, "Region": "cn-north-1", "UseDualStack": false } }, { "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { "url": "https://servicediscovery-fips.us-gov-west-1.api.aws" } }, "params": { "UseFIPS": true, "Region": "us-gov-west-1", "UseDualStack": true } }, { "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://servicediscovery-fips.us-gov-west-1.amazonaws.com" } }, "params": { "UseFIPS": true, "Region": "us-gov-west-1", "UseDualStack": false } }, { "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { "url": "https://servicediscovery.us-gov-west-1.api.aws" } }, "params": { "UseFIPS": false, "Region": "us-gov-west-1", "UseDualStack": true } }, { "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://servicediscovery.us-gov-west-1.amazonaws.com" } }, "params": { "UseFIPS": false, "Region": "us-gov-west-1", "UseDualStack": false } }, { "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { "url": "https://servicediscovery-fips.us-east-1.api.aws" } }, "params": { "UseFIPS": true, "Region": "us-east-1", "UseDualStack": true } }, { "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { "url": "https://servicediscovery.us-east-1.api.aws" } }, "params": { "UseFIPS": false, "Region": "us-east-1", "UseDualStack": true } }, { "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://servicediscovery.us-east-1.amazonaws.com" } }, "params": { "UseFIPS": false, "Region": "us-east-1", "UseDualStack": false } }, { "documentation": "For region cn-northwest-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { "url": "https://servicediscovery-fips.cn-northwest-1.api.amazonwebservices.com.cn" } }, "params": { "UseFIPS": true, "Region": "cn-northwest-1", "UseDualStack": true } }, { "documentation": "For region cn-northwest-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://servicediscovery-fips.cn-northwest-1.amazonaws.com.cn" } }, "params": { "UseFIPS": true, "Region": "cn-northwest-1", "UseDualStack": false } }, { "documentation": "For region cn-northwest-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { "url": "https://servicediscovery.cn-northwest-1.api.amazonwebservices.com.cn" } }, "params": { "UseFIPS": false, "Region": "cn-northwest-1", "UseDualStack": true } }, { "documentation": "For region cn-northwest-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://servicediscovery.cn-northwest-1.amazonaws.com.cn" } }, "params": { "UseFIPS": false, "Region": "cn-northwest-1", "UseDualStack": false } }, { "documentation": "For custom endpoint with fips disabled and dualstack disabled", "expect": { "endpoint": { "url": "https://example.com" } }, "params": { "UseFIPS": false, "Region": "us-east-1", "UseDualStack": false, "Endpoint": "https://example.com" } }, { "documentation": "For custom endpoint with fips enabled and dualstack disabled", "expect": { "error": "Invalid Configuration: FIPS and custom endpoint are not supported" }, "params": { "UseFIPS": true, "Region": "us-east-1", "UseDualStack": false, "Endpoint": "https://example.com" } }, { "documentation": "For custom endpoint with fips disabled and dualstack enabled", "expect": { "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" }, "params": { "UseFIPS": false, "Region": "us-east-1", "UseDualStack": true, "Endpoint": "https://example.com" } } ], "version": "1.0" }