python-botocore/tests/functional/endpoint-rules/privatenetworks/endpoint-tests-1.json
2022-12-12 08:14:19 -08:00

199 lines
6.4 KiB
JSON

{
"testCases": [
{
"documentation": "For region us-west-2 with FIPS enabled and DualStack enabled",
"expect": {
"endpoint": {
"url": "https://private-networks-fips.us-west-2.api.aws"
}
},
"params": {
"UseFIPS": true,
"UseDualStack": true,
"Region": "us-west-2"
}
},
{
"documentation": "For region us-west-2 with FIPS enabled and DualStack disabled",
"expect": {
"endpoint": {
"url": "https://private-networks-fips.us-west-2.amazonaws.com"
}
},
"params": {
"UseFIPS": true,
"UseDualStack": false,
"Region": "us-west-2"
}
},
{
"documentation": "For region us-west-2 with FIPS disabled and DualStack enabled",
"expect": {
"endpoint": {
"url": "https://private-networks.us-west-2.api.aws"
}
},
"params": {
"UseFIPS": false,
"UseDualStack": true,
"Region": "us-west-2"
}
},
{
"documentation": "For region us-west-2 with FIPS disabled and DualStack disabled",
"expect": {
"endpoint": {
"url": "https://private-networks.us-west-2.amazonaws.com"
}
},
"params": {
"UseFIPS": false,
"UseDualStack": false,
"Region": "us-west-2"
}
},
{
"documentation": "For region us-east-1 with FIPS enabled and DualStack enabled",
"expect": {
"endpoint": {
"url": "https://private-networks-fips.us-east-1.api.aws"
}
},
"params": {
"UseFIPS": true,
"UseDualStack": true,
"Region": "us-east-1"
}
},
{
"documentation": "For region us-east-1 with FIPS enabled and DualStack disabled",
"expect": {
"endpoint": {
"url": "https://private-networks-fips.us-east-1.amazonaws.com"
}
},
"params": {
"UseFIPS": true,
"UseDualStack": false,
"Region": "us-east-1"
}
},
{
"documentation": "For region us-east-1 with FIPS disabled and DualStack enabled",
"expect": {
"endpoint": {
"url": "https://private-networks.us-east-1.api.aws"
}
},
"params": {
"UseFIPS": false,
"UseDualStack": true,
"Region": "us-east-1"
}
},
{
"documentation": "For region us-east-1 with FIPS disabled and DualStack disabled",
"expect": {
"endpoint": {
"url": "https://private-networks.us-east-1.amazonaws.com"
}
},
"params": {
"UseFIPS": false,
"UseDualStack": false,
"Region": "us-east-1"
}
},
{
"documentation": "For region us-east-2 with FIPS enabled and DualStack enabled",
"expect": {
"endpoint": {
"url": "https://private-networks-fips.us-east-2.api.aws"
}
},
"params": {
"UseFIPS": true,
"UseDualStack": true,
"Region": "us-east-2"
}
},
{
"documentation": "For region us-east-2 with FIPS enabled and DualStack disabled",
"expect": {
"endpoint": {
"url": "https://private-networks-fips.us-east-2.amazonaws.com"
}
},
"params": {
"UseFIPS": true,
"UseDualStack": false,
"Region": "us-east-2"
}
},
{
"documentation": "For region us-east-2 with FIPS disabled and DualStack enabled",
"expect": {
"endpoint": {
"url": "https://private-networks.us-east-2.api.aws"
}
},
"params": {
"UseFIPS": false,
"UseDualStack": true,
"Region": "us-east-2"
}
},
{
"documentation": "For region us-east-2 with FIPS disabled and DualStack disabled",
"expect": {
"endpoint": {
"url": "https://private-networks.us-east-2.amazonaws.com"
}
},
"params": {
"UseFIPS": false,
"UseDualStack": false,
"Region": "us-east-2"
}
},
{
"documentation": "For custom endpoint with fips disabled and dualstack disabled",
"expect": {
"endpoint": {
"url": "https://example.com"
}
},
"params": {
"UseFIPS": false,
"UseDualStack": false,
"Region": "us-east-1",
"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,
"UseDualStack": false,
"Region": "us-east-1",
"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,
"UseDualStack": true,
"Region": "us-east-1",
"Endpoint": "https://example.com"
}
}
],
"version": "1.0"
}