test(bedrock): cover FIPS, GovCloud, and China STS endpoints

Addresses greptile P2: regex sts(?:-fips)? supported sts-fips hosts but
was not exercised by the parametrized parse test.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Milan 2026-05-19 13:47:25 +03:00
parent 33aeb993bf
commit 875b570e29
No known key found for this signature in database

View file

@ -934,6 +934,10 @@ def test_eks_irsa_ambient_credentials_used(role_kwargs, expected_client_kwargs):
[
("https://sts.eu-west-1.amazonaws.com", "eu-west-1"),
("https://sts.us-east-1.amazonaws.com", "us-east-1"),
("https://sts-fips.us-east-1.amazonaws.com", "us-east-1"),
("https://sts-fips.us-gov-west-1.amazonaws.com", "us-gov-west-1"),
("https://sts.us-gov-west-1.amazonaws.com", "us-gov-west-1"),
("https://sts.cn-north-1.amazonaws.com.cn", "cn-north-1"),
(
"https://vpce-abc123.sts.eu-west-1.vpce.amazonaws.com",
"eu-west-1",