aws-sdk-go-v2 icon indicating copy to clipboard operation
aws-sdk-go-v2 copied to clipboard

codegen: Protocol tests for endpoint prefix are skipped

Open jasdel opened this issue 3 years ago • 0 comments

Documentation

Describe the bug

The SDK's protocol test code generation skips protocol tests that exercise endpoint prefix and host label traits. The SDK fully supports these features, but the protocol test runner expects the HTTP request to be made to a local test server. This is not valid for these tests since the endpoint prefix and host label modifies the endpoint, since endpoints are IP addresses, (e.g. http://foo.127.0.0.1:59850/).

Expected behavior

The tests cases should not be skipped, and test runner should exercise them correctly.

Current behavior

endpoint prefix and host label tests are skipped

Steps to Reproduce

make unit-modules-internal_protocoltest

Possible Solution

Update the generated test runner not to use test HTTP server. Instead process the HTTP request directly.

AWS Go SDK version used

release-2022-03-16

Compiler and Version used

go1.18

Operating System and version

macOS 12.2.1

jasdel avatar Mar 17 '22 22:03 jasdel