Fix: Golang aws-sdk fails to parse elbv2:CreateLoadBalancer response (#3639)

The `botocore` response parsers are forgiving when it comes to timestamps,
but a real AWS backend does return time zone details for this attribute.

Verified failure/fix using the Go repo included in the issue report.

Fixes #3516
This commit is contained in:
Brian Pandola 2021-01-31 03:39:11 -08:00 committed by GitHub
commit 779d18e00c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View file

@ -51,6 +51,7 @@ def test_create_load_balancer():
{"SubnetId": subnet2.id, "ZoneName": "us-east-1b"},
]
)
lb.get("CreatedTime").tzinfo.should_not.be.none
# Ensure the tags persisted
response = conn.describe_tags(ResourceArns=[lb.get("LoadBalancerArn")])