Update Go AWS SDK to the latest version

This commit is contained in:
Andrey Smirnov
2019-07-13 00:03:55 +03:00
committed by Andrey Smirnov
parent d08be990ef
commit 94a72b23ff
2183 changed files with 885887 additions and 228114 deletions
@@ -31,6 +31,8 @@ func mockCRCResponse(svc *dynamodb.DynamoDB, status int, body, crc string) (req
header.Set("x-amz-crc32", crc)
req, _ = svc.ListTablesRequest(nil)
req.Handlers.Build.RemoveByName("crr.endpointdiscovery")
req.Handlers.Send.PushBack(func(*request.Request) {
req.HTTPResponse = &http.Response{
ContentLength: int64(len(body)),
@@ -119,6 +121,7 @@ func TestValidateCRC32DoesNotMatch(t *testing.T) {
if req.Error == nil {
t.Fatalf("expect error, but got none")
}
req.Handlers.Build.RemoveByName("crr.endpointdiscovery")
aerr := req.Error.(awserr.Error)
if e, a := "CRC32CheckFailed", aerr.Code(); e != a {