aws-sdk-go-v2
aws-sdk-go-v2 copied to clipboard
codegen: Protocol tests for endpoint prefix are skipped
Documentation
- [X] I've gone though the API reference
- [X] I've checked AWS Forums and StackOverflow for answers
- [X] I've searched for previous similar issues and didn't find any solution
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