diff --git a/.changelog/410d0cbaa49e46deb10a8e84915e474b.json b/.changelog/410d0cbaa49e46deb10a8e84915e474b.json new file mode 100644 index 00000000000..29995fbed39 --- /dev/null +++ b/.changelog/410d0cbaa49e46deb10a8e84915e474b.json @@ -0,0 +1,16 @@ +{ + "id": "410d0cba-a49e-46de-b10a-8e84915e474b", + "type": "bugfix", + "collapse": true, + "description": "Modify protocol unit test cases to include endpoint and host label cases and deprecate local server dependency", + "modules": [ + ".", + "internal/protocoltest/awsrestjson", + "internal/protocoltest/ec2query", + "internal/protocoltest/jsonrpc", + "internal/protocoltest/jsonrpc10", + "internal/protocoltest/query", + "internal/protocoltest/restxml", + "internal/protocoltest/restxmlwithnamespace" + ] +} \ No newline at end of file diff --git a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/AwsGoDependency.java b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/AwsGoDependency.java index a0b310ad380..b21e135dcce 100644 --- a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/AwsGoDependency.java +++ b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/AwsGoDependency.java @@ -57,7 +57,7 @@ public class AwsGoDependency { null, Versions.INTERNAL_SIGV4A, "v4a"); public static final GoDependency S3_INTERNAL_ARN = aws("service/internal/s3shared/arn", "s3arn"); public static final GoDependency AWS_ARN = aws("aws/arn", "awsarn"); - + public static final GoDependency AWS_PROTOCOL_TEST_HTTP_CLIENT = aws("internal/protocoltest", "protocoltesthttp"); public static final GoDependency REGEXP = SmithyGoDependency.stdlib("regexp"); diff --git a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/AwsProtocolUtils.java b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/AwsProtocolUtils.java index 2b6e3f04f48..0b94ebc976c 100644 --- a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/AwsProtocolUtils.java +++ b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/AwsProtocolUtils.java @@ -17,6 +17,8 @@ import java.util.Set; import java.util.TreeSet; + +import software.amazon.smithy.aws.go.codegen.customization.AwsCustomGoDependency; import software.amazon.smithy.codegen.core.Symbol; import software.amazon.smithy.go.codegen.GoWriter; import software.amazon.smithy.go.codegen.SmithyGoDependency; @@ -98,96 +100,12 @@ static void generateHttpProtocolTests(GenerationContext context) { inputConfigValues.add(HttpProtocolUnitTestGenerator.ConfigValue.builder() .name(AddAwsConfigFields.HTTP_CLIENT_CONFIG_NAME) .value(writer -> { - writer.addUseImports(AwsGoDependency.AWS_HTTP_TRANSPORT); - writer.write("awshttp.NewBuildableClient(),"); + writer.addUseImports(AwsGoDependency.AWS_PROTOCOL_TEST_HTTP_CLIENT); + writer.write("protocoltesthttp.NewClient(),"); }) .build()); - Set inputSkipTests = new TreeSet<>(SetUtils.of( - // Endpoint prefix serialization doesn't work with test runner's handling of request URLs. - // e.g. http://foo.127.0.0.1:59850/ dial fail - HttpProtocolUnitTestGenerator.SkipTest.builder() - .service(ShapeId.from("aws.protocoltests.restjson#RestJson")) - .operation(ShapeId.from("aws.protocoltests.restjson#EndpointOperation")) - .addTestName("RestJsonEndpointTrait") - .build(), - HttpProtocolUnitTestGenerator.SkipTest.builder() - .service(ShapeId.from("aws.protocoltests.restjson#RestJson")) - .operation(ShapeId.from("aws.protocoltests.restjson#EndpointWithHostLabelOperation")) - .addTestName("RestJsonEndpointTraitWithHostLabel") - .build(), - - // Endpoint prefix serialization doesn't work with test runner's handling of request URLs. - // e.g. http://foo.127.0.0.1:59850/ dial fail - HttpProtocolUnitTestGenerator.SkipTest.builder() - .service(ShapeId.from("aws.protocoltests.ec2#AwsEc2")) - .operation(ShapeId.from("aws.protocoltests.ec2#EndpointOperation")) - .addTestName("Ec2QueryEndpointTrait") - .build(), - HttpProtocolUnitTestGenerator.SkipTest.builder() - .service(ShapeId.from("aws.protocoltests.ec2#AwsEc2")) - .operation(ShapeId.from("aws.protocoltests.ec2#EndpointWithHostLabelOperation")) - .addTestName("Ec2QueryEndpointTraitWithHostLabel") - .build(), - - // Endpoint prefix serialization doesn't work with test runner's handling of request URLs. - // e.g. http://foo.127.0.0.1:59850/ dial fail - HttpProtocolUnitTestGenerator.SkipTest.builder() - .service(ShapeId.from("aws.protocoltests.json#JsonProtocol")) - .operation(ShapeId.from("aws.protocoltests.json#EndpointOperation")) - .addTestName("AwsJson11EndpointTrait") - .build(), - HttpProtocolUnitTestGenerator.SkipTest.builder() - .service(ShapeId.from("aws.protocoltests.json#JsonProtocol")) - .operation(ShapeId.from("aws.protocoltests.json#EndpointWithHostLabelOperation")) - .addTestName("AwsJson11EndpointTraitWithHostLabel") - .build(), - - // Endpoint prefix serialization doesn't work with test runner's handling of request URLs. - // e.g. http://foo.127.0.0.1:59850/ dial fail - HttpProtocolUnitTestGenerator.SkipTest.builder() - .service(ShapeId.from("aws.protocoltests.json10#JsonRpc10")) - .operation(ShapeId.from("aws.protocoltests.json10#EndpointOperation")) - .addTestName("AwsJson10EndpointTrait") - .build(), - HttpProtocolUnitTestGenerator.SkipTest.builder() - .service(ShapeId.from("aws.protocoltests.json10#JsonRpc10")) - .operation(ShapeId.from("aws.protocoltests.json10#EndpointWithHostLabelOperation")) - .addTestName("AwsJson10EndpointTraitWithHostLabel") - .build(), - - // Endpoint prefix serialization doesn't work with test runner's handling of request URLs. - // e.g. http://foo.127.0.0.1:59850/ dial fail - HttpProtocolUnitTestGenerator.SkipTest.builder() - .service(ShapeId.from("aws.protocoltests.query#AwsQuery")) - .operation(ShapeId.from("aws.protocoltests.query#EndpointOperation")) - .addTestName("AwsQueryEndpointTrait") - .build(), - HttpProtocolUnitTestGenerator.SkipTest.builder() - .service(ShapeId.from("aws.protocoltests.query#AwsQuery")) - .operation(ShapeId.from("aws.protocoltests.query#EndpointWithHostLabelOperation")) - .addTestName("AwsQueryEndpointTraitWithHostLabel") - .build(), - - // Endpoint prefix serialization doesn't work with test runner's handling of request URLs. - // e.g. http://foo.127.0.0.1:59850/ dial fail - HttpProtocolUnitTestGenerator.SkipTest.builder() - .service(ShapeId.from("aws.protocoltests.restxml#RestXml")) - .operation(ShapeId.from("aws.protocoltests.restxml#EndpointOperation")) - .addTestName("RestXmlEndpointTrait") - .build(), - HttpProtocolUnitTestGenerator.SkipTest.builder() - .service(ShapeId.from("aws.protocoltests.restxml#RestXml")) - .operation(ShapeId.from("aws.protocoltests.restxml#EndpointWithHostLabelHeaderOperation")) - .addTestName("RestXmlEndpointTraitWithHostLabelAndHttpBinding") - .build(), - HttpProtocolUnitTestGenerator.SkipTest.builder() - .service(ShapeId.from("aws.protocoltests.restxml#RestXml")) - .operation(ShapeId.from("aws.protocoltests.restxml#EndpointWithHostLabelOperation")) - .addTestName("RestXmlEndpointTraitWithHostLabel") - .build() - - )); + Set inputSkipTests = new TreeSet<>(SetUtils.of()); Set outputSkipTests = new TreeSet<>(SetUtils.of( // REST-JSON optional (SHOULD) test cases diff --git a/internal/protocoltest/awsrestjson/api_op_AllQueryStringTypes_test.go b/internal/protocoltest/awsrestjson/api_op_AllQueryStringTypes_test.go index 931fc1b86f4..b24830c6ddf 100644 --- a/internal/protocoltest/awsrestjson/api_op_AllQueryStringTypes_test.go +++ b/internal/protocoltest/awsrestjson/api_op_AllQueryStringTypes_test.go @@ -3,23 +3,20 @@ package awsrestjson import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/aws-sdk-go-v2/internal/protocoltest/awsrestjson/types" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" smithytime "github.com/aws/smithy-go/time" "io" - "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" "time" ) @@ -341,25 +338,8 @@ func TestClient_AllQueryStringTypes_awsRestjson1Serialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -383,11 +363,15 @@ func TestClient_AllQueryStringTypes_awsRestjson1Serialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.AllQueryStringTypes(context.Background(), c.Params) + result, err := client.AllQueryStringTypes(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/awsrestjson/api_op_ConstantAndVariableQueryString_test.go b/internal/protocoltest/awsrestjson/api_op_ConstantAndVariableQueryString_test.go index a57a0041d11..c196570bb5f 100644 --- a/internal/protocoltest/awsrestjson/api_op_ConstantAndVariableQueryString_test.go +++ b/internal/protocoltest/awsrestjson/api_op_ConstantAndVariableQueryString_test.go @@ -3,20 +3,17 @@ package awsrestjson import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" "io" - "io/ioutil" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -73,25 +70,8 @@ func TestClient_ConstantAndVariableQueryString_awsRestjson1Serialize(t *testing. } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -115,11 +95,15 @@ func TestClient_ConstantAndVariableQueryString_awsRestjson1Serialize(t *testing. e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.ConstantAndVariableQueryString(context.Background(), c.Params) + result, err := client.ConstantAndVariableQueryString(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/awsrestjson/api_op_ConstantQueryString_test.go b/internal/protocoltest/awsrestjson/api_op_ConstantQueryString_test.go index f66c17c0784..c0d175fb68b 100644 --- a/internal/protocoltest/awsrestjson/api_op_ConstantQueryString_test.go +++ b/internal/protocoltest/awsrestjson/api_op_ConstantQueryString_test.go @@ -3,20 +3,17 @@ package awsrestjson import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" "io" - "io/ioutil" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -53,25 +50,8 @@ func TestClient_ConstantQueryString_awsRestjson1Serialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -95,11 +75,15 @@ func TestClient_ConstantQueryString_awsRestjson1Serialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.ConstantQueryString(context.Background(), c.Params) + result, err := client.ConstantQueryString(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/awsrestjson/api_op_DocumentTypeAsPayload_test.go b/internal/protocoltest/awsrestjson/api_op_DocumentTypeAsPayload_test.go index 0e777d7286a..f0fc51708f7 100644 --- a/internal/protocoltest/awsrestjson/api_op_DocumentTypeAsPayload_test.go +++ b/internal/protocoltest/awsrestjson/api_op_DocumentTypeAsPayload_test.go @@ -6,10 +6,11 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/aws-sdk-go-v2/internal/protocoltest/awsrestjson/document" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" smithyhttp "github.com/aws/smithy-go/transport/http" @@ -19,9 +20,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -79,25 +78,8 @@ func TestClient_DocumentTypeAsPayload_awsRestjson1Serialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -121,11 +103,15 @@ func TestClient_DocumentTypeAsPayload_awsRestjson1Serialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.DocumentTypeAsPayload(context.Background(), c.Params) + result, err := client.DocumentTypeAsPayload(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/awsrestjson/api_op_DocumentType_test.go b/internal/protocoltest/awsrestjson/api_op_DocumentType_test.go index 3ba1be89b42..902792c0fd0 100644 --- a/internal/protocoltest/awsrestjson/api_op_DocumentType_test.go +++ b/internal/protocoltest/awsrestjson/api_op_DocumentType_test.go @@ -6,10 +6,11 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/aws-sdk-go-v2/internal/protocoltest/awsrestjson/document" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" @@ -20,9 +21,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -178,25 +177,8 @@ func TestClient_DocumentType_awsRestjson1Serialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -220,11 +202,15 @@ func TestClient_DocumentType_awsRestjson1Serialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.DocumentType(context.Background(), c.Params) + result, err := client.DocumentType(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/awsrestjson/api_op_EmptyInputAndEmptyOutput_test.go b/internal/protocoltest/awsrestjson/api_op_EmptyInputAndEmptyOutput_test.go index 82ca3338acc..29f4341799f 100644 --- a/internal/protocoltest/awsrestjson/api_op_EmptyInputAndEmptyOutput_test.go +++ b/internal/protocoltest/awsrestjson/api_op_EmptyInputAndEmptyOutput_test.go @@ -6,9 +6,10 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" smithyhttp "github.com/aws/smithy-go/transport/http" @@ -18,9 +19,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -54,25 +53,8 @@ func TestClient_EmptyInputAndEmptyOutput_awsRestjson1Serialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -96,11 +78,15 @@ func TestClient_EmptyInputAndEmptyOutput_awsRestjson1Serialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.EmptyInputAndEmptyOutput(context.Background(), c.Params) + result, err := client.EmptyInputAndEmptyOutput(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/awsrestjson/api_op_EndpointOperation_test.go b/internal/protocoltest/awsrestjson/api_op_EndpointOperation_test.go index 8d09bfbb233..4b807c806ad 100644 --- a/internal/protocoltest/awsrestjson/api_op_EndpointOperation_test.go +++ b/internal/protocoltest/awsrestjson/api_op_EndpointOperation_test.go @@ -3,19 +3,16 @@ package awsrestjson import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" "io" - "io/ioutil" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -58,29 +55,8 @@ func TestClient_EndpointOperation_awsRestjson1Serialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - if name == "RestJsonEndpointTrait" { - t.Skip("disabled test aws.protocoltests.restjson#RestJson aws.protocoltests.restjson#EndpointOperation") - } - - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -104,11 +80,15 @@ func TestClient_EndpointOperation_awsRestjson1Serialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.EndpointOperation(context.Background(), c.Params) + result, err := client.EndpointOperation(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/awsrestjson/api_op_EndpointWithHostLabelOperation_test.go b/internal/protocoltest/awsrestjson/api_op_EndpointWithHostLabelOperation_test.go index 24991de775c..d5b3555c9e4 100644 --- a/internal/protocoltest/awsrestjson/api_op_EndpointWithHostLabelOperation_test.go +++ b/internal/protocoltest/awsrestjson/api_op_EndpointWithHostLabelOperation_test.go @@ -3,20 +3,17 @@ package awsrestjson import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" "io" - "io/ioutil" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -64,29 +61,8 @@ func TestClient_EndpointWithHostLabelOperation_awsRestjson1Serialize(t *testing. } for name, c := range cases { t.Run(name, func(t *testing.T) { - if name == "RestJsonEndpointTraitWithHostLabel" { - t.Skip("disabled test aws.protocoltests.restjson#RestJson aws.protocoltests.restjson#EndpointWithHostLabelOperation") - } - - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -110,11 +86,15 @@ func TestClient_EndpointWithHostLabelOperation_awsRestjson1Serialize(t *testing. e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.EndpointWithHostLabelOperation(context.Background(), c.Params) + result, err := client.EndpointWithHostLabelOperation(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/awsrestjson/api_op_HostWithPathOperation_test.go b/internal/protocoltest/awsrestjson/api_op_HostWithPathOperation_test.go index 9ff065c1b8e..3c5ccf54479 100644 --- a/internal/protocoltest/awsrestjson/api_op_HostWithPathOperation_test.go +++ b/internal/protocoltest/awsrestjson/api_op_HostWithPathOperation_test.go @@ -3,19 +3,16 @@ package awsrestjson import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" "io" - "io/ioutil" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -58,25 +55,8 @@ func TestClient_HostWithPathOperation_awsRestjson1Serialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -100,11 +80,15 @@ func TestClient_HostWithPathOperation_awsRestjson1Serialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.HostWithPathOperation(context.Background(), c.Params) + result, err := client.HostWithPathOperation(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/awsrestjson/api_op_HttpChecksumRequired_test.go b/internal/protocoltest/awsrestjson/api_op_HttpChecksumRequired_test.go index 3f634aa13d2..ec5fec96dd5 100644 --- a/internal/protocoltest/awsrestjson/api_op_HttpChecksumRequired_test.go +++ b/internal/protocoltest/awsrestjson/api_op_HttpChecksumRequired_test.go @@ -3,20 +3,17 @@ package awsrestjson import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" "io" - "io/ioutil" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -58,25 +55,8 @@ func TestClient_HttpChecksumRequired_awsRestjson1Serialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -100,11 +80,15 @@ func TestClient_HttpChecksumRequired_awsRestjson1Serialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.HttpChecksumRequired(context.Background(), c.Params) + result, err := client.HttpChecksumRequired(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/awsrestjson/api_op_HttpEnumPayload_test.go b/internal/protocoltest/awsrestjson/api_op_HttpEnumPayload_test.go index d774212b8cc..ef2faa578c2 100644 --- a/internal/protocoltest/awsrestjson/api_op_HttpEnumPayload_test.go +++ b/internal/protocoltest/awsrestjson/api_op_HttpEnumPayload_test.go @@ -6,10 +6,11 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/aws-sdk-go-v2/internal/protocoltest/awsrestjson/types" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" smithyhttp "github.com/aws/smithy-go/transport/http" @@ -19,9 +20,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -54,25 +53,8 @@ func TestClient_HttpEnumPayload_awsRestjson1Serialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -96,11 +78,15 @@ func TestClient_HttpEnumPayload_awsRestjson1Serialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.HttpEnumPayload(context.Background(), c.Params) + result, err := client.HttpEnumPayload(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/awsrestjson/api_op_HttpPayloadTraitsWithMediaType_test.go b/internal/protocoltest/awsrestjson/api_op_HttpPayloadTraitsWithMediaType_test.go index 85fd303b43a..db17ff35118 100644 --- a/internal/protocoltest/awsrestjson/api_op_HttpPayloadTraitsWithMediaType_test.go +++ b/internal/protocoltest/awsrestjson/api_op_HttpPayloadTraitsWithMediaType_test.go @@ -6,9 +6,10 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" @@ -19,9 +20,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -64,25 +63,8 @@ func TestClient_HttpPayloadTraitsWithMediaType_awsRestjson1Serialize(t *testing. } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -106,11 +88,15 @@ func TestClient_HttpPayloadTraitsWithMediaType_awsRestjson1Serialize(t *testing. e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.HttpPayloadTraitsWithMediaType(context.Background(), c.Params) + result, err := client.HttpPayloadTraitsWithMediaType(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/awsrestjson/api_op_HttpPayloadTraits_test.go b/internal/protocoltest/awsrestjson/api_op_HttpPayloadTraits_test.go index 1c18232a6ef..a9e594c36ff 100644 --- a/internal/protocoltest/awsrestjson/api_op_HttpPayloadTraits_test.go +++ b/internal/protocoltest/awsrestjson/api_op_HttpPayloadTraits_test.go @@ -6,9 +6,10 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" @@ -19,9 +20,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -80,25 +79,8 @@ func TestClient_HttpPayloadTraits_awsRestjson1Serialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -122,11 +104,15 @@ func TestClient_HttpPayloadTraits_awsRestjson1Serialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.HttpPayloadTraits(context.Background(), c.Params) + result, err := client.HttpPayloadTraits(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/awsrestjson/api_op_HttpPayloadWithStructure_test.go b/internal/protocoltest/awsrestjson/api_op_HttpPayloadWithStructure_test.go index 804ef101ddb..ba035f1b1c5 100644 --- a/internal/protocoltest/awsrestjson/api_op_HttpPayloadWithStructure_test.go +++ b/internal/protocoltest/awsrestjson/api_op_HttpPayloadWithStructure_test.go @@ -6,10 +6,11 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/aws-sdk-go-v2/internal/protocoltest/awsrestjson/types" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" @@ -20,9 +21,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -69,25 +68,8 @@ func TestClient_HttpPayloadWithStructure_awsRestjson1Serialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -111,11 +93,15 @@ func TestClient_HttpPayloadWithStructure_awsRestjson1Serialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.HttpPayloadWithStructure(context.Background(), c.Params) + result, err := client.HttpPayloadWithStructure(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/awsrestjson/api_op_HttpPrefixHeaders_test.go b/internal/protocoltest/awsrestjson/api_op_HttpPrefixHeaders_test.go index ac99add3fda..0eb251e4d45 100644 --- a/internal/protocoltest/awsrestjson/api_op_HttpPrefixHeaders_test.go +++ b/internal/protocoltest/awsrestjson/api_op_HttpPrefixHeaders_test.go @@ -6,9 +6,10 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" @@ -19,9 +20,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -80,25 +79,8 @@ func TestClient_HttpPrefixHeaders_awsRestjson1Serialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -122,11 +104,15 @@ func TestClient_HttpPrefixHeaders_awsRestjson1Serialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.HttpPrefixHeaders(context.Background(), c.Params) + result, err := client.HttpPrefixHeaders(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/awsrestjson/api_op_HttpRequestWithFloatLabels_test.go b/internal/protocoltest/awsrestjson/api_op_HttpRequestWithFloatLabels_test.go index eb962217eb7..12831397dd1 100644 --- a/internal/protocoltest/awsrestjson/api_op_HttpRequestWithFloatLabels_test.go +++ b/internal/protocoltest/awsrestjson/api_op_HttpRequestWithFloatLabels_test.go @@ -3,21 +3,18 @@ package awsrestjson import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" "io" - "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -78,25 +75,8 @@ func TestClient_HttpRequestWithFloatLabels_awsRestjson1Serialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -120,11 +100,15 @@ func TestClient_HttpRequestWithFloatLabels_awsRestjson1Serialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.HttpRequestWithFloatLabels(context.Background(), c.Params) + result, err := client.HttpRequestWithFloatLabels(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/awsrestjson/api_op_HttpRequestWithGreedyLabelInPath_test.go b/internal/protocoltest/awsrestjson/api_op_HttpRequestWithGreedyLabelInPath_test.go index 19b177ca6f5..46c6ce94275 100644 --- a/internal/protocoltest/awsrestjson/api_op_HttpRequestWithGreedyLabelInPath_test.go +++ b/internal/protocoltest/awsrestjson/api_op_HttpRequestWithGreedyLabelInPath_test.go @@ -3,20 +3,17 @@ package awsrestjson import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" "io" - "io/ioutil" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -51,25 +48,8 @@ func TestClient_HttpRequestWithGreedyLabelInPath_awsRestjson1Serialize(t *testin } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -93,11 +73,15 @@ func TestClient_HttpRequestWithGreedyLabelInPath_awsRestjson1Serialize(t *testin e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.HttpRequestWithGreedyLabelInPath(context.Background(), c.Params) + result, err := client.HttpRequestWithGreedyLabelInPath(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/awsrestjson/api_op_HttpRequestWithLabelsAndTimestampFormat_test.go b/internal/protocoltest/awsrestjson/api_op_HttpRequestWithLabelsAndTimestampFormat_test.go index fc9a593ffd0..f50fde3ce67 100644 --- a/internal/protocoltest/awsrestjson/api_op_HttpRequestWithLabelsAndTimestampFormat_test.go +++ b/internal/protocoltest/awsrestjson/api_op_HttpRequestWithLabelsAndTimestampFormat_test.go @@ -3,21 +3,18 @@ package awsrestjson import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" smithytime "github.com/aws/smithy-go/time" "io" - "io/ioutil" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -57,25 +54,8 @@ func TestClient_HttpRequestWithLabelsAndTimestampFormat_awsRestjson1Serialize(t } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -99,11 +79,15 @@ func TestClient_HttpRequestWithLabelsAndTimestampFormat_awsRestjson1Serialize(t e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.HttpRequestWithLabelsAndTimestampFormat(context.Background(), c.Params) + result, err := client.HttpRequestWithLabelsAndTimestampFormat(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/awsrestjson/api_op_HttpRequestWithLabels_test.go b/internal/protocoltest/awsrestjson/api_op_HttpRequestWithLabels_test.go index 021b1340e0b..3903ff0ea6e 100644 --- a/internal/protocoltest/awsrestjson/api_op_HttpRequestWithLabels_test.go +++ b/internal/protocoltest/awsrestjson/api_op_HttpRequestWithLabels_test.go @@ -3,21 +3,18 @@ package awsrestjson import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" smithytime "github.com/aws/smithy-go/time" "io" - "io/ioutil" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -77,25 +74,8 @@ func TestClient_HttpRequestWithLabels_awsRestjson1Serialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -119,11 +99,15 @@ func TestClient_HttpRequestWithLabels_awsRestjson1Serialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.HttpRequestWithLabels(context.Background(), c.Params) + result, err := client.HttpRequestWithLabels(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/awsrestjson/api_op_HttpRequestWithRegexLiteral_test.go b/internal/protocoltest/awsrestjson/api_op_HttpRequestWithRegexLiteral_test.go index 1f366ab8c4c..caaf5c65b80 100644 --- a/internal/protocoltest/awsrestjson/api_op_HttpRequestWithRegexLiteral_test.go +++ b/internal/protocoltest/awsrestjson/api_op_HttpRequestWithRegexLiteral_test.go @@ -3,20 +3,17 @@ package awsrestjson import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" "io" - "io/ioutil" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -50,25 +47,8 @@ func TestClient_HttpRequestWithRegexLiteral_awsRestjson1Serialize(t *testing.T) } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -92,11 +72,15 @@ func TestClient_HttpRequestWithRegexLiteral_awsRestjson1Serialize(t *testing.T) e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.HttpRequestWithRegexLiteral(context.Background(), c.Params) + result, err := client.HttpRequestWithRegexLiteral(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/awsrestjson/api_op_HttpStringPayload_test.go b/internal/protocoltest/awsrestjson/api_op_HttpStringPayload_test.go index b67c6e312c7..5e22268b736 100644 --- a/internal/protocoltest/awsrestjson/api_op_HttpStringPayload_test.go +++ b/internal/protocoltest/awsrestjson/api_op_HttpStringPayload_test.go @@ -6,9 +6,10 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" @@ -19,9 +20,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -54,25 +53,8 @@ func TestClient_HttpStringPayload_awsRestjson1Serialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -96,11 +78,15 @@ func TestClient_HttpStringPayload_awsRestjson1Serialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.HttpStringPayload(context.Background(), c.Params) + result, err := client.HttpStringPayload(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/awsrestjson/api_op_InputAndOutputWithHeaders_test.go b/internal/protocoltest/awsrestjson/api_op_InputAndOutputWithHeaders_test.go index f5e9b153a0b..2488158f80f 100644 --- a/internal/protocoltest/awsrestjson/api_op_InputAndOutputWithHeaders_test.go +++ b/internal/protocoltest/awsrestjson/api_op_InputAndOutputWithHeaders_test.go @@ -6,10 +6,11 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/aws-sdk-go-v2/internal/protocoltest/awsrestjson/types" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" @@ -21,9 +22,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" "time" ) @@ -257,25 +256,8 @@ func TestClient_InputAndOutputWithHeaders_awsRestjson1Serialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -299,11 +281,15 @@ func TestClient_InputAndOutputWithHeaders_awsRestjson1Serialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.InputAndOutputWithHeaders(context.Background(), c.Params) + result, err := client.InputAndOutputWithHeaders(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/awsrestjson/api_op_JsonBlobs_test.go b/internal/protocoltest/awsrestjson/api_op_JsonBlobs_test.go index 1ae771d1df8..c9c6d5a8b9a 100644 --- a/internal/protocoltest/awsrestjson/api_op_JsonBlobs_test.go +++ b/internal/protocoltest/awsrestjson/api_op_JsonBlobs_test.go @@ -6,9 +6,10 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" smithyhttp "github.com/aws/smithy-go/transport/http" @@ -18,9 +19,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -60,25 +59,8 @@ func TestClient_JsonBlobs_awsRestjson1Serialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -102,11 +84,15 @@ func TestClient_JsonBlobs_awsRestjson1Serialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.JsonBlobs(context.Background(), c.Params) + result, err := client.JsonBlobs(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/awsrestjson/api_op_JsonEnums_test.go b/internal/protocoltest/awsrestjson/api_op_JsonEnums_test.go index 3297b7a3cdd..a91ef084f01 100644 --- a/internal/protocoltest/awsrestjson/api_op_JsonEnums_test.go +++ b/internal/protocoltest/awsrestjson/api_op_JsonEnums_test.go @@ -6,10 +6,11 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/aws-sdk-go-v2/internal/protocoltest/awsrestjson/types" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" smithyhttp "github.com/aws/smithy-go/transport/http" @@ -19,9 +20,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -89,25 +88,8 @@ func TestClient_JsonEnums_awsRestjson1Serialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -131,11 +113,15 @@ func TestClient_JsonEnums_awsRestjson1Serialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.JsonEnums(context.Background(), c.Params) + result, err := client.JsonEnums(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/awsrestjson/api_op_JsonIntEnums_test.go b/internal/protocoltest/awsrestjson/api_op_JsonIntEnums_test.go index ee0dd733236..c7334bae95e 100644 --- a/internal/protocoltest/awsrestjson/api_op_JsonIntEnums_test.go +++ b/internal/protocoltest/awsrestjson/api_op_JsonIntEnums_test.go @@ -6,10 +6,11 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/aws-sdk-go-v2/internal/protocoltest/awsrestjson/types" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" smithyhttp "github.com/aws/smithy-go/transport/http" @@ -19,9 +20,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -91,25 +90,8 @@ func TestClient_JsonIntEnums_awsRestjson1Serialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -133,11 +115,15 @@ func TestClient_JsonIntEnums_awsRestjson1Serialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.JsonIntEnums(context.Background(), c.Params) + result, err := client.JsonIntEnums(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/awsrestjson/api_op_JsonLists_test.go b/internal/protocoltest/awsrestjson/api_op_JsonLists_test.go index 8efdcd5590f..977af4007d4 100644 --- a/internal/protocoltest/awsrestjson/api_op_JsonLists_test.go +++ b/internal/protocoltest/awsrestjson/api_op_JsonLists_test.go @@ -6,10 +6,11 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/aws-sdk-go-v2/internal/protocoltest/awsrestjson/types" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" @@ -21,9 +22,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" "time" ) @@ -200,25 +199,8 @@ func TestClient_JsonLists_awsRestjson1Serialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -242,11 +224,15 @@ func TestClient_JsonLists_awsRestjson1Serialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.JsonLists(context.Background(), c.Params) + result, err := client.JsonLists(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/awsrestjson/api_op_JsonMaps_test.go b/internal/protocoltest/awsrestjson/api_op_JsonMaps_test.go index f1dee2997a7..11d5eb01a97 100644 --- a/internal/protocoltest/awsrestjson/api_op_JsonMaps_test.go +++ b/internal/protocoltest/awsrestjson/api_op_JsonMaps_test.go @@ -6,10 +6,11 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/aws-sdk-go-v2/internal/protocoltest/awsrestjson/types" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" @@ -20,9 +21,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -255,25 +254,8 @@ func TestClient_JsonMaps_awsRestjson1Serialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -297,11 +279,15 @@ func TestClient_JsonMaps_awsRestjson1Serialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.JsonMaps(context.Background(), c.Params) + result, err := client.JsonMaps(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/awsrestjson/api_op_JsonTimestamps_test.go b/internal/protocoltest/awsrestjson/api_op_JsonTimestamps_test.go index 2992b1a02d9..dc9cdcddf20 100644 --- a/internal/protocoltest/awsrestjson/api_op_JsonTimestamps_test.go +++ b/internal/protocoltest/awsrestjson/api_op_JsonTimestamps_test.go @@ -6,9 +6,10 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" @@ -20,9 +21,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -171,25 +170,8 @@ func TestClient_JsonTimestamps_awsRestjson1Serialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -213,11 +195,15 @@ func TestClient_JsonTimestamps_awsRestjson1Serialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.JsonTimestamps(context.Background(), c.Params) + result, err := client.JsonTimestamps(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/awsrestjson/api_op_JsonUnions_test.go b/internal/protocoltest/awsrestjson/api_op_JsonUnions_test.go index 0749564fb2e..2afa87ef00e 100644 --- a/internal/protocoltest/awsrestjson/api_op_JsonUnions_test.go +++ b/internal/protocoltest/awsrestjson/api_op_JsonUnions_test.go @@ -6,10 +6,11 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/aws-sdk-go-v2/internal/protocoltest/awsrestjson/types" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" @@ -21,9 +22,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -262,25 +261,8 @@ func TestClient_JsonUnions_awsRestjson1Serialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -304,11 +286,15 @@ func TestClient_JsonUnions_awsRestjson1Serialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.JsonUnions(context.Background(), c.Params) + result, err := client.JsonUnions(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/awsrestjson/api_op_MediaTypeHeader_test.go b/internal/protocoltest/awsrestjson/api_op_MediaTypeHeader_test.go index 92d60bf6365..2a66388c25c 100644 --- a/internal/protocoltest/awsrestjson/api_op_MediaTypeHeader_test.go +++ b/internal/protocoltest/awsrestjson/api_op_MediaTypeHeader_test.go @@ -6,9 +6,10 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" @@ -19,9 +20,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -58,25 +57,8 @@ func TestClient_MediaTypeHeader_awsRestjson1Serialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -100,11 +82,15 @@ func TestClient_MediaTypeHeader_awsRestjson1Serialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.MediaTypeHeader(context.Background(), c.Params) + result, err := client.MediaTypeHeader(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/awsrestjson/api_op_NoInputAndNoOutput_test.go b/internal/protocoltest/awsrestjson/api_op_NoInputAndNoOutput_test.go index d6f5edf130c..269b233516f 100644 --- a/internal/protocoltest/awsrestjson/api_op_NoInputAndNoOutput_test.go +++ b/internal/protocoltest/awsrestjson/api_op_NoInputAndNoOutput_test.go @@ -6,9 +6,10 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" smithyhttp "github.com/aws/smithy-go/transport/http" @@ -18,9 +19,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -53,25 +52,8 @@ func TestClient_NoInputAndNoOutput_awsRestjson1Serialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -95,11 +77,15 @@ func TestClient_NoInputAndNoOutput_awsRestjson1Serialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.NoInputAndNoOutput(context.Background(), c.Params) + result, err := client.NoInputAndNoOutput(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/awsrestjson/api_op_NoInputAndOutput_test.go b/internal/protocoltest/awsrestjson/api_op_NoInputAndOutput_test.go index a184f2719d8..c0a2b77b326 100644 --- a/internal/protocoltest/awsrestjson/api_op_NoInputAndOutput_test.go +++ b/internal/protocoltest/awsrestjson/api_op_NoInputAndOutput_test.go @@ -6,9 +6,10 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" smithyhttp "github.com/aws/smithy-go/transport/http" @@ -18,9 +19,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -53,25 +52,8 @@ func TestClient_NoInputAndOutput_awsRestjson1Serialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -95,11 +77,15 @@ func TestClient_NoInputAndOutput_awsRestjson1Serialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.NoInputAndOutput(context.Background(), c.Params) + result, err := client.NoInputAndOutput(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/awsrestjson/api_op_NullAndEmptyHeadersClient_test.go b/internal/protocoltest/awsrestjson/api_op_NullAndEmptyHeadersClient_test.go index 7372ad1b586..a1d6389772e 100644 --- a/internal/protocoltest/awsrestjson/api_op_NullAndEmptyHeadersClient_test.go +++ b/internal/protocoltest/awsrestjson/api_op_NullAndEmptyHeadersClient_test.go @@ -3,20 +3,17 @@ package awsrestjson import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" "io" - "io/ioutil" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -57,25 +54,8 @@ func TestClient_NullAndEmptyHeadersClient_awsRestjson1Serialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -99,11 +79,15 @@ func TestClient_NullAndEmptyHeadersClient_awsRestjson1Serialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.NullAndEmptyHeadersClient(context.Background(), c.Params) + result, err := client.NullAndEmptyHeadersClient(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/awsrestjson/api_op_OmitsNullSerializesEmptyString_test.go b/internal/protocoltest/awsrestjson/api_op_OmitsNullSerializesEmptyString_test.go index 85c6b4453b3..aa19557c435 100644 --- a/internal/protocoltest/awsrestjson/api_op_OmitsNullSerializesEmptyString_test.go +++ b/internal/protocoltest/awsrestjson/api_op_OmitsNullSerializesEmptyString_test.go @@ -3,20 +3,17 @@ package awsrestjson import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" "io" - "io/ioutil" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -64,25 +61,8 @@ func TestClient_OmitsNullSerializesEmptyString_awsRestjson1Serialize(t *testing. } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -106,11 +86,15 @@ func TestClient_OmitsNullSerializesEmptyString_awsRestjson1Serialize(t *testing. e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.OmitsNullSerializesEmptyString(context.Background(), c.Params) + result, err := client.OmitsNullSerializesEmptyString(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/awsrestjson/api_op_PostPlayerAction_test.go b/internal/protocoltest/awsrestjson/api_op_PostPlayerAction_test.go index ac1564df7c7..c9c88c46280 100644 --- a/internal/protocoltest/awsrestjson/api_op_PostPlayerAction_test.go +++ b/internal/protocoltest/awsrestjson/api_op_PostPlayerAction_test.go @@ -6,10 +6,11 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/aws-sdk-go-v2/internal/protocoltest/awsrestjson/types" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" smithyhttp "github.com/aws/smithy-go/transport/http" @@ -19,9 +20,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -63,25 +62,8 @@ func TestClient_PostPlayerAction_awsRestjson1Serialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -105,11 +87,15 @@ func TestClient_PostPlayerAction_awsRestjson1Serialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.PostPlayerAction(context.Background(), c.Params) + result, err := client.PostPlayerAction(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/awsrestjson/api_op_PostUnionWithJsonName_test.go b/internal/protocoltest/awsrestjson/api_op_PostUnionWithJsonName_test.go index cd53ad55af3..65fd46325e1 100644 --- a/internal/protocoltest/awsrestjson/api_op_PostUnionWithJsonName_test.go +++ b/internal/protocoltest/awsrestjson/api_op_PostUnionWithJsonName_test.go @@ -6,10 +6,11 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/aws-sdk-go-v2/internal/protocoltest/awsrestjson/types" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" smithyhttp "github.com/aws/smithy-go/transport/http" @@ -19,9 +20,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -103,25 +102,8 @@ func TestClient_PostUnionWithJsonName_awsRestjson1Serialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -145,11 +127,15 @@ func TestClient_PostUnionWithJsonName_awsRestjson1Serialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.PostUnionWithJsonName(context.Background(), c.Params) + result, err := client.PostUnionWithJsonName(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/awsrestjson/api_op_QueryIdempotencyTokenAutoFill_test.go b/internal/protocoltest/awsrestjson/api_op_QueryIdempotencyTokenAutoFill_test.go index 81543133a44..a9f0398b045 100644 --- a/internal/protocoltest/awsrestjson/api_op_QueryIdempotencyTokenAutoFill_test.go +++ b/internal/protocoltest/awsrestjson/api_op_QueryIdempotencyTokenAutoFill_test.go @@ -3,20 +3,17 @@ package awsrestjson import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" "io" - "io/ioutil" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -64,25 +61,8 @@ func TestClient_QueryIdempotencyTokenAutoFill_awsRestjson1Serialize(t *testing.T } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -106,11 +86,15 @@ func TestClient_QueryIdempotencyTokenAutoFill_awsRestjson1Serialize(t *testing.T e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.QueryIdempotencyTokenAutoFill(context.Background(), c.Params) + result, err := client.QueryIdempotencyTokenAutoFill(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/awsrestjson/api_op_QueryParamsAsStringListMap_test.go b/internal/protocoltest/awsrestjson/api_op_QueryParamsAsStringListMap_test.go index 5f6a18be79e..56e671ce8cf 100644 --- a/internal/protocoltest/awsrestjson/api_op_QueryParamsAsStringListMap_test.go +++ b/internal/protocoltest/awsrestjson/api_op_QueryParamsAsStringListMap_test.go @@ -3,20 +3,17 @@ package awsrestjson import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" "io" - "io/ioutil" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -60,25 +57,8 @@ func TestClient_QueryParamsAsStringListMap_awsRestjson1Serialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -102,11 +82,15 @@ func TestClient_QueryParamsAsStringListMap_awsRestjson1Serialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.QueryParamsAsStringListMap(context.Background(), c.Params) + result, err := client.QueryParamsAsStringListMap(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/awsrestjson/api_op_QueryPrecedence_test.go b/internal/protocoltest/awsrestjson/api_op_QueryPrecedence_test.go index bc162b26afa..28273d37253 100644 --- a/internal/protocoltest/awsrestjson/api_op_QueryPrecedence_test.go +++ b/internal/protocoltest/awsrestjson/api_op_QueryPrecedence_test.go @@ -3,20 +3,17 @@ package awsrestjson import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" "io" - "io/ioutil" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -57,25 +54,8 @@ func TestClient_QueryPrecedence_awsRestjson1Serialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -99,11 +79,15 @@ func TestClient_QueryPrecedence_awsRestjson1Serialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.QueryPrecedence(context.Background(), c.Params) + result, err := client.QueryPrecedence(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/awsrestjson/api_op_RecursiveShapes_test.go b/internal/protocoltest/awsrestjson/api_op_RecursiveShapes_test.go index b41fc6184f8..fa2da1ca271 100644 --- a/internal/protocoltest/awsrestjson/api_op_RecursiveShapes_test.go +++ b/internal/protocoltest/awsrestjson/api_op_RecursiveShapes_test.go @@ -6,10 +6,11 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/aws-sdk-go-v2/internal/protocoltest/awsrestjson/types" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" @@ -20,9 +21,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -84,25 +83,8 @@ func TestClient_RecursiveShapes_awsRestjson1Serialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -126,11 +108,15 @@ func TestClient_RecursiveShapes_awsRestjson1Serialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.RecursiveShapes(context.Background(), c.Params) + result, err := client.RecursiveShapes(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/awsrestjson/api_op_SimpleScalarProperties_test.go b/internal/protocoltest/awsrestjson/api_op_SimpleScalarProperties_test.go index 944068a166d..fe84a4efe4e 100644 --- a/internal/protocoltest/awsrestjson/api_op_SimpleScalarProperties_test.go +++ b/internal/protocoltest/awsrestjson/api_op_SimpleScalarProperties_test.go @@ -6,9 +6,10 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" @@ -19,9 +20,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -155,25 +154,8 @@ func TestClient_SimpleScalarProperties_awsRestjson1Serialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -197,11 +179,15 @@ func TestClient_SimpleScalarProperties_awsRestjson1Serialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.SimpleScalarProperties(context.Background(), c.Params) + result, err := client.SimpleScalarProperties(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/awsrestjson/api_op_StreamingTraitsRequireLength_test.go b/internal/protocoltest/awsrestjson/api_op_StreamingTraitsRequireLength_test.go index 9810f90068a..fe558b857f9 100644 --- a/internal/protocoltest/awsrestjson/api_op_StreamingTraitsRequireLength_test.go +++ b/internal/protocoltest/awsrestjson/api_op_StreamingTraitsRequireLength_test.go @@ -6,18 +6,16 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" smithyio "github.com/aws/smithy-go/io" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" "io" - "io/ioutil" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -76,25 +74,8 @@ func TestClient_StreamingTraitsRequireLength_awsRestjson1Serialize(t *testing.T) } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -118,11 +99,15 @@ func TestClient_StreamingTraitsRequireLength_awsRestjson1Serialize(t *testing.T) e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.StreamingTraitsRequireLength(context.Background(), c.Params) + result, err := client.StreamingTraitsRequireLength(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/awsrestjson/api_op_StreamingTraitsWithMediaType_test.go b/internal/protocoltest/awsrestjson/api_op_StreamingTraitsWithMediaType_test.go index a6c56204312..e708253e03d 100644 --- a/internal/protocoltest/awsrestjson/api_op_StreamingTraitsWithMediaType_test.go +++ b/internal/protocoltest/awsrestjson/api_op_StreamingTraitsWithMediaType_test.go @@ -6,10 +6,11 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" smithydocument "github.com/aws/smithy-go/document" smithyio "github.com/aws/smithy-go/io" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" @@ -20,9 +21,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -62,25 +61,8 @@ func TestClient_StreamingTraitsWithMediaType_awsRestjson1Serialize(t *testing.T) } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -104,11 +86,15 @@ func TestClient_StreamingTraitsWithMediaType_awsRestjson1Serialize(t *testing.T) e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.StreamingTraitsWithMediaType(context.Background(), c.Params) + result, err := client.StreamingTraitsWithMediaType(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/awsrestjson/api_op_StreamingTraits_test.go b/internal/protocoltest/awsrestjson/api_op_StreamingTraits_test.go index b7df792b993..c8fe0c5a9d0 100644 --- a/internal/protocoltest/awsrestjson/api_op_StreamingTraits_test.go +++ b/internal/protocoltest/awsrestjson/api_op_StreamingTraits_test.go @@ -6,10 +6,11 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" smithydocument "github.com/aws/smithy-go/document" smithyio "github.com/aws/smithy-go/io" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" @@ -20,9 +21,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -78,25 +77,8 @@ func TestClient_StreamingTraits_awsRestjson1Serialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -120,11 +102,15 @@ func TestClient_StreamingTraits_awsRestjson1Serialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.StreamingTraits(context.Background(), c.Params) + result, err := client.StreamingTraits(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/awsrestjson/api_op_TestBodyStructure_test.go b/internal/protocoltest/awsrestjson/api_op_TestBodyStructure_test.go index af6ddd65ec7..3be53ef7fad 100644 --- a/internal/protocoltest/awsrestjson/api_op_TestBodyStructure_test.go +++ b/internal/protocoltest/awsrestjson/api_op_TestBodyStructure_test.go @@ -3,21 +3,18 @@ package awsrestjson import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/aws-sdk-go-v2/internal/protocoltest/awsrestjson/types" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" "io" - "io/ioutil" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -79,25 +76,8 @@ func TestClient_TestBodyStructure_awsRestjson1Serialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -121,11 +101,15 @@ func TestClient_TestBodyStructure_awsRestjson1Serialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.TestBodyStructure(context.Background(), c.Params) + result, err := client.TestBodyStructure(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/awsrestjson/api_op_TestNoPayload_test.go b/internal/protocoltest/awsrestjson/api_op_TestNoPayload_test.go index 1b126cbbb4b..4b2b6f855f2 100644 --- a/internal/protocoltest/awsrestjson/api_op_TestNoPayload_test.go +++ b/internal/protocoltest/awsrestjson/api_op_TestNoPayload_test.go @@ -3,20 +3,17 @@ package awsrestjson import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" "io" - "io/ioutil" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -71,25 +68,8 @@ func TestClient_TestNoPayload_awsRestjson1Serialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -113,11 +93,15 @@ func TestClient_TestNoPayload_awsRestjson1Serialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.TestNoPayload(context.Background(), c.Params) + result, err := client.TestNoPayload(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/awsrestjson/api_op_TestPayloadBlob_test.go b/internal/protocoltest/awsrestjson/api_op_TestPayloadBlob_test.go index 647fa611141..9b9bbcef614 100644 --- a/internal/protocoltest/awsrestjson/api_op_TestPayloadBlob_test.go +++ b/internal/protocoltest/awsrestjson/api_op_TestPayloadBlob_test.go @@ -3,20 +3,17 @@ package awsrestjson import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" "io" - "io/ioutil" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -72,25 +69,8 @@ func TestClient_TestPayloadBlob_awsRestjson1Serialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -114,11 +94,15 @@ func TestClient_TestPayloadBlob_awsRestjson1Serialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.TestPayloadBlob(context.Background(), c.Params) + result, err := client.TestPayloadBlob(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/awsrestjson/api_op_TestPayloadStructure_test.go b/internal/protocoltest/awsrestjson/api_op_TestPayloadStructure_test.go index a36d201a2dd..be9d26ff35e 100644 --- a/internal/protocoltest/awsrestjson/api_op_TestPayloadStructure_test.go +++ b/internal/protocoltest/awsrestjson/api_op_TestPayloadStructure_test.go @@ -3,21 +3,18 @@ package awsrestjson import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/aws-sdk-go-v2/internal/protocoltest/awsrestjson/types" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" "io" - "io/ioutil" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -98,25 +95,8 @@ func TestClient_TestPayloadStructure_awsRestjson1Serialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -140,11 +120,15 @@ func TestClient_TestPayloadStructure_awsRestjson1Serialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.TestPayloadStructure(context.Background(), c.Params) + result, err := client.TestPayloadStructure(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/awsrestjson/api_op_TimestampFormatHeaders_test.go b/internal/protocoltest/awsrestjson/api_op_TimestampFormatHeaders_test.go index fb8da71fab6..017202586da 100644 --- a/internal/protocoltest/awsrestjson/api_op_TimestampFormatHeaders_test.go +++ b/internal/protocoltest/awsrestjson/api_op_TimestampFormatHeaders_test.go @@ -6,9 +6,10 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" @@ -20,9 +21,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -71,25 +70,8 @@ func TestClient_TimestampFormatHeaders_awsRestjson1Serialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -113,11 +95,15 @@ func TestClient_TimestampFormatHeaders_awsRestjson1Serialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.TimestampFormatHeaders(context.Background(), c.Params) + result, err := client.TimestampFormatHeaders(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/awsrestjson/api_op_UnitInputAndOutput_test.go b/internal/protocoltest/awsrestjson/api_op_UnitInputAndOutput_test.go index cf5d682bc2c..53706276020 100644 --- a/internal/protocoltest/awsrestjson/api_op_UnitInputAndOutput_test.go +++ b/internal/protocoltest/awsrestjson/api_op_UnitInputAndOutput_test.go @@ -6,9 +6,10 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" smithyhttp "github.com/aws/smithy-go/transport/http" @@ -18,9 +19,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -53,25 +52,8 @@ func TestClient_UnitInputAndOutput_awsRestjson1Serialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -95,11 +77,15 @@ func TestClient_UnitInputAndOutput_awsRestjson1Serialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.UnitInputAndOutput(context.Background(), c.Params) + result, err := client.UnitInputAndOutput(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/awsrestjson/go.sum b/internal/protocoltest/awsrestjson/go.sum index b988e58d38d..975890afbc6 100644 --- a/internal/protocoltest/awsrestjson/go.sum +++ b/internal/protocoltest/awsrestjson/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/internal/protocoltest/ec2query/api_op_EmptyInputAndEmptyOutput_test.go b/internal/protocoltest/ec2query/api_op_EmptyInputAndEmptyOutput_test.go index 71c9266f859..d6fbc23bdba 100644 --- a/internal/protocoltest/ec2query/api_op_EmptyInputAndEmptyOutput_test.go +++ b/internal/protocoltest/ec2query/api_op_EmptyInputAndEmptyOutput_test.go @@ -6,9 +6,10 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" smithyhttp "github.com/aws/smithy-go/transport/http" @@ -18,9 +19,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -56,25 +55,8 @@ func TestClient_EmptyInputAndEmptyOutput_awsEc2querySerialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -98,11 +80,15 @@ func TestClient_EmptyInputAndEmptyOutput_awsEc2querySerialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.EmptyInputAndEmptyOutput(context.Background(), c.Params) + result, err := client.EmptyInputAndEmptyOutput(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/ec2query/api_op_EndpointOperation_test.go b/internal/protocoltest/ec2query/api_op_EndpointOperation_test.go index 95da70889bd..0af8e3ba81f 100644 --- a/internal/protocoltest/ec2query/api_op_EndpointOperation_test.go +++ b/internal/protocoltest/ec2query/api_op_EndpointOperation_test.go @@ -3,19 +3,16 @@ package ec2query import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" "io" - "io/ioutil" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -62,29 +59,8 @@ func TestClient_EndpointOperation_awsEc2querySerialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - if name == "Ec2QueryEndpointTrait" { - t.Skip("disabled test aws.protocoltests.ec2#AwsEc2 aws.protocoltests.ec2#EndpointOperation") - } - - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -108,11 +84,15 @@ func TestClient_EndpointOperation_awsEc2querySerialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.EndpointOperation(context.Background(), c.Params) + result, err := client.EndpointOperation(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/ec2query/api_op_EndpointWithHostLabelOperation_test.go b/internal/protocoltest/ec2query/api_op_EndpointWithHostLabelOperation_test.go index 684b19dbf61..485df4f194c 100644 --- a/internal/protocoltest/ec2query/api_op_EndpointWithHostLabelOperation_test.go +++ b/internal/protocoltest/ec2query/api_op_EndpointWithHostLabelOperation_test.go @@ -3,20 +3,17 @@ package ec2query import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" "io" - "io/ioutil" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -67,29 +64,8 @@ func TestClient_EndpointWithHostLabelOperation_awsEc2querySerialize(t *testing.T } for name, c := range cases { t.Run(name, func(t *testing.T) { - if name == "Ec2QueryEndpointTraitWithHostLabel" { - t.Skip("disabled test aws.protocoltests.ec2#AwsEc2 aws.protocoltests.ec2#EndpointWithHostLabelOperation") - } - - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -113,11 +89,15 @@ func TestClient_EndpointWithHostLabelOperation_awsEc2querySerialize(t *testing.T e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.EndpointWithHostLabelOperation(context.Background(), c.Params) + result, err := client.EndpointWithHostLabelOperation(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/ec2query/api_op_HostWithPathOperation_test.go b/internal/protocoltest/ec2query/api_op_HostWithPathOperation_test.go index 5af692ff822..e6abde88ceb 100644 --- a/internal/protocoltest/ec2query/api_op_HostWithPathOperation_test.go +++ b/internal/protocoltest/ec2query/api_op_HostWithPathOperation_test.go @@ -3,19 +3,16 @@ package ec2query import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" "io" - "io/ioutil" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -58,25 +55,8 @@ func TestClient_HostWithPathOperation_awsEc2querySerialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -100,11 +80,15 @@ func TestClient_HostWithPathOperation_awsEc2querySerialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.HostWithPathOperation(context.Background(), c.Params) + result, err := client.HostWithPathOperation(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/ec2query/api_op_NestedStructures_test.go b/internal/protocoltest/ec2query/api_op_NestedStructures_test.go index 8bfb2442612..672e415ca26 100644 --- a/internal/protocoltest/ec2query/api_op_NestedStructures_test.go +++ b/internal/protocoltest/ec2query/api_op_NestedStructures_test.go @@ -3,21 +3,18 @@ package ec2query import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/aws-sdk-go-v2/internal/protocoltest/ec2query/types" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" "io" - "io/ioutil" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -64,25 +61,8 @@ func TestClient_NestedStructures_awsEc2querySerialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -106,11 +86,15 @@ func TestClient_NestedStructures_awsEc2querySerialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.NestedStructures(context.Background(), c.Params) + result, err := client.NestedStructures(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/ec2query/api_op_NoInputAndOutput_test.go b/internal/protocoltest/ec2query/api_op_NoInputAndOutput_test.go index 396179662f1..3be778c8eb5 100644 --- a/internal/protocoltest/ec2query/api_op_NoInputAndOutput_test.go +++ b/internal/protocoltest/ec2query/api_op_NoInputAndOutput_test.go @@ -6,9 +6,10 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" smithyhttp "github.com/aws/smithy-go/transport/http" @@ -18,9 +19,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -56,25 +55,8 @@ func TestClient_NoInputAndOutput_awsEc2querySerialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -98,11 +80,15 @@ func TestClient_NoInputAndOutput_awsEc2querySerialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.NoInputAndOutput(context.Background(), c.Params) + result, err := client.NoInputAndOutput(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/ec2query/api_op_QueryIdempotencyTokenAutoFill_test.go b/internal/protocoltest/ec2query/api_op_QueryIdempotencyTokenAutoFill_test.go index 925ac6b20f9..6fc30bb53a8 100644 --- a/internal/protocoltest/ec2query/api_op_QueryIdempotencyTokenAutoFill_test.go +++ b/internal/protocoltest/ec2query/api_op_QueryIdempotencyTokenAutoFill_test.go @@ -3,20 +3,17 @@ package ec2query import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" "io" - "io/ioutil" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -74,25 +71,8 @@ func TestClient_QueryIdempotencyTokenAutoFill_awsEc2querySerialize(t *testing.T) } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -116,11 +96,15 @@ func TestClient_QueryIdempotencyTokenAutoFill_awsEc2querySerialize(t *testing.T) e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.QueryIdempotencyTokenAutoFill(context.Background(), c.Params) + result, err := client.QueryIdempotencyTokenAutoFill(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/ec2query/api_op_QueryLists_test.go b/internal/protocoltest/ec2query/api_op_QueryLists_test.go index dfb16f873be..f2d1083f02b 100644 --- a/internal/protocoltest/ec2query/api_op_QueryLists_test.go +++ b/internal/protocoltest/ec2query/api_op_QueryLists_test.go @@ -3,21 +3,18 @@ package ec2query import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/aws-sdk-go-v2/internal/protocoltest/ec2query/types" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" "io" - "io/ioutil" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -143,25 +140,8 @@ func TestClient_QueryLists_awsEc2querySerialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -185,11 +165,15 @@ func TestClient_QueryLists_awsEc2querySerialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.QueryLists(context.Background(), c.Params) + result, err := client.QueryLists(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/ec2query/api_op_QueryTimestamps_test.go b/internal/protocoltest/ec2query/api_op_QueryTimestamps_test.go index 3a028018d3d..721282f51f1 100644 --- a/internal/protocoltest/ec2query/api_op_QueryTimestamps_test.go +++ b/internal/protocoltest/ec2query/api_op_QueryTimestamps_test.go @@ -3,21 +3,18 @@ package ec2query import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" smithytime "github.com/aws/smithy-go/time" "io" - "io/ioutil" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -60,25 +57,8 @@ func TestClient_QueryTimestamps_awsEc2querySerialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -102,11 +82,15 @@ func TestClient_QueryTimestamps_awsEc2querySerialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.QueryTimestamps(context.Background(), c.Params) + result, err := client.QueryTimestamps(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/ec2query/api_op_SimpleInputParams_test.go b/internal/protocoltest/ec2query/api_op_SimpleInputParams_test.go index da287eba55e..8fe2707d1f1 100644 --- a/internal/protocoltest/ec2query/api_op_SimpleInputParams_test.go +++ b/internal/protocoltest/ec2query/api_op_SimpleInputParams_test.go @@ -3,22 +3,19 @@ package ec2query import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/aws-sdk-go-v2/internal/protocoltest/ec2query/types" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" "io" - "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -292,25 +289,8 @@ func TestClient_SimpleInputParams_awsEc2querySerialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -334,11 +314,15 @@ func TestClient_SimpleInputParams_awsEc2querySerialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.SimpleInputParams(context.Background(), c.Params) + result, err := client.SimpleInputParams(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/ec2query/go.sum b/internal/protocoltest/ec2query/go.sum index b988e58d38d..975890afbc6 100644 --- a/internal/protocoltest/ec2query/go.sum +++ b/internal/protocoltest/ec2query/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/internal/protocoltest/jsonrpc/api_op_EmptyOperation_test.go b/internal/protocoltest/jsonrpc/api_op_EmptyOperation_test.go index b5ce4eddead..022b2cc92f7 100644 --- a/internal/protocoltest/jsonrpc/api_op_EmptyOperation_test.go +++ b/internal/protocoltest/jsonrpc/api_op_EmptyOperation_test.go @@ -6,9 +6,10 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" smithytesting "github.com/aws/smithy-go/testing" smithyhttp "github.com/aws/smithy-go/transport/http" "github.com/google/go-cmp/cmp" @@ -17,9 +18,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -81,25 +80,8 @@ func TestClient_EmptyOperation_awsAwsjson11Serialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -123,10 +105,14 @@ func TestClient_EmptyOperation_awsAwsjson11Serialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), Region: "us-west-2", }) - result, err := client.EmptyOperation(context.Background(), c.Params) + result, err := client.EmptyOperation(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/jsonrpc/api_op_EndpointOperation_test.go b/internal/protocoltest/jsonrpc/api_op_EndpointOperation_test.go index bd3a08e3dc3..6d7b878578e 100644 --- a/internal/protocoltest/jsonrpc/api_op_EndpointOperation_test.go +++ b/internal/protocoltest/jsonrpc/api_op_EndpointOperation_test.go @@ -3,18 +3,15 @@ package jsonrpc import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" smithytesting "github.com/aws/smithy-go/testing" "io" - "io/ioutil" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -61,29 +58,8 @@ func TestClient_EndpointOperation_awsAwsjson11Serialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - if name == "AwsJson11EndpointTrait" { - t.Skip("disabled test aws.protocoltests.json#JsonProtocol aws.protocoltests.json#EndpointOperation") - } - - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -107,10 +83,14 @@ func TestClient_EndpointOperation_awsAwsjson11Serialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), Region: "us-west-2", }) - result, err := client.EndpointOperation(context.Background(), c.Params) + result, err := client.EndpointOperation(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/jsonrpc/api_op_EndpointWithHostLabelOperation_test.go b/internal/protocoltest/jsonrpc/api_op_EndpointWithHostLabelOperation_test.go index afa13c934a5..f5a69c2c6ed 100644 --- a/internal/protocoltest/jsonrpc/api_op_EndpointWithHostLabelOperation_test.go +++ b/internal/protocoltest/jsonrpc/api_op_EndpointWithHostLabelOperation_test.go @@ -3,19 +3,16 @@ package jsonrpc import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithytesting "github.com/aws/smithy-go/testing" "io" - "io/ioutil" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -67,29 +64,8 @@ func TestClient_EndpointWithHostLabelOperation_awsAwsjson11Serialize(t *testing. } for name, c := range cases { t.Run(name, func(t *testing.T) { - if name == "AwsJson11EndpointTraitWithHostLabel" { - t.Skip("disabled test aws.protocoltests.json#JsonProtocol aws.protocoltests.json#EndpointWithHostLabelOperation") - } - - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -113,10 +89,14 @@ func TestClient_EndpointWithHostLabelOperation_awsAwsjson11Serialize(t *testing. e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), Region: "us-west-2", }) - result, err := client.EndpointWithHostLabelOperation(context.Background(), c.Params) + result, err := client.EndpointWithHostLabelOperation(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/jsonrpc/api_op_HostWithPathOperation_test.go b/internal/protocoltest/jsonrpc/api_op_HostWithPathOperation_test.go index f1f6851ca53..c9c3b2cfbfb 100644 --- a/internal/protocoltest/jsonrpc/api_op_HostWithPathOperation_test.go +++ b/internal/protocoltest/jsonrpc/api_op_HostWithPathOperation_test.go @@ -3,18 +3,15 @@ package jsonrpc import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" smithytesting "github.com/aws/smithy-go/testing" "io" - "io/ioutil" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -61,25 +58,8 @@ func TestClient_HostWithPathOperation_awsAwsjson11Serialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -103,10 +83,14 @@ func TestClient_HostWithPathOperation_awsAwsjson11Serialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), Region: "us-west-2", }) - result, err := client.HostWithPathOperation(context.Background(), c.Params) + result, err := client.HostWithPathOperation(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/jsonrpc/api_op_JsonEnums_test.go b/internal/protocoltest/jsonrpc/api_op_JsonEnums_test.go index 03d3fe8bc64..a9aa1c32259 100644 --- a/internal/protocoltest/jsonrpc/api_op_JsonEnums_test.go +++ b/internal/protocoltest/jsonrpc/api_op_JsonEnums_test.go @@ -6,10 +6,11 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/aws-sdk-go-v2/internal/protocoltest/jsonrpc/types" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" smithytesting "github.com/aws/smithy-go/testing" smithyhttp "github.com/aws/smithy-go/transport/http" "github.com/google/go-cmp/cmp" @@ -18,9 +19,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -89,25 +88,8 @@ func TestClient_JsonEnums_awsAwsjson11Serialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -131,10 +113,14 @@ func TestClient_JsonEnums_awsAwsjson11Serialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), Region: "us-west-2", }) - result, err := client.JsonEnums(context.Background(), c.Params) + result, err := client.JsonEnums(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/jsonrpc/api_op_JsonUnions_test.go b/internal/protocoltest/jsonrpc/api_op_JsonUnions_test.go index b37f730efb2..5dc92d22b27 100644 --- a/internal/protocoltest/jsonrpc/api_op_JsonUnions_test.go +++ b/internal/protocoltest/jsonrpc/api_op_JsonUnions_test.go @@ -6,10 +6,11 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/aws-sdk-go-v2/internal/protocoltest/jsonrpc/types" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithytesting "github.com/aws/smithy-go/testing" smithytime "github.com/aws/smithy-go/time" @@ -20,9 +21,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -246,25 +245,8 @@ func TestClient_JsonUnions_awsAwsjson11Serialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -288,10 +270,14 @@ func TestClient_JsonUnions_awsAwsjson11Serialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), Region: "us-west-2", }) - result, err := client.JsonUnions(context.Background(), c.Params) + result, err := client.JsonUnions(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/jsonrpc/api_op_KitchenSinkOperation_test.go b/internal/protocoltest/jsonrpc/api_op_KitchenSinkOperation_test.go index c97468fb3b9..2dad3286209 100644 --- a/internal/protocoltest/jsonrpc/api_op_KitchenSinkOperation_test.go +++ b/internal/protocoltest/jsonrpc/api_op_KitchenSinkOperation_test.go @@ -6,10 +6,11 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/aws-sdk-go-v2/internal/protocoltest/jsonrpc/types" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithytesting "github.com/aws/smithy-go/testing" smithytime "github.com/aws/smithy-go/time" @@ -20,9 +21,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -693,25 +692,8 @@ func TestClient_KitchenSinkOperation_awsAwsjson11Serialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -735,10 +717,14 @@ func TestClient_KitchenSinkOperation_awsAwsjson11Serialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), Region: "us-west-2", }) - result, err := client.KitchenSinkOperation(context.Background(), c.Params) + result, err := client.KitchenSinkOperation(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/jsonrpc/api_op_NullOperation_test.go b/internal/protocoltest/jsonrpc/api_op_NullOperation_test.go index 6efb7e01c83..6b28ae2d94a 100644 --- a/internal/protocoltest/jsonrpc/api_op_NullOperation_test.go +++ b/internal/protocoltest/jsonrpc/api_op_NullOperation_test.go @@ -6,9 +6,10 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" smithytesting "github.com/aws/smithy-go/testing" smithyhttp "github.com/aws/smithy-go/transport/http" "github.com/google/go-cmp/cmp" @@ -17,9 +18,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -104,25 +103,8 @@ func TestClient_NullOperation_awsAwsjson11Serialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -146,10 +128,14 @@ func TestClient_NullOperation_awsAwsjson11Serialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), Region: "us-west-2", }) - result, err := client.NullOperation(context.Background(), c.Params) + result, err := client.NullOperation(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/jsonrpc/api_op_OperationWithOptionalInputOutput_test.go b/internal/protocoltest/jsonrpc/api_op_OperationWithOptionalInputOutput_test.go index a18b85001df..7a1a7d79a03 100644 --- a/internal/protocoltest/jsonrpc/api_op_OperationWithOptionalInputOutput_test.go +++ b/internal/protocoltest/jsonrpc/api_op_OperationWithOptionalInputOutput_test.go @@ -3,19 +3,16 @@ package jsonrpc import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithytesting "github.com/aws/smithy-go/testing" "io" - "io/ioutil" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -69,25 +66,8 @@ func TestClient_OperationWithOptionalInputOutput_awsAwsjson11Serialize(t *testin } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -111,10 +91,14 @@ func TestClient_OperationWithOptionalInputOutput_awsAwsjson11Serialize(t *testin e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), Region: "us-west-2", }) - result, err := client.OperationWithOptionalInputOutput(context.Background(), c.Params) + result, err := client.OperationWithOptionalInputOutput(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/jsonrpc/api_op_PutAndGetInlineDocuments_test.go b/internal/protocoltest/jsonrpc/api_op_PutAndGetInlineDocuments_test.go index 62e31c757e2..d6893a6ce1e 100644 --- a/internal/protocoltest/jsonrpc/api_op_PutAndGetInlineDocuments_test.go +++ b/internal/protocoltest/jsonrpc/api_op_PutAndGetInlineDocuments_test.go @@ -6,10 +6,11 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/aws-sdk-go-v2/internal/protocoltest/jsonrpc/document" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" smithytesting "github.com/aws/smithy-go/testing" smithyhttp "github.com/aws/smithy-go/transport/http" "github.com/google/go-cmp/cmp" @@ -18,9 +19,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -66,25 +65,8 @@ func TestClient_PutAndGetInlineDocuments_awsAwsjson11Serialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -108,10 +90,14 @@ func TestClient_PutAndGetInlineDocuments_awsAwsjson11Serialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), Region: "us-west-2", }) - result, err := client.PutAndGetInlineDocuments(context.Background(), c.Params) + result, err := client.PutAndGetInlineDocuments(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/jsonrpc/api_op_SimpleScalarProperties_test.go b/internal/protocoltest/jsonrpc/api_op_SimpleScalarProperties_test.go index 13ac24ee7a9..5075f574d8f 100644 --- a/internal/protocoltest/jsonrpc/api_op_SimpleScalarProperties_test.go +++ b/internal/protocoltest/jsonrpc/api_op_SimpleScalarProperties_test.go @@ -6,9 +6,10 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithytesting "github.com/aws/smithy-go/testing" smithyhttp "github.com/aws/smithy-go/transport/http" @@ -18,9 +19,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -105,25 +104,8 @@ func TestClient_SimpleScalarProperties_awsAwsjson11Serialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -147,10 +129,14 @@ func TestClient_SimpleScalarProperties_awsAwsjson11Serialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), Region: "us-west-2", }) - result, err := client.SimpleScalarProperties(context.Background(), c.Params) + result, err := client.SimpleScalarProperties(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/jsonrpc/go.sum b/internal/protocoltest/jsonrpc/go.sum index b988e58d38d..975890afbc6 100644 --- a/internal/protocoltest/jsonrpc/go.sum +++ b/internal/protocoltest/jsonrpc/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/internal/protocoltest/jsonrpc10/api_op_EmptyInputAndEmptyOutput_test.go b/internal/protocoltest/jsonrpc10/api_op_EmptyInputAndEmptyOutput_test.go index e567970aeb4..764894fabd9 100644 --- a/internal/protocoltest/jsonrpc10/api_op_EmptyInputAndEmptyOutput_test.go +++ b/internal/protocoltest/jsonrpc10/api_op_EmptyInputAndEmptyOutput_test.go @@ -6,9 +6,10 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" smithytesting "github.com/aws/smithy-go/testing" smithyhttp "github.com/aws/smithy-go/transport/http" "github.com/google/go-cmp/cmp" @@ -17,9 +18,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -56,25 +55,8 @@ func TestClient_EmptyInputAndEmptyOutput_awsAwsjson10Serialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -98,10 +80,14 @@ func TestClient_EmptyInputAndEmptyOutput_awsAwsjson10Serialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), Region: "us-west-2", }) - result, err := client.EmptyInputAndEmptyOutput(context.Background(), c.Params) + result, err := client.EmptyInputAndEmptyOutput(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/jsonrpc10/api_op_EndpointOperation_test.go b/internal/protocoltest/jsonrpc10/api_op_EndpointOperation_test.go index 6567bb75cb2..a55faef03d1 100644 --- a/internal/protocoltest/jsonrpc10/api_op_EndpointOperation_test.go +++ b/internal/protocoltest/jsonrpc10/api_op_EndpointOperation_test.go @@ -3,18 +3,15 @@ package jsonrpc10 import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" smithytesting "github.com/aws/smithy-go/testing" "io" - "io/ioutil" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -57,29 +54,8 @@ func TestClient_EndpointOperation_awsAwsjson10Serialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - if name == "AwsJson10EndpointTrait" { - t.Skip("disabled test aws.protocoltests.json10#JsonRpc10 aws.protocoltests.json10#EndpointOperation") - } - - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -103,10 +79,14 @@ func TestClient_EndpointOperation_awsAwsjson10Serialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), Region: "us-west-2", }) - result, err := client.EndpointOperation(context.Background(), c.Params) + result, err := client.EndpointOperation(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/jsonrpc10/api_op_EndpointWithHostLabelOperation_test.go b/internal/protocoltest/jsonrpc10/api_op_EndpointWithHostLabelOperation_test.go index 75a838b827b..641fa8d479f 100644 --- a/internal/protocoltest/jsonrpc10/api_op_EndpointWithHostLabelOperation_test.go +++ b/internal/protocoltest/jsonrpc10/api_op_EndpointWithHostLabelOperation_test.go @@ -3,19 +3,16 @@ package jsonrpc10 import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithytesting "github.com/aws/smithy-go/testing" "io" - "io/ioutil" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -63,29 +60,8 @@ func TestClient_EndpointWithHostLabelOperation_awsAwsjson10Serialize(t *testing. } for name, c := range cases { t.Run(name, func(t *testing.T) { - if name == "AwsJson10EndpointTraitWithHostLabel" { - t.Skip("disabled test aws.protocoltests.json10#JsonRpc10 aws.protocoltests.json10#EndpointWithHostLabelOperation") - } - - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -109,10 +85,14 @@ func TestClient_EndpointWithHostLabelOperation_awsAwsjson10Serialize(t *testing. e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), Region: "us-west-2", }) - result, err := client.EndpointWithHostLabelOperation(context.Background(), c.Params) + result, err := client.EndpointWithHostLabelOperation(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/jsonrpc10/api_op_HostWithPathOperation_test.go b/internal/protocoltest/jsonrpc10/api_op_HostWithPathOperation_test.go index dd13261dc88..59ef65206c3 100644 --- a/internal/protocoltest/jsonrpc10/api_op_HostWithPathOperation_test.go +++ b/internal/protocoltest/jsonrpc10/api_op_HostWithPathOperation_test.go @@ -3,18 +3,15 @@ package jsonrpc10 import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" smithytesting "github.com/aws/smithy-go/testing" "io" - "io/ioutil" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -57,25 +54,8 @@ func TestClient_HostWithPathOperation_awsAwsjson10Serialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -99,10 +79,14 @@ func TestClient_HostWithPathOperation_awsAwsjson10Serialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), Region: "us-west-2", }) - result, err := client.HostWithPathOperation(context.Background(), c.Params) + result, err := client.HostWithPathOperation(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/jsonrpc10/api_op_JsonUnions_test.go b/internal/protocoltest/jsonrpc10/api_op_JsonUnions_test.go index 9d7d9db62d0..2dad560b404 100644 --- a/internal/protocoltest/jsonrpc10/api_op_JsonUnions_test.go +++ b/internal/protocoltest/jsonrpc10/api_op_JsonUnions_test.go @@ -6,10 +6,11 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/aws-sdk-go-v2/internal/protocoltest/jsonrpc10/types" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithytesting "github.com/aws/smithy-go/testing" smithytime "github.com/aws/smithy-go/time" @@ -20,9 +21,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -267,25 +266,8 @@ func TestClient_JsonUnions_awsAwsjson10Serialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -309,10 +291,14 @@ func TestClient_JsonUnions_awsAwsjson10Serialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), Region: "us-west-2", }) - result, err := client.JsonUnions(context.Background(), c.Params) + result, err := client.JsonUnions(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/jsonrpc10/api_op_NoInputAndNoOutput_test.go b/internal/protocoltest/jsonrpc10/api_op_NoInputAndNoOutput_test.go index 27e293d825c..161a3cfdea4 100644 --- a/internal/protocoltest/jsonrpc10/api_op_NoInputAndNoOutput_test.go +++ b/internal/protocoltest/jsonrpc10/api_op_NoInputAndNoOutput_test.go @@ -6,9 +6,10 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" smithytesting "github.com/aws/smithy-go/testing" smithyhttp "github.com/aws/smithy-go/transport/http" "github.com/google/go-cmp/cmp" @@ -17,9 +18,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -59,25 +58,8 @@ func TestClient_NoInputAndNoOutput_awsAwsjson10Serialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -101,10 +83,14 @@ func TestClient_NoInputAndNoOutput_awsAwsjson10Serialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), Region: "us-west-2", }) - result, err := client.NoInputAndNoOutput(context.Background(), c.Params) + result, err := client.NoInputAndNoOutput(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/jsonrpc10/api_op_NoInputAndOutput_test.go b/internal/protocoltest/jsonrpc10/api_op_NoInputAndOutput_test.go index 0f616a5b32f..2e6f69642b1 100644 --- a/internal/protocoltest/jsonrpc10/api_op_NoInputAndOutput_test.go +++ b/internal/protocoltest/jsonrpc10/api_op_NoInputAndOutput_test.go @@ -6,9 +6,10 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" smithytesting "github.com/aws/smithy-go/testing" smithyhttp "github.com/aws/smithy-go/transport/http" "github.com/google/go-cmp/cmp" @@ -17,9 +18,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -56,25 +55,8 @@ func TestClient_NoInputAndOutput_awsAwsjson10Serialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -98,10 +80,14 @@ func TestClient_NoInputAndOutput_awsAwsjson10Serialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), Region: "us-west-2", }) - result, err := client.NoInputAndOutput(context.Background(), c.Params) + result, err := client.NoInputAndOutput(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/jsonrpc10/api_op_SimpleScalarProperties_test.go b/internal/protocoltest/jsonrpc10/api_op_SimpleScalarProperties_test.go index ae4f80174f9..53b24c90b92 100644 --- a/internal/protocoltest/jsonrpc10/api_op_SimpleScalarProperties_test.go +++ b/internal/protocoltest/jsonrpc10/api_op_SimpleScalarProperties_test.go @@ -6,9 +6,10 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithytesting "github.com/aws/smithy-go/testing" smithyhttp "github.com/aws/smithy-go/transport/http" @@ -18,9 +19,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -105,25 +104,8 @@ func TestClient_SimpleScalarProperties_awsAwsjson10Serialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -147,10 +129,14 @@ func TestClient_SimpleScalarProperties_awsAwsjson10Serialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), Region: "us-west-2", }) - result, err := client.SimpleScalarProperties(context.Background(), c.Params) + result, err := client.SimpleScalarProperties(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/jsonrpc10/go.sum b/internal/protocoltest/jsonrpc10/go.sum index b988e58d38d..975890afbc6 100644 --- a/internal/protocoltest/jsonrpc10/go.sum +++ b/internal/protocoltest/jsonrpc10/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/internal/protocoltest/mockHttpClient.go b/internal/protocoltest/mockHttpClient.go new file mode 100644 index 00000000000..ee6f2206d92 --- /dev/null +++ b/internal/protocoltest/mockHttpClient.go @@ -0,0 +1,26 @@ +package protocoltest + +import ( + "io/ioutil" + "net/http" + "strings" +) + +// HTTPClient is a mock http client used by protocol test cases to +// respond success response back +type HTTPClient struct{} + +// Do returns a mock success response to caller +func (*HTTPClient) Do(request *http.Request) (*http.Response, error) { + return &http.Response{ + StatusCode: 200, + Header: request.Header, + Body: ioutil.NopCloser(strings.NewReader("")), + Request: request, + }, nil +} + +// NewClient returns pointer of a new HTTPClient for protocol test client +func NewClient() *HTTPClient { + return &HTTPClient{} +} diff --git a/internal/protocoltest/query/api_op_EmptyInputAndEmptyOutput_test.go b/internal/protocoltest/query/api_op_EmptyInputAndEmptyOutput_test.go index 10c5d3012b2..2ebf71dd559 100644 --- a/internal/protocoltest/query/api_op_EmptyInputAndEmptyOutput_test.go +++ b/internal/protocoltest/query/api_op_EmptyInputAndEmptyOutput_test.go @@ -6,9 +6,10 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" smithyhttp "github.com/aws/smithy-go/transport/http" @@ -18,9 +19,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -56,25 +55,8 @@ func TestClient_EmptyInputAndEmptyOutput_awsAwsquerySerialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -98,11 +80,15 @@ func TestClient_EmptyInputAndEmptyOutput_awsAwsquerySerialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.EmptyInputAndEmptyOutput(context.Background(), c.Params) + result, err := client.EmptyInputAndEmptyOutput(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/query/api_op_EndpointOperation_test.go b/internal/protocoltest/query/api_op_EndpointOperation_test.go index e0e363144d0..7c00b4c3d8e 100644 --- a/internal/protocoltest/query/api_op_EndpointOperation_test.go +++ b/internal/protocoltest/query/api_op_EndpointOperation_test.go @@ -3,19 +3,16 @@ package query import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" "io" - "io/ioutil" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -62,29 +59,8 @@ func TestClient_EndpointOperation_awsAwsquerySerialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - if name == "AwsQueryEndpointTrait" { - t.Skip("disabled test aws.protocoltests.query#AwsQuery aws.protocoltests.query#EndpointOperation") - } - - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -108,11 +84,15 @@ func TestClient_EndpointOperation_awsAwsquerySerialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.EndpointOperation(context.Background(), c.Params) + result, err := client.EndpointOperation(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/query/api_op_EndpointWithHostLabelOperation_test.go b/internal/protocoltest/query/api_op_EndpointWithHostLabelOperation_test.go index 20a5a3acbfe..af5df5c4f6c 100644 --- a/internal/protocoltest/query/api_op_EndpointWithHostLabelOperation_test.go +++ b/internal/protocoltest/query/api_op_EndpointWithHostLabelOperation_test.go @@ -3,20 +3,17 @@ package query import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" "io" - "io/ioutil" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -67,29 +64,8 @@ func TestClient_EndpointWithHostLabelOperation_awsAwsquerySerialize(t *testing.T } for name, c := range cases { t.Run(name, func(t *testing.T) { - if name == "AwsQueryEndpointTraitWithHostLabel" { - t.Skip("disabled test aws.protocoltests.query#AwsQuery aws.protocoltests.query#EndpointWithHostLabelOperation") - } - - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -113,11 +89,15 @@ func TestClient_EndpointWithHostLabelOperation_awsAwsquerySerialize(t *testing.T e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.EndpointWithHostLabelOperation(context.Background(), c.Params) + result, err := client.EndpointWithHostLabelOperation(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/query/api_op_HostWithPathOperation_test.go b/internal/protocoltest/query/api_op_HostWithPathOperation_test.go index 70a7b61006e..1871ef37afc 100644 --- a/internal/protocoltest/query/api_op_HostWithPathOperation_test.go +++ b/internal/protocoltest/query/api_op_HostWithPathOperation_test.go @@ -3,19 +3,16 @@ package query import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" "io" - "io/ioutil" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -58,25 +55,8 @@ func TestClient_HostWithPathOperation_awsAwsquerySerialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -100,11 +80,15 @@ func TestClient_HostWithPathOperation_awsAwsquerySerialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.HostWithPathOperation(context.Background(), c.Params) + result, err := client.HostWithPathOperation(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/query/api_op_NestedStructures_test.go b/internal/protocoltest/query/api_op_NestedStructures_test.go index 7ac7d6e4b1e..acbd205cb60 100644 --- a/internal/protocoltest/query/api_op_NestedStructures_test.go +++ b/internal/protocoltest/query/api_op_NestedStructures_test.go @@ -3,21 +3,18 @@ package query import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/aws-sdk-go-v2/internal/protocoltest/query/types" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" "io" - "io/ioutil" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -64,25 +61,8 @@ func TestClient_NestedStructures_awsAwsquerySerialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -106,11 +86,15 @@ func TestClient_NestedStructures_awsAwsquerySerialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.NestedStructures(context.Background(), c.Params) + result, err := client.NestedStructures(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/query/api_op_NoInputAndNoOutput_test.go b/internal/protocoltest/query/api_op_NoInputAndNoOutput_test.go index 0ebe7c128cd..fa72d620e7c 100644 --- a/internal/protocoltest/query/api_op_NoInputAndNoOutput_test.go +++ b/internal/protocoltest/query/api_op_NoInputAndNoOutput_test.go @@ -6,9 +6,10 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" smithyhttp "github.com/aws/smithy-go/transport/http" @@ -18,9 +19,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -56,25 +55,8 @@ func TestClient_NoInputAndNoOutput_awsAwsquerySerialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -98,11 +80,15 @@ func TestClient_NoInputAndNoOutput_awsAwsquerySerialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.NoInputAndNoOutput(context.Background(), c.Params) + result, err := client.NoInputAndNoOutput(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/query/api_op_NoInputAndOutput_test.go b/internal/protocoltest/query/api_op_NoInputAndOutput_test.go index a325e49565f..6934eeae98a 100644 --- a/internal/protocoltest/query/api_op_NoInputAndOutput_test.go +++ b/internal/protocoltest/query/api_op_NoInputAndOutput_test.go @@ -6,9 +6,10 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" smithyhttp "github.com/aws/smithy-go/transport/http" @@ -18,9 +19,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -56,25 +55,8 @@ func TestClient_NoInputAndOutput_awsAwsquerySerialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -98,11 +80,15 @@ func TestClient_NoInputAndOutput_awsAwsquerySerialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.NoInputAndOutput(context.Background(), c.Params) + result, err := client.NoInputAndOutput(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/query/api_op_QueryIdempotencyTokenAutoFill_test.go b/internal/protocoltest/query/api_op_QueryIdempotencyTokenAutoFill_test.go index debe602dece..5ba9bb01073 100644 --- a/internal/protocoltest/query/api_op_QueryIdempotencyTokenAutoFill_test.go +++ b/internal/protocoltest/query/api_op_QueryIdempotencyTokenAutoFill_test.go @@ -3,20 +3,17 @@ package query import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" "io" - "io/ioutil" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -74,25 +71,8 @@ func TestClient_QueryIdempotencyTokenAutoFill_awsAwsquerySerialize(t *testing.T) } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -116,11 +96,15 @@ func TestClient_QueryIdempotencyTokenAutoFill_awsAwsquerySerialize(t *testing.T) e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.QueryIdempotencyTokenAutoFill(context.Background(), c.Params) + result, err := client.QueryIdempotencyTokenAutoFill(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/query/api_op_QueryLists_test.go b/internal/protocoltest/query/api_op_QueryLists_test.go index a7523fb2dff..bbab902cfcf 100644 --- a/internal/protocoltest/query/api_op_QueryLists_test.go +++ b/internal/protocoltest/query/api_op_QueryLists_test.go @@ -3,21 +3,18 @@ package query import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/aws-sdk-go-v2/internal/protocoltest/query/types" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" "io" - "io/ioutil" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -162,25 +159,8 @@ func TestClient_QueryLists_awsAwsquerySerialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -204,11 +184,15 @@ func TestClient_QueryLists_awsAwsquerySerialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.QueryLists(context.Background(), c.Params) + result, err := client.QueryLists(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/query/api_op_QueryMaps_test.go b/internal/protocoltest/query/api_op_QueryMaps_test.go index e4ab0121eeb..b9b1925cb48 100644 --- a/internal/protocoltest/query/api_op_QueryMaps_test.go +++ b/internal/protocoltest/query/api_op_QueryMaps_test.go @@ -3,21 +3,18 @@ package query import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/aws-sdk-go-v2/internal/protocoltest/query/types" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" "io" - "io/ioutil" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -218,25 +215,8 @@ func TestClient_QueryMaps_awsAwsquerySerialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -260,11 +240,15 @@ func TestClient_QueryMaps_awsAwsquerySerialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.QueryMaps(context.Background(), c.Params) + result, err := client.QueryMaps(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/query/api_op_QueryTimestamps_test.go b/internal/protocoltest/query/api_op_QueryTimestamps_test.go index 1271b92f433..34257ae9fac 100644 --- a/internal/protocoltest/query/api_op_QueryTimestamps_test.go +++ b/internal/protocoltest/query/api_op_QueryTimestamps_test.go @@ -3,21 +3,18 @@ package query import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" smithytime "github.com/aws/smithy-go/time" "io" - "io/ioutil" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -60,25 +57,8 @@ func TestClient_QueryTimestamps_awsAwsquerySerialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -102,11 +82,15 @@ func TestClient_QueryTimestamps_awsAwsquerySerialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.QueryTimestamps(context.Background(), c.Params) + result, err := client.QueryTimestamps(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/query/api_op_SimpleInputParams_test.go b/internal/protocoltest/query/api_op_SimpleInputParams_test.go index 71d0ab2f75e..3c1d79e7205 100644 --- a/internal/protocoltest/query/api_op_SimpleInputParams_test.go +++ b/internal/protocoltest/query/api_op_SimpleInputParams_test.go @@ -3,22 +3,19 @@ package query import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/aws-sdk-go-v2/internal/protocoltest/query/types" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" "io" - "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -254,25 +251,8 @@ func TestClient_SimpleInputParams_awsAwsquerySerialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -296,11 +276,15 @@ func TestClient_SimpleInputParams_awsAwsquerySerialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.SimpleInputParams(context.Background(), c.Params) + result, err := client.SimpleInputParams(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/query/go.sum b/internal/protocoltest/query/go.sum index b988e58d38d..975890afbc6 100644 --- a/internal/protocoltest/query/go.sum +++ b/internal/protocoltest/query/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/internal/protocoltest/restxml/api_op_AllQueryStringTypes_test.go b/internal/protocoltest/restxml/api_op_AllQueryStringTypes_test.go index 02aa082c197..ebbf010cebf 100644 --- a/internal/protocoltest/restxml/api_op_AllQueryStringTypes_test.go +++ b/internal/protocoltest/restxml/api_op_AllQueryStringTypes_test.go @@ -3,23 +3,20 @@ package restxml import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/aws-sdk-go-v2/internal/protocoltest/restxml/types" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" smithytime "github.com/aws/smithy-go/time" "io" - "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" "time" ) @@ -212,25 +209,8 @@ func TestClient_AllQueryStringTypes_awsRestxmlSerialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -254,11 +234,15 @@ func TestClient_AllQueryStringTypes_awsRestxmlSerialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.AllQueryStringTypes(context.Background(), c.Params) + result, err := client.AllQueryStringTypes(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/restxml/api_op_BodyWithXmlName_test.go b/internal/protocoltest/restxml/api_op_BodyWithXmlName_test.go index 8793b232767..df2f965a88f 100644 --- a/internal/protocoltest/restxml/api_op_BodyWithXmlName_test.go +++ b/internal/protocoltest/restxml/api_op_BodyWithXmlName_test.go @@ -6,10 +6,11 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/aws-sdk-go-v2/internal/protocoltest/restxml/types" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" @@ -20,9 +21,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -65,25 +64,8 @@ func TestClient_BodyWithXmlName_awsRestxmlSerialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -107,11 +89,15 @@ func TestClient_BodyWithXmlName_awsRestxmlSerialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.BodyWithXmlName(context.Background(), c.Params) + result, err := client.BodyWithXmlName(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/restxml/api_op_ConstantAndVariableQueryString_test.go b/internal/protocoltest/restxml/api_op_ConstantAndVariableQueryString_test.go index 2ff8ae7518b..5a9887f627f 100644 --- a/internal/protocoltest/restxml/api_op_ConstantAndVariableQueryString_test.go +++ b/internal/protocoltest/restxml/api_op_ConstantAndVariableQueryString_test.go @@ -3,20 +3,17 @@ package restxml import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" "io" - "io/ioutil" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -73,25 +70,8 @@ func TestClient_ConstantAndVariableQueryString_awsRestxmlSerialize(t *testing.T) } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -115,11 +95,15 @@ func TestClient_ConstantAndVariableQueryString_awsRestxmlSerialize(t *testing.T) e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.ConstantAndVariableQueryString(context.Background(), c.Params) + result, err := client.ConstantAndVariableQueryString(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/restxml/api_op_ConstantQueryString_test.go b/internal/protocoltest/restxml/api_op_ConstantQueryString_test.go index f83f513a480..48d276117d5 100644 --- a/internal/protocoltest/restxml/api_op_ConstantQueryString_test.go +++ b/internal/protocoltest/restxml/api_op_ConstantQueryString_test.go @@ -3,20 +3,17 @@ package restxml import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" "io" - "io/ioutil" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -53,25 +50,8 @@ func TestClient_ConstantQueryString_awsRestxmlSerialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -95,11 +75,15 @@ func TestClient_ConstantQueryString_awsRestxmlSerialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.ConstantQueryString(context.Background(), c.Params) + result, err := client.ConstantQueryString(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/restxml/api_op_EmptyInputAndEmptyOutput_test.go b/internal/protocoltest/restxml/api_op_EmptyInputAndEmptyOutput_test.go index a9eaa16f4d5..1cedf0b29cb 100644 --- a/internal/protocoltest/restxml/api_op_EmptyInputAndEmptyOutput_test.go +++ b/internal/protocoltest/restxml/api_op_EmptyInputAndEmptyOutput_test.go @@ -6,9 +6,10 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" smithyhttp "github.com/aws/smithy-go/transport/http" @@ -18,9 +19,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -52,25 +51,8 @@ func TestClient_EmptyInputAndEmptyOutput_awsRestxmlSerialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -94,11 +76,15 @@ func TestClient_EmptyInputAndEmptyOutput_awsRestxmlSerialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.EmptyInputAndEmptyOutput(context.Background(), c.Params) + result, err := client.EmptyInputAndEmptyOutput(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/restxml/api_op_EndpointOperation_test.go b/internal/protocoltest/restxml/api_op_EndpointOperation_test.go index 525bc930408..e47b7dabb03 100644 --- a/internal/protocoltest/restxml/api_op_EndpointOperation_test.go +++ b/internal/protocoltest/restxml/api_op_EndpointOperation_test.go @@ -3,19 +3,16 @@ package restxml import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" "io" - "io/ioutil" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -58,29 +55,8 @@ func TestClient_EndpointOperation_awsRestxmlSerialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - if name == "RestXmlEndpointTrait" { - t.Skip("disabled test aws.protocoltests.restxml#RestXml aws.protocoltests.restxml#EndpointOperation") - } - - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -104,11 +80,15 @@ func TestClient_EndpointOperation_awsRestxmlSerialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.EndpointOperation(context.Background(), c.Params) + result, err := client.EndpointOperation(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/restxml/api_op_EndpointWithHostLabelHeaderOperation_test.go b/internal/protocoltest/restxml/api_op_EndpointWithHostLabelHeaderOperation_test.go index 36288078b01..1e4821bcedf 100644 --- a/internal/protocoltest/restxml/api_op_EndpointWithHostLabelHeaderOperation_test.go +++ b/internal/protocoltest/restxml/api_op_EndpointWithHostLabelHeaderOperation_test.go @@ -3,20 +3,17 @@ package restxml import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" "io" - "io/ioutil" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -68,29 +65,8 @@ func TestClient_EndpointWithHostLabelHeaderOperation_awsRestxmlSerialize(t *test } for name, c := range cases { t.Run(name, func(t *testing.T) { - if name == "RestXmlEndpointTraitWithHostLabelAndHttpBinding" { - t.Skip("disabled test aws.protocoltests.restxml#RestXml aws.protocoltests.restxml#EndpointWithHostLabelHeaderOperation") - } - - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -114,11 +90,15 @@ func TestClient_EndpointWithHostLabelHeaderOperation_awsRestxmlSerialize(t *test e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.EndpointWithHostLabelHeaderOperation(context.Background(), c.Params) + result, err := client.EndpointWithHostLabelHeaderOperation(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/restxml/api_op_EndpointWithHostLabelOperation_test.go b/internal/protocoltest/restxml/api_op_EndpointWithHostLabelOperation_test.go index e913cda2bbb..70cd3c3abb1 100644 --- a/internal/protocoltest/restxml/api_op_EndpointWithHostLabelOperation_test.go +++ b/internal/protocoltest/restxml/api_op_EndpointWithHostLabelOperation_test.go @@ -3,20 +3,17 @@ package restxml import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" "io" - "io/ioutil" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -67,29 +64,8 @@ func TestClient_EndpointWithHostLabelOperation_awsRestxmlSerialize(t *testing.T) } for name, c := range cases { t.Run(name, func(t *testing.T) { - if name == "RestXmlEndpointTraitWithHostLabel" { - t.Skip("disabled test aws.protocoltests.restxml#RestXml aws.protocoltests.restxml#EndpointWithHostLabelOperation") - } - - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -113,11 +89,15 @@ func TestClient_EndpointWithHostLabelOperation_awsRestxmlSerialize(t *testing.T) e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.EndpointWithHostLabelOperation(context.Background(), c.Params) + result, err := client.EndpointWithHostLabelOperation(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/restxml/api_op_FlattenedXmlMapWithXmlName_test.go b/internal/protocoltest/restxml/api_op_FlattenedXmlMapWithXmlName_test.go index cf0b2e232cc..40e15c42bbd 100644 --- a/internal/protocoltest/restxml/api_op_FlattenedXmlMapWithXmlName_test.go +++ b/internal/protocoltest/restxml/api_op_FlattenedXmlMapWithXmlName_test.go @@ -6,9 +6,10 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" smithyhttp "github.com/aws/smithy-go/transport/http" @@ -18,9 +19,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -70,25 +69,8 @@ func TestClient_FlattenedXmlMapWithXmlName_awsRestxmlSerialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -112,11 +94,15 @@ func TestClient_FlattenedXmlMapWithXmlName_awsRestxmlSerialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.FlattenedXmlMapWithXmlName(context.Background(), c.Params) + result, err := client.FlattenedXmlMapWithXmlName(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/restxml/api_op_FlattenedXmlMap_test.go b/internal/protocoltest/restxml/api_op_FlattenedXmlMap_test.go index d9446e4f7fd..db95385c4f8 100644 --- a/internal/protocoltest/restxml/api_op_FlattenedXmlMap_test.go +++ b/internal/protocoltest/restxml/api_op_FlattenedXmlMap_test.go @@ -6,10 +6,11 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/aws-sdk-go-v2/internal/protocoltest/restxml/types" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" smithyhttp "github.com/aws/smithy-go/transport/http" @@ -19,9 +20,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -71,25 +70,8 @@ func TestClient_FlattenedXmlMap_awsRestxmlSerialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -113,11 +95,15 @@ func TestClient_FlattenedXmlMap_awsRestxmlSerialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.FlattenedXmlMap(context.Background(), c.Params) + result, err := client.FlattenedXmlMap(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/restxml/api_op_HttpPayloadTraitsWithMediaType_test.go b/internal/protocoltest/restxml/api_op_HttpPayloadTraitsWithMediaType_test.go index 84c1038009a..984e7c5df4c 100644 --- a/internal/protocoltest/restxml/api_op_HttpPayloadTraitsWithMediaType_test.go +++ b/internal/protocoltest/restxml/api_op_HttpPayloadTraitsWithMediaType_test.go @@ -6,9 +6,10 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" @@ -19,9 +20,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -63,25 +62,8 @@ func TestClient_HttpPayloadTraitsWithMediaType_awsRestxmlSerialize(t *testing.T) } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -105,11 +87,15 @@ func TestClient_HttpPayloadTraitsWithMediaType_awsRestxmlSerialize(t *testing.T) e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.HttpPayloadTraitsWithMediaType(context.Background(), c.Params) + result, err := client.HttpPayloadTraitsWithMediaType(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/restxml/api_op_HttpPayloadTraits_test.go b/internal/protocoltest/restxml/api_op_HttpPayloadTraits_test.go index a1a7c926a0a..533ee4c32f4 100644 --- a/internal/protocoltest/restxml/api_op_HttpPayloadTraits_test.go +++ b/internal/protocoltest/restxml/api_op_HttpPayloadTraits_test.go @@ -6,9 +6,10 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" @@ -19,9 +20,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -77,25 +76,8 @@ func TestClient_HttpPayloadTraits_awsRestxmlSerialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -119,11 +101,15 @@ func TestClient_HttpPayloadTraits_awsRestxmlSerialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.HttpPayloadTraits(context.Background(), c.Params) + result, err := client.HttpPayloadTraits(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/restxml/api_op_HttpPayloadWithMemberXmlName_test.go b/internal/protocoltest/restxml/api_op_HttpPayloadWithMemberXmlName_test.go index 5b979b6759f..0eb2b96efd5 100644 --- a/internal/protocoltest/restxml/api_op_HttpPayloadWithMemberXmlName_test.go +++ b/internal/protocoltest/restxml/api_op_HttpPayloadWithMemberXmlName_test.go @@ -6,10 +6,11 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/aws-sdk-go-v2/internal/protocoltest/restxml/types" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" @@ -20,9 +21,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -66,25 +65,8 @@ func TestClient_HttpPayloadWithMemberXmlName_awsRestxmlSerialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -108,11 +90,15 @@ func TestClient_HttpPayloadWithMemberXmlName_awsRestxmlSerialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.HttpPayloadWithMemberXmlName(context.Background(), c.Params) + result, err := client.HttpPayloadWithMemberXmlName(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/restxml/api_op_HttpPayloadWithStructure_test.go b/internal/protocoltest/restxml/api_op_HttpPayloadWithStructure_test.go index 26098a43f56..fd50982de79 100644 --- a/internal/protocoltest/restxml/api_op_HttpPayloadWithStructure_test.go +++ b/internal/protocoltest/restxml/api_op_HttpPayloadWithStructure_test.go @@ -6,10 +6,11 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/aws-sdk-go-v2/internal/protocoltest/restxml/types" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" @@ -20,9 +21,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -70,25 +69,8 @@ func TestClient_HttpPayloadWithStructure_awsRestxmlSerialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -112,11 +94,15 @@ func TestClient_HttpPayloadWithStructure_awsRestxmlSerialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.HttpPayloadWithStructure(context.Background(), c.Params) + result, err := client.HttpPayloadWithStructure(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/restxml/api_op_HttpPayloadWithXmlName_test.go b/internal/protocoltest/restxml/api_op_HttpPayloadWithXmlName_test.go index acc2b262a1c..094da7718cc 100644 --- a/internal/protocoltest/restxml/api_op_HttpPayloadWithXmlName_test.go +++ b/internal/protocoltest/restxml/api_op_HttpPayloadWithXmlName_test.go @@ -6,10 +6,11 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/aws-sdk-go-v2/internal/protocoltest/restxml/types" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" @@ -20,9 +21,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -65,25 +64,8 @@ func TestClient_HttpPayloadWithXmlName_awsRestxmlSerialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -107,11 +89,15 @@ func TestClient_HttpPayloadWithXmlName_awsRestxmlSerialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.HttpPayloadWithXmlName(context.Background(), c.Params) + result, err := client.HttpPayloadWithXmlName(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/restxml/api_op_HttpPayloadWithXmlNamespaceAndPrefix_test.go b/internal/protocoltest/restxml/api_op_HttpPayloadWithXmlNamespaceAndPrefix_test.go index 4253b3ea8ce..1922ebe1c5e 100644 --- a/internal/protocoltest/restxml/api_op_HttpPayloadWithXmlNamespaceAndPrefix_test.go +++ b/internal/protocoltest/restxml/api_op_HttpPayloadWithXmlNamespaceAndPrefix_test.go @@ -6,10 +6,11 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/aws-sdk-go-v2/internal/protocoltest/restxml/types" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" @@ -20,9 +21,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -67,25 +66,8 @@ func TestClient_HttpPayloadWithXmlNamespaceAndPrefix_awsRestxmlSerialize(t *test } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -109,11 +91,15 @@ func TestClient_HttpPayloadWithXmlNamespaceAndPrefix_awsRestxmlSerialize(t *test e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.HttpPayloadWithXmlNamespaceAndPrefix(context.Background(), c.Params) + result, err := client.HttpPayloadWithXmlNamespaceAndPrefix(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/restxml/api_op_HttpPayloadWithXmlNamespace_test.go b/internal/protocoltest/restxml/api_op_HttpPayloadWithXmlNamespace_test.go index b311c4dbeaf..52d64c4a707 100644 --- a/internal/protocoltest/restxml/api_op_HttpPayloadWithXmlNamespace_test.go +++ b/internal/protocoltest/restxml/api_op_HttpPayloadWithXmlNamespace_test.go @@ -6,10 +6,11 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/aws-sdk-go-v2/internal/protocoltest/restxml/types" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" @@ -20,9 +21,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -67,25 +66,8 @@ func TestClient_HttpPayloadWithXmlNamespace_awsRestxmlSerialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -109,11 +91,15 @@ func TestClient_HttpPayloadWithXmlNamespace_awsRestxmlSerialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.HttpPayloadWithXmlNamespace(context.Background(), c.Params) + result, err := client.HttpPayloadWithXmlNamespace(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/restxml/api_op_HttpPrefixHeaders_test.go b/internal/protocoltest/restxml/api_op_HttpPrefixHeaders_test.go index 440a12ddeeb..3252ca04102 100644 --- a/internal/protocoltest/restxml/api_op_HttpPrefixHeaders_test.go +++ b/internal/protocoltest/restxml/api_op_HttpPrefixHeaders_test.go @@ -6,9 +6,10 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" @@ -19,9 +20,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -80,25 +79,8 @@ func TestClient_HttpPrefixHeaders_awsRestxmlSerialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -122,11 +104,15 @@ func TestClient_HttpPrefixHeaders_awsRestxmlSerialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.HttpPrefixHeaders(context.Background(), c.Params) + result, err := client.HttpPrefixHeaders(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/restxml/api_op_HttpRequestWithFloatLabels_test.go b/internal/protocoltest/restxml/api_op_HttpRequestWithFloatLabels_test.go index 23b9f6f3e19..a5ff1b86f79 100644 --- a/internal/protocoltest/restxml/api_op_HttpRequestWithFloatLabels_test.go +++ b/internal/protocoltest/restxml/api_op_HttpRequestWithFloatLabels_test.go @@ -3,21 +3,18 @@ package restxml import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" "io" - "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -78,25 +75,8 @@ func TestClient_HttpRequestWithFloatLabels_awsRestxmlSerialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -120,11 +100,15 @@ func TestClient_HttpRequestWithFloatLabels_awsRestxmlSerialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.HttpRequestWithFloatLabels(context.Background(), c.Params) + result, err := client.HttpRequestWithFloatLabels(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/restxml/api_op_HttpRequestWithGreedyLabelInPath_test.go b/internal/protocoltest/restxml/api_op_HttpRequestWithGreedyLabelInPath_test.go index a7ffdc799ca..bad6a13501b 100644 --- a/internal/protocoltest/restxml/api_op_HttpRequestWithGreedyLabelInPath_test.go +++ b/internal/protocoltest/restxml/api_op_HttpRequestWithGreedyLabelInPath_test.go @@ -3,20 +3,17 @@ package restxml import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" "io" - "io/ioutil" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -51,25 +48,8 @@ func TestClient_HttpRequestWithGreedyLabelInPath_awsRestxmlSerialize(t *testing. } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -93,11 +73,15 @@ func TestClient_HttpRequestWithGreedyLabelInPath_awsRestxmlSerialize(t *testing. e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.HttpRequestWithGreedyLabelInPath(context.Background(), c.Params) + result, err := client.HttpRequestWithGreedyLabelInPath(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/restxml/api_op_HttpRequestWithLabelsAndTimestampFormat_test.go b/internal/protocoltest/restxml/api_op_HttpRequestWithLabelsAndTimestampFormat_test.go index 47db83d0569..c81b7ae5cfd 100644 --- a/internal/protocoltest/restxml/api_op_HttpRequestWithLabelsAndTimestampFormat_test.go +++ b/internal/protocoltest/restxml/api_op_HttpRequestWithLabelsAndTimestampFormat_test.go @@ -3,21 +3,18 @@ package restxml import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" smithytime "github.com/aws/smithy-go/time" "io" - "io/ioutil" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -57,25 +54,8 @@ func TestClient_HttpRequestWithLabelsAndTimestampFormat_awsRestxmlSerialize(t *t } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -99,11 +79,15 @@ func TestClient_HttpRequestWithLabelsAndTimestampFormat_awsRestxmlSerialize(t *t e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.HttpRequestWithLabelsAndTimestampFormat(context.Background(), c.Params) + result, err := client.HttpRequestWithLabelsAndTimestampFormat(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/restxml/api_op_HttpRequestWithLabels_test.go b/internal/protocoltest/restxml/api_op_HttpRequestWithLabels_test.go index b13fd5b7d1d..4986cb62945 100644 --- a/internal/protocoltest/restxml/api_op_HttpRequestWithLabels_test.go +++ b/internal/protocoltest/restxml/api_op_HttpRequestWithLabels_test.go @@ -3,21 +3,18 @@ package restxml import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" smithytime "github.com/aws/smithy-go/time" "io" - "io/ioutil" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -58,25 +55,8 @@ func TestClient_HttpRequestWithLabels_awsRestxmlSerialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -100,11 +80,15 @@ func TestClient_HttpRequestWithLabels_awsRestxmlSerialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.HttpRequestWithLabels(context.Background(), c.Params) + result, err := client.HttpRequestWithLabels(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/restxml/api_op_InputAndOutputWithHeaders_test.go b/internal/protocoltest/restxml/api_op_InputAndOutputWithHeaders_test.go index ce252418ae6..7903f91ed08 100644 --- a/internal/protocoltest/restxml/api_op_InputAndOutputWithHeaders_test.go +++ b/internal/protocoltest/restxml/api_op_InputAndOutputWithHeaders_test.go @@ -6,10 +6,11 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/aws-sdk-go-v2/internal/protocoltest/restxml/types" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" @@ -21,9 +22,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" "time" ) @@ -217,25 +216,8 @@ func TestClient_InputAndOutputWithHeaders_awsRestxmlSerialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -259,11 +241,15 @@ func TestClient_InputAndOutputWithHeaders_awsRestxmlSerialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.InputAndOutputWithHeaders(context.Background(), c.Params) + result, err := client.InputAndOutputWithHeaders(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/restxml/api_op_NestedXmlMaps_test.go b/internal/protocoltest/restxml/api_op_NestedXmlMaps_test.go index 40573977911..7f29a89b84c 100644 --- a/internal/protocoltest/restxml/api_op_NestedXmlMaps_test.go +++ b/internal/protocoltest/restxml/api_op_NestedXmlMaps_test.go @@ -6,10 +6,11 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/aws-sdk-go-v2/internal/protocoltest/restxml/types" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" smithyhttp "github.com/aws/smithy-go/transport/http" @@ -19,9 +20,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -106,25 +105,8 @@ func TestClient_NestedXmlMaps_awsRestxmlSerialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -148,11 +130,15 @@ func TestClient_NestedXmlMaps_awsRestxmlSerialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.NestedXmlMaps(context.Background(), c.Params) + result, err := client.NestedXmlMaps(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/restxml/api_op_NoInputAndNoOutput_test.go b/internal/protocoltest/restxml/api_op_NoInputAndNoOutput_test.go index 33d7212bef2..c3c52520490 100644 --- a/internal/protocoltest/restxml/api_op_NoInputAndNoOutput_test.go +++ b/internal/protocoltest/restxml/api_op_NoInputAndNoOutput_test.go @@ -6,9 +6,10 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" smithyhttp "github.com/aws/smithy-go/transport/http" @@ -18,9 +19,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -52,25 +51,8 @@ func TestClient_NoInputAndNoOutput_awsRestxmlSerialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -94,11 +76,15 @@ func TestClient_NoInputAndNoOutput_awsRestxmlSerialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.NoInputAndNoOutput(context.Background(), c.Params) + result, err := client.NoInputAndNoOutput(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/restxml/api_op_NoInputAndOutput_test.go b/internal/protocoltest/restxml/api_op_NoInputAndOutput_test.go index d0d15a68482..4a8776bd51c 100644 --- a/internal/protocoltest/restxml/api_op_NoInputAndOutput_test.go +++ b/internal/protocoltest/restxml/api_op_NoInputAndOutput_test.go @@ -6,9 +6,10 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" smithyhttp "github.com/aws/smithy-go/transport/http" @@ -18,9 +19,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -52,25 +51,8 @@ func TestClient_NoInputAndOutput_awsRestxmlSerialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -94,11 +76,15 @@ func TestClient_NoInputAndOutput_awsRestxmlSerialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.NoInputAndOutput(context.Background(), c.Params) + result, err := client.NoInputAndOutput(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/restxml/api_op_NullAndEmptyHeadersClient_test.go b/internal/protocoltest/restxml/api_op_NullAndEmptyHeadersClient_test.go index 88113be3fc1..d979e5f526f 100644 --- a/internal/protocoltest/restxml/api_op_NullAndEmptyHeadersClient_test.go +++ b/internal/protocoltest/restxml/api_op_NullAndEmptyHeadersClient_test.go @@ -3,20 +3,17 @@ package restxml import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" "io" - "io/ioutil" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -57,25 +54,8 @@ func TestClient_NullAndEmptyHeadersClient_awsRestxmlSerialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -99,11 +79,15 @@ func TestClient_NullAndEmptyHeadersClient_awsRestxmlSerialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.NullAndEmptyHeadersClient(context.Background(), c.Params) + result, err := client.NullAndEmptyHeadersClient(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/restxml/api_op_OmitsNullSerializesEmptyString_test.go b/internal/protocoltest/restxml/api_op_OmitsNullSerializesEmptyString_test.go index 2cb3332e131..2e056e68beb 100644 --- a/internal/protocoltest/restxml/api_op_OmitsNullSerializesEmptyString_test.go +++ b/internal/protocoltest/restxml/api_op_OmitsNullSerializesEmptyString_test.go @@ -3,20 +3,17 @@ package restxml import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" "io" - "io/ioutil" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -64,25 +61,8 @@ func TestClient_OmitsNullSerializesEmptyString_awsRestxmlSerialize(t *testing.T) } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -106,11 +86,15 @@ func TestClient_OmitsNullSerializesEmptyString_awsRestxmlSerialize(t *testing.T) e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.OmitsNullSerializesEmptyString(context.Background(), c.Params) + result, err := client.OmitsNullSerializesEmptyString(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/restxml/api_op_QueryIdempotencyTokenAutoFill_test.go b/internal/protocoltest/restxml/api_op_QueryIdempotencyTokenAutoFill_test.go index fd2243b6ec4..91d68f315bc 100644 --- a/internal/protocoltest/restxml/api_op_QueryIdempotencyTokenAutoFill_test.go +++ b/internal/protocoltest/restxml/api_op_QueryIdempotencyTokenAutoFill_test.go @@ -3,20 +3,17 @@ package restxml import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" "io" - "io/ioutil" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -64,25 +61,8 @@ func TestClient_QueryIdempotencyTokenAutoFill_awsRestxmlSerialize(t *testing.T) } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -106,11 +86,15 @@ func TestClient_QueryIdempotencyTokenAutoFill_awsRestxmlSerialize(t *testing.T) e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.QueryIdempotencyTokenAutoFill(context.Background(), c.Params) + result, err := client.QueryIdempotencyTokenAutoFill(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/restxml/api_op_QueryParamsAsStringListMap_test.go b/internal/protocoltest/restxml/api_op_QueryParamsAsStringListMap_test.go index 7a7be7629c0..56a111a4f8a 100644 --- a/internal/protocoltest/restxml/api_op_QueryParamsAsStringListMap_test.go +++ b/internal/protocoltest/restxml/api_op_QueryParamsAsStringListMap_test.go @@ -3,20 +3,17 @@ package restxml import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" "io" - "io/ioutil" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -60,25 +57,8 @@ func TestClient_QueryParamsAsStringListMap_awsRestxmlSerialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -102,11 +82,15 @@ func TestClient_QueryParamsAsStringListMap_awsRestxmlSerialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.QueryParamsAsStringListMap(context.Background(), c.Params) + result, err := client.QueryParamsAsStringListMap(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/restxml/api_op_QueryPrecedence_test.go b/internal/protocoltest/restxml/api_op_QueryPrecedence_test.go index 1a685471846..548fdbea7ec 100644 --- a/internal/protocoltest/restxml/api_op_QueryPrecedence_test.go +++ b/internal/protocoltest/restxml/api_op_QueryPrecedence_test.go @@ -3,20 +3,17 @@ package restxml import ( - "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" "io" - "io/ioutil" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -57,25 +54,8 @@ func TestClient_QueryPrecedence_awsRestxmlSerialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -99,11 +79,15 @@ func TestClient_QueryPrecedence_awsRestxmlSerialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.QueryPrecedence(context.Background(), c.Params) + result, err := client.QueryPrecedence(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/restxml/api_op_RecursiveShapes_test.go b/internal/protocoltest/restxml/api_op_RecursiveShapes_test.go index d3df55f837d..011c269c528 100644 --- a/internal/protocoltest/restxml/api_op_RecursiveShapes_test.go +++ b/internal/protocoltest/restxml/api_op_RecursiveShapes_test.go @@ -6,10 +6,11 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/aws-sdk-go-v2/internal/protocoltest/restxml/types" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" @@ -20,9 +21,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -85,25 +84,8 @@ func TestClient_RecursiveShapes_awsRestxmlSerialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -127,11 +109,15 @@ func TestClient_RecursiveShapes_awsRestxmlSerialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.RecursiveShapes(context.Background(), c.Params) + result, err := client.RecursiveShapes(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/restxml/api_op_SimpleScalarProperties_test.go b/internal/protocoltest/restxml/api_op_SimpleScalarProperties_test.go index b2e59bc9f18..811ca2be5a3 100644 --- a/internal/protocoltest/restxml/api_op_SimpleScalarProperties_test.go +++ b/internal/protocoltest/restxml/api_op_SimpleScalarProperties_test.go @@ -6,9 +6,10 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" @@ -19,9 +20,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -206,25 +205,8 @@ func TestClient_SimpleScalarProperties_awsRestxmlSerialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -248,11 +230,15 @@ func TestClient_SimpleScalarProperties_awsRestxmlSerialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.SimpleScalarProperties(context.Background(), c.Params) + result, err := client.SimpleScalarProperties(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/restxml/api_op_TimestampFormatHeaders_test.go b/internal/protocoltest/restxml/api_op_TimestampFormatHeaders_test.go index 8668faa073b..31a0c96d65f 100644 --- a/internal/protocoltest/restxml/api_op_TimestampFormatHeaders_test.go +++ b/internal/protocoltest/restxml/api_op_TimestampFormatHeaders_test.go @@ -6,9 +6,10 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" @@ -20,9 +21,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -71,25 +70,8 @@ func TestClient_TimestampFormatHeaders_awsRestxmlSerialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -113,11 +95,15 @@ func TestClient_TimestampFormatHeaders_awsRestxmlSerialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.TimestampFormatHeaders(context.Background(), c.Params) + result, err := client.TimestampFormatHeaders(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/restxml/api_op_XmlAttributesOnPayload_test.go b/internal/protocoltest/restxml/api_op_XmlAttributesOnPayload_test.go index 141c3f4daf9..2d69a7b6407 100644 --- a/internal/protocoltest/restxml/api_op_XmlAttributesOnPayload_test.go +++ b/internal/protocoltest/restxml/api_op_XmlAttributesOnPayload_test.go @@ -6,10 +6,11 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/aws-sdk-go-v2/internal/protocoltest/restxml/types" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" @@ -20,9 +21,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -66,25 +65,8 @@ func TestClient_XmlAttributesOnPayload_awsRestxmlSerialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -108,11 +90,15 @@ func TestClient_XmlAttributesOnPayload_awsRestxmlSerialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.XmlAttributesOnPayload(context.Background(), c.Params) + result, err := client.XmlAttributesOnPayload(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/restxml/api_op_XmlAttributes_test.go b/internal/protocoltest/restxml/api_op_XmlAttributes_test.go index 31b39f7d2f1..fa10ed3d094 100644 --- a/internal/protocoltest/restxml/api_op_XmlAttributes_test.go +++ b/internal/protocoltest/restxml/api_op_XmlAttributes_test.go @@ -6,9 +6,10 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" @@ -19,9 +20,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -83,25 +82,8 @@ func TestClient_XmlAttributes_awsRestxmlSerialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -125,11 +107,15 @@ func TestClient_XmlAttributes_awsRestxmlSerialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.XmlAttributes(context.Background(), c.Params) + result, err := client.XmlAttributes(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/restxml/api_op_XmlBlobs_test.go b/internal/protocoltest/restxml/api_op_XmlBlobs_test.go index 9b1fe138eed..d622aa1ac53 100644 --- a/internal/protocoltest/restxml/api_op_XmlBlobs_test.go +++ b/internal/protocoltest/restxml/api_op_XmlBlobs_test.go @@ -6,9 +6,10 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" smithyhttp "github.com/aws/smithy-go/transport/http" @@ -18,9 +19,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -61,25 +60,8 @@ func TestClient_XmlBlobs_awsRestxmlSerialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -103,11 +85,15 @@ func TestClient_XmlBlobs_awsRestxmlSerialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.XmlBlobs(context.Background(), c.Params) + result, err := client.XmlBlobs(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/restxml/api_op_XmlEmptyLists_test.go b/internal/protocoltest/restxml/api_op_XmlEmptyLists_test.go index 533864e4dbc..d2215f1bfa2 100644 --- a/internal/protocoltest/restxml/api_op_XmlEmptyLists_test.go +++ b/internal/protocoltest/restxml/api_op_XmlEmptyLists_test.go @@ -6,9 +6,10 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" smithyhttp "github.com/aws/smithy-go/transport/http" @@ -18,9 +19,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -63,25 +62,8 @@ func TestClient_XmlEmptyLists_awsRestxmlSerialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -105,11 +87,15 @@ func TestClient_XmlEmptyLists_awsRestxmlSerialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.XmlEmptyLists(context.Background(), c.Params) + result, err := client.XmlEmptyLists(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/restxml/api_op_XmlEmptyMaps_test.go b/internal/protocoltest/restxml/api_op_XmlEmptyMaps_test.go index 7913345299c..380de2a58dd 100644 --- a/internal/protocoltest/restxml/api_op_XmlEmptyMaps_test.go +++ b/internal/protocoltest/restxml/api_op_XmlEmptyMaps_test.go @@ -6,10 +6,11 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/aws-sdk-go-v2/internal/protocoltest/restxml/types" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" smithyhttp "github.com/aws/smithy-go/transport/http" @@ -19,9 +20,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -62,25 +61,8 @@ func TestClient_XmlEmptyMaps_awsRestxmlSerialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -104,11 +86,15 @@ func TestClient_XmlEmptyMaps_awsRestxmlSerialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.XmlEmptyMaps(context.Background(), c.Params) + result, err := client.XmlEmptyMaps(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/restxml/api_op_XmlEmptyStrings_test.go b/internal/protocoltest/restxml/api_op_XmlEmptyStrings_test.go index 014c088bcfa..54173040305 100644 --- a/internal/protocoltest/restxml/api_op_XmlEmptyStrings_test.go +++ b/internal/protocoltest/restxml/api_op_XmlEmptyStrings_test.go @@ -6,9 +6,10 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" @@ -19,9 +20,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -62,25 +61,8 @@ func TestClient_XmlEmptyStrings_awsRestxmlSerialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -104,11 +86,15 @@ func TestClient_XmlEmptyStrings_awsRestxmlSerialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.XmlEmptyStrings(context.Background(), c.Params) + result, err := client.XmlEmptyStrings(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/restxml/api_op_XmlEnums_test.go b/internal/protocoltest/restxml/api_op_XmlEnums_test.go index f181e23fc48..61a97373ef8 100644 --- a/internal/protocoltest/restxml/api_op_XmlEnums_test.go +++ b/internal/protocoltest/restxml/api_op_XmlEnums_test.go @@ -6,10 +6,11 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/aws-sdk-go-v2/internal/protocoltest/restxml/types" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" smithyhttp "github.com/aws/smithy-go/transport/http" @@ -19,9 +20,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -96,25 +95,8 @@ func TestClient_XmlEnums_awsRestxmlSerialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -138,11 +120,15 @@ func TestClient_XmlEnums_awsRestxmlSerialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.XmlEnums(context.Background(), c.Params) + result, err := client.XmlEnums(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/restxml/api_op_XmlIntEnums_test.go b/internal/protocoltest/restxml/api_op_XmlIntEnums_test.go index e166c3fdc76..c3136507767 100644 --- a/internal/protocoltest/restxml/api_op_XmlIntEnums_test.go +++ b/internal/protocoltest/restxml/api_op_XmlIntEnums_test.go @@ -6,10 +6,11 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/aws-sdk-go-v2/internal/protocoltest/restxml/types" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" smithyhttp "github.com/aws/smithy-go/transport/http" @@ -19,9 +20,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -96,25 +95,8 @@ func TestClient_XmlIntEnums_awsRestxmlSerialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -138,11 +120,15 @@ func TestClient_XmlIntEnums_awsRestxmlSerialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.XmlIntEnums(context.Background(), c.Params) + result, err := client.XmlIntEnums(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/restxml/api_op_XmlLists_test.go b/internal/protocoltest/restxml/api_op_XmlLists_test.go index ff5b8707a44..a31855f3629 100644 --- a/internal/protocoltest/restxml/api_op_XmlLists_test.go +++ b/internal/protocoltest/restxml/api_op_XmlLists_test.go @@ -6,10 +6,11 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/aws-sdk-go-v2/internal/protocoltest/restxml/types" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" @@ -21,9 +22,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" "time" ) @@ -197,25 +196,8 @@ func TestClient_XmlLists_awsRestxmlSerialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -239,11 +221,15 @@ func TestClient_XmlLists_awsRestxmlSerialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.XmlLists(context.Background(), c.Params) + result, err := client.XmlLists(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/restxml/api_op_XmlMapsXmlName_test.go b/internal/protocoltest/restxml/api_op_XmlMapsXmlName_test.go index d7dfe695d74..65039bcde2b 100644 --- a/internal/protocoltest/restxml/api_op_XmlMapsXmlName_test.go +++ b/internal/protocoltest/restxml/api_op_XmlMapsXmlName_test.go @@ -6,10 +6,11 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/aws-sdk-go-v2/internal/protocoltest/restxml/types" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" @@ -20,9 +21,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -83,25 +82,8 @@ func TestClient_XmlMapsXmlName_awsRestxmlSerialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -125,11 +107,15 @@ func TestClient_XmlMapsXmlName_awsRestxmlSerialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.XmlMapsXmlName(context.Background(), c.Params) + result, err := client.XmlMapsXmlName(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/restxml/api_op_XmlMaps_test.go b/internal/protocoltest/restxml/api_op_XmlMaps_test.go index e92d69ff00a..af87e82533e 100644 --- a/internal/protocoltest/restxml/api_op_XmlMaps_test.go +++ b/internal/protocoltest/restxml/api_op_XmlMaps_test.go @@ -6,10 +6,11 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/aws-sdk-go-v2/internal/protocoltest/restxml/types" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" @@ -20,9 +21,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -83,25 +82,8 @@ func TestClient_XmlMaps_awsRestxmlSerialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -125,11 +107,15 @@ func TestClient_XmlMaps_awsRestxmlSerialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.XmlMaps(context.Background(), c.Params) + result, err := client.XmlMaps(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/restxml/api_op_XmlNamespaces_test.go b/internal/protocoltest/restxml/api_op_XmlNamespaces_test.go index e471f5e7c7d..22fa81b81d2 100644 --- a/internal/protocoltest/restxml/api_op_XmlNamespaces_test.go +++ b/internal/protocoltest/restxml/api_op_XmlNamespaces_test.go @@ -6,10 +6,11 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/aws-sdk-go-v2/internal/protocoltest/restxml/types" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" @@ -20,9 +21,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -75,25 +74,8 @@ func TestClient_XmlNamespaces_awsRestxmlSerialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -117,11 +99,15 @@ func TestClient_XmlNamespaces_awsRestxmlSerialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.XmlNamespaces(context.Background(), c.Params) + result, err := client.XmlNamespaces(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/restxml/api_op_XmlTimestamps_test.go b/internal/protocoltest/restxml/api_op_XmlTimestamps_test.go index 300e12e72af..cde088b551d 100644 --- a/internal/protocoltest/restxml/api_op_XmlTimestamps_test.go +++ b/internal/protocoltest/restxml/api_op_XmlTimestamps_test.go @@ -6,9 +6,10 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" @@ -20,9 +21,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -178,25 +177,8 @@ func TestClient_XmlTimestamps_awsRestxmlSerialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -220,11 +202,15 @@ func TestClient_XmlTimestamps_awsRestxmlSerialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.XmlTimestamps(context.Background(), c.Params) + result, err := client.XmlTimestamps(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/restxml/api_op_XmlUnions_test.go b/internal/protocoltest/restxml/api_op_XmlUnions_test.go index 8ccfd7463c5..f8c78b794a7 100644 --- a/internal/protocoltest/restxml/api_op_XmlUnions_test.go +++ b/internal/protocoltest/restxml/api_op_XmlUnions_test.go @@ -6,10 +6,11 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/aws-sdk-go-v2/internal/protocoltest/restxml/types" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithyrand "github.com/aws/smithy-go/rand" smithytesting "github.com/aws/smithy-go/testing" @@ -20,9 +21,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -148,25 +147,8 @@ func TestClient_XmlUnions_awsRestxmlSerialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -190,11 +172,15 @@ func TestClient_XmlUnions_awsRestxmlSerialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), IdempotencyTokenProvider: smithyrand.NewUUIDIdempotencyToken(&smithytesting.ByteLoop{}), Region: "us-west-2", }) - result, err := client.XmlUnions(context.Background(), c.Params) + result, err := client.XmlUnions(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/restxml/go.sum b/internal/protocoltest/restxml/go.sum index b988e58d38d..975890afbc6 100644 --- a/internal/protocoltest/restxml/go.sum +++ b/internal/protocoltest/restxml/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/internal/protocoltest/restxmlwithnamespace/api_op_SimpleScalarProperties_test.go b/internal/protocoltest/restxmlwithnamespace/api_op_SimpleScalarProperties_test.go index b2a88d664df..2e334af22eb 100644 --- a/internal/protocoltest/restxmlwithnamespace/api_op_SimpleScalarProperties_test.go +++ b/internal/protocoltest/restxmlwithnamespace/api_op_SimpleScalarProperties_test.go @@ -6,10 +6,11 @@ import ( "bytes" "context" "github.com/aws/aws-sdk-go-v2/aws" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + protocoltesthttp "github.com/aws/aws-sdk-go-v2/internal/protocoltest" "github.com/aws/aws-sdk-go-v2/internal/protocoltest/restxmlwithnamespace/types" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/middleware" + smithyprivateprotocol "github.com/aws/smithy-go/private/protocol" "github.com/aws/smithy-go/ptr" smithytesting "github.com/aws/smithy-go/testing" smithyhttp "github.com/aws/smithy-go/transport/http" @@ -19,9 +20,7 @@ import ( "io/ioutil" "math" "net/http" - "net/http/httptest" "net/url" - "strconv" "testing" ) @@ -84,25 +83,8 @@ func TestClient_SimpleScalarProperties_awsRestxmlSerialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { - var actualReq *http.Request - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - actualReq = r.Clone(r.Context()) - if len(actualReq.URL.RawPath) == 0 { - actualReq.URL.RawPath = actualReq.URL.Path - } - if v := actualReq.ContentLength; v != 0 { - actualReq.Header.Set("Content-Length", strconv.FormatInt(v, 10)) - } - var buf bytes.Buffer - if _, err := io.Copy(&buf, r.Body); err != nil { - t.Errorf("failed to read request body, %v", err) - } - actualReq.Body = ioutil.NopCloser(&buf) - - w.WriteHeader(200) - })) - defer server.Close() - serverURL := server.URL + actualReq := &http.Request{} + serverURL := "http://localhost:8888/" if c.Host != nil { u, err := url.Parse(serverURL) if err != nil { @@ -126,10 +108,14 @@ func TestClient_SimpleScalarProperties_awsRestxmlSerialize(t *testing.T) { e.SigningRegion = "us-west-2" return e, err }), - HTTPClient: awshttp.NewBuildableClient(), + HTTPClient: protocoltesthttp.NewClient(), Region: "us-west-2", }) - result, err := client.SimpleScalarProperties(context.Background(), c.Params) + result, err := client.SimpleScalarProperties(context.Background(), c.Params, func(options *Options) { + options.APIOptions = append(options.APIOptions, func(stack *middleware.Stack) error { + return smithyprivateprotocol.AddCaptureRequestMiddleware(stack, actualReq) + }) + }) if err != nil { t.Fatalf("expect nil err, got %v", err) } diff --git a/internal/protocoltest/restxmlwithnamespace/go.sum b/internal/protocoltest/restxmlwithnamespace/go.sum index b988e58d38d..975890afbc6 100644 --- a/internal/protocoltest/restxmlwithnamespace/go.sum +++ b/internal/protocoltest/restxmlwithnamespace/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/internal/v4a/go.sum b/internal/v4a/go.sum index b988e58d38d..975890afbc6 100644 --- a/internal/v4a/go.sum +++ b/internal/v4a/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/accessanalyzer/go.sum b/service/accessanalyzer/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/accessanalyzer/go.sum +++ b/service/accessanalyzer/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/account/go.sum b/service/account/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/account/go.sum +++ b/service/account/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/acm/go.sum b/service/acm/go.sum index 86f14bae528..b03fbb7a350 100644 --- a/service/acm/go.sum +++ b/service/acm/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/acmpca/go.sum b/service/acmpca/go.sum index 86f14bae528..b03fbb7a350 100644 --- a/service/acmpca/go.sum +++ b/service/acmpca/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/alexaforbusiness/go.sum b/service/alexaforbusiness/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/alexaforbusiness/go.sum +++ b/service/alexaforbusiness/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/amp/go.sum b/service/amp/go.sum index 86f14bae528..b03fbb7a350 100644 --- a/service/amp/go.sum +++ b/service/amp/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/amplify/go.sum b/service/amplify/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/amplify/go.sum +++ b/service/amplify/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/amplifybackend/go.sum b/service/amplifybackend/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/amplifybackend/go.sum +++ b/service/amplifybackend/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/amplifyuibuilder/go.sum b/service/amplifyuibuilder/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/amplifyuibuilder/go.sum +++ b/service/amplifyuibuilder/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/apigateway/go.sum b/service/apigateway/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/apigateway/go.sum +++ b/service/apigateway/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/apigatewaymanagementapi/go.sum b/service/apigatewaymanagementapi/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/apigatewaymanagementapi/go.sum +++ b/service/apigatewaymanagementapi/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/apigatewayv2/go.sum b/service/apigatewayv2/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/apigatewayv2/go.sum +++ b/service/apigatewayv2/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/appconfig/go.sum b/service/appconfig/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/appconfig/go.sum +++ b/service/appconfig/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/appconfigdata/go.sum b/service/appconfigdata/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/appconfigdata/go.sum +++ b/service/appconfigdata/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/appfabric/go.sum b/service/appfabric/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/appfabric/go.sum +++ b/service/appfabric/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/appflow/go.sum b/service/appflow/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/appflow/go.sum +++ b/service/appflow/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/appintegrations/go.sum b/service/appintegrations/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/appintegrations/go.sum +++ b/service/appintegrations/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/applicationautoscaling/go.sum b/service/applicationautoscaling/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/applicationautoscaling/go.sum +++ b/service/applicationautoscaling/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/applicationcostprofiler/go.sum b/service/applicationcostprofiler/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/applicationcostprofiler/go.sum +++ b/service/applicationcostprofiler/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/applicationdiscoveryservice/go.sum b/service/applicationdiscoveryservice/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/applicationdiscoveryservice/go.sum +++ b/service/applicationdiscoveryservice/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/applicationinsights/go.sum b/service/applicationinsights/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/applicationinsights/go.sum +++ b/service/applicationinsights/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/appmesh/go.sum b/service/appmesh/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/appmesh/go.sum +++ b/service/appmesh/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/apprunner/go.sum b/service/apprunner/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/apprunner/go.sum +++ b/service/apprunner/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/appstream/go.sum b/service/appstream/go.sum index 86f14bae528..b03fbb7a350 100644 --- a/service/appstream/go.sum +++ b/service/appstream/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/appsync/go.sum b/service/appsync/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/appsync/go.sum +++ b/service/appsync/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/arczonalshift/go.sum b/service/arczonalshift/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/arczonalshift/go.sum +++ b/service/arczonalshift/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/athena/go.sum b/service/athena/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/athena/go.sum +++ b/service/athena/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/auditmanager/go.sum b/service/auditmanager/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/auditmanager/go.sum +++ b/service/auditmanager/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/autoscaling/go.sum b/service/autoscaling/go.sum index 86f14bae528..b03fbb7a350 100644 --- a/service/autoscaling/go.sum +++ b/service/autoscaling/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/autoscalingplans/go.sum b/service/autoscalingplans/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/autoscalingplans/go.sum +++ b/service/autoscalingplans/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/backup/go.sum b/service/backup/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/backup/go.sum +++ b/service/backup/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/backupgateway/go.sum b/service/backupgateway/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/backupgateway/go.sum +++ b/service/backupgateway/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/backupstorage/go.sum b/service/backupstorage/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/backupstorage/go.sum +++ b/service/backupstorage/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/batch/go.sum b/service/batch/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/batch/go.sum +++ b/service/batch/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/billingconductor/go.sum b/service/billingconductor/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/billingconductor/go.sum +++ b/service/billingconductor/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/braket/go.sum b/service/braket/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/braket/go.sum +++ b/service/braket/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/budgets/go.sum b/service/budgets/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/budgets/go.sum +++ b/service/budgets/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/chime/go.sum b/service/chime/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/chime/go.sum +++ b/service/chime/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/chimesdkidentity/go.sum b/service/chimesdkidentity/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/chimesdkidentity/go.sum +++ b/service/chimesdkidentity/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/chimesdkmediapipelines/go.sum b/service/chimesdkmediapipelines/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/chimesdkmediapipelines/go.sum +++ b/service/chimesdkmediapipelines/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/chimesdkmeetings/go.sum b/service/chimesdkmeetings/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/chimesdkmeetings/go.sum +++ b/service/chimesdkmeetings/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/chimesdkmessaging/go.sum b/service/chimesdkmessaging/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/chimesdkmessaging/go.sum +++ b/service/chimesdkmessaging/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/chimesdkvoice/go.sum b/service/chimesdkvoice/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/chimesdkvoice/go.sum +++ b/service/chimesdkvoice/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/cleanrooms/go.sum b/service/cleanrooms/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/cleanrooms/go.sum +++ b/service/cleanrooms/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/cloud9/go.sum b/service/cloud9/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/cloud9/go.sum +++ b/service/cloud9/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/cloudcontrol/go.sum b/service/cloudcontrol/go.sum index 86f14bae528..b03fbb7a350 100644 --- a/service/cloudcontrol/go.sum +++ b/service/cloudcontrol/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/clouddirectory/go.sum b/service/clouddirectory/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/clouddirectory/go.sum +++ b/service/clouddirectory/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/cloudformation/go.sum b/service/cloudformation/go.sum index 86f14bae528..b03fbb7a350 100644 --- a/service/cloudformation/go.sum +++ b/service/cloudformation/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/cloudfront/go.sum b/service/cloudfront/go.sum index 86f14bae528..b03fbb7a350 100644 --- a/service/cloudfront/go.sum +++ b/service/cloudfront/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/cloudhsm/go.sum b/service/cloudhsm/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/cloudhsm/go.sum +++ b/service/cloudhsm/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/cloudhsmv2/go.sum b/service/cloudhsmv2/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/cloudhsmv2/go.sum +++ b/service/cloudhsmv2/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/cloudsearch/go.sum b/service/cloudsearch/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/cloudsearch/go.sum +++ b/service/cloudsearch/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/cloudsearchdomain/go.sum b/service/cloudsearchdomain/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/cloudsearchdomain/go.sum +++ b/service/cloudsearchdomain/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/cloudtrail/go.sum b/service/cloudtrail/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/cloudtrail/go.sum +++ b/service/cloudtrail/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/cloudtraildata/go.sum b/service/cloudtraildata/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/cloudtraildata/go.sum +++ b/service/cloudtraildata/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/cloudwatch/go.sum b/service/cloudwatch/go.sum index 86f14bae528..b03fbb7a350 100644 --- a/service/cloudwatch/go.sum +++ b/service/cloudwatch/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/cloudwatchevents/go.sum b/service/cloudwatchevents/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/cloudwatchevents/go.sum +++ b/service/cloudwatchevents/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/cloudwatchlogs/go.sum b/service/cloudwatchlogs/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/cloudwatchlogs/go.sum +++ b/service/cloudwatchlogs/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/codeartifact/go.sum b/service/codeartifact/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/codeartifact/go.sum +++ b/service/codeartifact/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/codebuild/go.sum b/service/codebuild/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/codebuild/go.sum +++ b/service/codebuild/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/codecatalyst/go.sum b/service/codecatalyst/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/codecatalyst/go.sum +++ b/service/codecatalyst/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/codecommit/go.sum b/service/codecommit/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/codecommit/go.sum +++ b/service/codecommit/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/codedeploy/go.sum b/service/codedeploy/go.sum index 86f14bae528..b03fbb7a350 100644 --- a/service/codedeploy/go.sum +++ b/service/codedeploy/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/codeguruprofiler/go.sum b/service/codeguruprofiler/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/codeguruprofiler/go.sum +++ b/service/codeguruprofiler/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/codegurureviewer/go.sum b/service/codegurureviewer/go.sum index 86f14bae528..b03fbb7a350 100644 --- a/service/codegurureviewer/go.sum +++ b/service/codegurureviewer/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/codegurusecurity/go.sum b/service/codegurusecurity/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/codegurusecurity/go.sum +++ b/service/codegurusecurity/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/codepipeline/go.sum b/service/codepipeline/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/codepipeline/go.sum +++ b/service/codepipeline/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/codestar/go.sum b/service/codestar/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/codestar/go.sum +++ b/service/codestar/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/codestarconnections/go.sum b/service/codestarconnections/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/codestarconnections/go.sum +++ b/service/codestarconnections/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/codestarnotifications/go.sum b/service/codestarnotifications/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/codestarnotifications/go.sum +++ b/service/codestarnotifications/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/cognitoidentity/go.sum b/service/cognitoidentity/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/cognitoidentity/go.sum +++ b/service/cognitoidentity/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/cognitoidentityprovider/go.sum b/service/cognitoidentityprovider/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/cognitoidentityprovider/go.sum +++ b/service/cognitoidentityprovider/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/cognitosync/go.sum b/service/cognitosync/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/cognitosync/go.sum +++ b/service/cognitosync/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/comprehend/go.sum b/service/comprehend/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/comprehend/go.sum +++ b/service/comprehend/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/comprehendmedical/go.sum b/service/comprehendmedical/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/comprehendmedical/go.sum +++ b/service/comprehendmedical/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/computeoptimizer/go.sum b/service/computeoptimizer/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/computeoptimizer/go.sum +++ b/service/computeoptimizer/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/configservice/go.sum b/service/configservice/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/configservice/go.sum +++ b/service/configservice/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/connect/go.sum b/service/connect/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/connect/go.sum +++ b/service/connect/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/connectcampaigns/go.sum b/service/connectcampaigns/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/connectcampaigns/go.sum +++ b/service/connectcampaigns/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/connectcases/go.sum b/service/connectcases/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/connectcases/go.sum +++ b/service/connectcases/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/connectcontactlens/go.sum b/service/connectcontactlens/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/connectcontactlens/go.sum +++ b/service/connectcontactlens/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/connectparticipant/go.sum b/service/connectparticipant/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/connectparticipant/go.sum +++ b/service/connectparticipant/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/controltower/go.sum b/service/controltower/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/controltower/go.sum +++ b/service/controltower/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/costandusagereportservice/go.sum b/service/costandusagereportservice/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/costandusagereportservice/go.sum +++ b/service/costandusagereportservice/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/costexplorer/go.sum b/service/costexplorer/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/costexplorer/go.sum +++ b/service/costexplorer/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/customerprofiles/go.sum b/service/customerprofiles/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/customerprofiles/go.sum +++ b/service/customerprofiles/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/databasemigrationservice/go.sum b/service/databasemigrationservice/go.sum index 86f14bae528..b03fbb7a350 100644 --- a/service/databasemigrationservice/go.sum +++ b/service/databasemigrationservice/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/databrew/go.sum b/service/databrew/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/databrew/go.sum +++ b/service/databrew/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/dataexchange/go.sum b/service/dataexchange/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/dataexchange/go.sum +++ b/service/dataexchange/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/datapipeline/go.sum b/service/datapipeline/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/datapipeline/go.sum +++ b/service/datapipeline/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/datasync/go.sum b/service/datasync/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/datasync/go.sum +++ b/service/datasync/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/dax/go.sum b/service/dax/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/dax/go.sum +++ b/service/dax/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/detective/go.sum b/service/detective/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/detective/go.sum +++ b/service/detective/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/devicefarm/go.sum b/service/devicefarm/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/devicefarm/go.sum +++ b/service/devicefarm/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/devopsguru/go.sum b/service/devopsguru/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/devopsguru/go.sum +++ b/service/devopsguru/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/directconnect/go.sum b/service/directconnect/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/directconnect/go.sum +++ b/service/directconnect/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/directoryservice/go.sum b/service/directoryservice/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/directoryservice/go.sum +++ b/service/directoryservice/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/dlm/go.sum b/service/dlm/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/dlm/go.sum +++ b/service/dlm/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/docdb/go.sum b/service/docdb/go.sum index 86f14bae528..b03fbb7a350 100644 --- a/service/docdb/go.sum +++ b/service/docdb/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/docdbelastic/go.sum b/service/docdbelastic/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/docdbelastic/go.sum +++ b/service/docdbelastic/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/drs/go.sum b/service/drs/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/drs/go.sum +++ b/service/drs/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/dynamodb/go.sum b/service/dynamodb/go.sum index 86f14bae528..b03fbb7a350 100644 --- a/service/dynamodb/go.sum +++ b/service/dynamodb/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/dynamodbstreams/go.sum b/service/dynamodbstreams/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/dynamodbstreams/go.sum +++ b/service/dynamodbstreams/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/ebs/go.sum b/service/ebs/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/ebs/go.sum +++ b/service/ebs/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/ec2/go.sum b/service/ec2/go.sum index 86f14bae528..b03fbb7a350 100644 --- a/service/ec2/go.sum +++ b/service/ec2/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/ec2instanceconnect/go.sum b/service/ec2instanceconnect/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/ec2instanceconnect/go.sum +++ b/service/ec2instanceconnect/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/ecr/go.sum b/service/ecr/go.sum index 86f14bae528..b03fbb7a350 100644 --- a/service/ecr/go.sum +++ b/service/ecr/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/ecrpublic/go.sum b/service/ecrpublic/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/ecrpublic/go.sum +++ b/service/ecrpublic/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/ecs/go.sum b/service/ecs/go.sum index 86f14bae528..b03fbb7a350 100644 --- a/service/ecs/go.sum +++ b/service/ecs/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/efs/go.sum b/service/efs/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/efs/go.sum +++ b/service/efs/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/eks/go.sum b/service/eks/go.sum index 86f14bae528..b03fbb7a350 100644 --- a/service/eks/go.sum +++ b/service/eks/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/elasticache/go.sum b/service/elasticache/go.sum index 86f14bae528..b03fbb7a350 100644 --- a/service/elasticache/go.sum +++ b/service/elasticache/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/elasticbeanstalk/go.sum b/service/elasticbeanstalk/go.sum index 86f14bae528..b03fbb7a350 100644 --- a/service/elasticbeanstalk/go.sum +++ b/service/elasticbeanstalk/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/elasticinference/go.sum b/service/elasticinference/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/elasticinference/go.sum +++ b/service/elasticinference/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/elasticloadbalancing/go.sum b/service/elasticloadbalancing/go.sum index 86f14bae528..b03fbb7a350 100644 --- a/service/elasticloadbalancing/go.sum +++ b/service/elasticloadbalancing/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/elasticloadbalancingv2/go.sum b/service/elasticloadbalancingv2/go.sum index 86f14bae528..b03fbb7a350 100644 --- a/service/elasticloadbalancingv2/go.sum +++ b/service/elasticloadbalancingv2/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/elasticsearchservice/go.sum b/service/elasticsearchservice/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/elasticsearchservice/go.sum +++ b/service/elasticsearchservice/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/elastictranscoder/go.sum b/service/elastictranscoder/go.sum index 86f14bae528..b03fbb7a350 100644 --- a/service/elastictranscoder/go.sum +++ b/service/elastictranscoder/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/emr/go.sum b/service/emr/go.sum index 86f14bae528..b03fbb7a350 100644 --- a/service/emr/go.sum +++ b/service/emr/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/emrcontainers/go.sum b/service/emrcontainers/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/emrcontainers/go.sum +++ b/service/emrcontainers/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/emrserverless/go.sum b/service/emrserverless/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/emrserverless/go.sum +++ b/service/emrserverless/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/entityresolution/go.sum b/service/entityresolution/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/entityresolution/go.sum +++ b/service/entityresolution/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/eventbridge/go.sum b/service/eventbridge/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/eventbridge/go.sum +++ b/service/eventbridge/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/evidently/go.sum b/service/evidently/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/evidently/go.sum +++ b/service/evidently/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/finspace/go.sum b/service/finspace/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/finspace/go.sum +++ b/service/finspace/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/finspacedata/go.sum b/service/finspacedata/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/finspacedata/go.sum +++ b/service/finspacedata/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/firehose/go.sum b/service/firehose/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/firehose/go.sum +++ b/service/firehose/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/fis/go.sum b/service/fis/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/fis/go.sum +++ b/service/fis/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/fms/go.sum b/service/fms/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/fms/go.sum +++ b/service/fms/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/forecast/go.sum b/service/forecast/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/forecast/go.sum +++ b/service/forecast/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/forecastquery/go.sum b/service/forecastquery/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/forecastquery/go.sum +++ b/service/forecastquery/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/frauddetector/go.sum b/service/frauddetector/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/frauddetector/go.sum +++ b/service/frauddetector/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/fsx/go.sum b/service/fsx/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/fsx/go.sum +++ b/service/fsx/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/gamelift/go.sum b/service/gamelift/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/gamelift/go.sum +++ b/service/gamelift/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/gamesparks/go.sum b/service/gamesparks/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/gamesparks/go.sum +++ b/service/gamesparks/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/glacier/go.sum b/service/glacier/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/glacier/go.sum +++ b/service/glacier/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/globalaccelerator/go.sum b/service/globalaccelerator/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/globalaccelerator/go.sum +++ b/service/globalaccelerator/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/glue/go.sum b/service/glue/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/glue/go.sum +++ b/service/glue/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/grafana/go.sum b/service/grafana/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/grafana/go.sum +++ b/service/grafana/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/greengrass/go.sum b/service/greengrass/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/greengrass/go.sum +++ b/service/greengrass/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/greengrassv2/go.sum b/service/greengrassv2/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/greengrassv2/go.sum +++ b/service/greengrassv2/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/groundstation/go.sum b/service/groundstation/go.sum index 86f14bae528..b03fbb7a350 100644 --- a/service/groundstation/go.sum +++ b/service/groundstation/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/guardduty/go.sum b/service/guardduty/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/guardduty/go.sum +++ b/service/guardduty/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/health/go.sum b/service/health/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/health/go.sum +++ b/service/health/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/healthlake/go.sum b/service/healthlake/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/healthlake/go.sum +++ b/service/healthlake/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/honeycode/go.sum b/service/honeycode/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/honeycode/go.sum +++ b/service/honeycode/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iam/go.sum b/service/iam/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/iam/go.sum +++ b/service/iam/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/identitystore/go.sum b/service/identitystore/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/identitystore/go.sum +++ b/service/identitystore/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/imagebuilder/go.sum b/service/imagebuilder/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/imagebuilder/go.sum +++ b/service/imagebuilder/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/inspector/go.sum b/service/inspector/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/inspector/go.sum +++ b/service/inspector/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/inspector2/go.sum b/service/inspector2/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/inspector2/go.sum +++ b/service/inspector2/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/internal/accept-encoding/go.sum b/service/internal/accept-encoding/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/internal/accept-encoding/go.sum +++ b/service/internal/accept-encoding/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/internal/benchmark/go.sum b/service/internal/benchmark/go.sum index d10cf98bfba..80b274f1485 100644 --- a/service/internal/benchmark/go.sum +++ b/service/internal/benchmark/go.sum @@ -1,7 +1,5 @@ github.com/aws/aws-sdk-go v1.44.28 h1:h/OAqEqY18wq//v6h4GNPMmCkxuzSDrWuGyrvSiRqf4= github.com/aws/aws-sdk-go v1.44.28/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo= -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/internal/checksum/go.sum b/service/internal/checksum/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/internal/checksum/go.sum +++ b/service/internal/checksum/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/internal/endpoint-discovery/go.sum b/service/internal/endpoint-discovery/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/internal/endpoint-discovery/go.sum +++ b/service/internal/endpoint-discovery/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/internal/eventstreamtesting/go.sum b/service/internal/eventstreamtesting/go.sum index f7edf0dd148..1514953fd86 100644 --- a/service/internal/eventstreamtesting/go.sum +++ b/service/internal/eventstreamtesting/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/internal/integrationtest/go.sum b/service/internal/integrationtest/go.sum index 86f14bae528..b03fbb7a350 100644 --- a/service/internal/integrationtest/go.sum +++ b/service/internal/integrationtest/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/internal/presigned-url/go.sum b/service/internal/presigned-url/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/internal/presigned-url/go.sum +++ b/service/internal/presigned-url/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/internal/s3shared/go.sum b/service/internal/s3shared/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/internal/s3shared/go.sum +++ b/service/internal/s3shared/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/internetmonitor/go.sum b/service/internetmonitor/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/internetmonitor/go.sum +++ b/service/internetmonitor/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iot/go.sum b/service/iot/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/iot/go.sum +++ b/service/iot/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iot1clickdevicesservice/go.sum b/service/iot1clickdevicesservice/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/iot1clickdevicesservice/go.sum +++ b/service/iot1clickdevicesservice/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iot1clickprojects/go.sum b/service/iot1clickprojects/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/iot1clickprojects/go.sum +++ b/service/iot1clickprojects/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iotanalytics/go.sum b/service/iotanalytics/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/iotanalytics/go.sum +++ b/service/iotanalytics/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iotdataplane/go.sum b/service/iotdataplane/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/iotdataplane/go.sum +++ b/service/iotdataplane/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iotdeviceadvisor/go.sum b/service/iotdeviceadvisor/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/iotdeviceadvisor/go.sum +++ b/service/iotdeviceadvisor/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iotevents/go.sum b/service/iotevents/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/iotevents/go.sum +++ b/service/iotevents/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/ioteventsdata/go.sum b/service/ioteventsdata/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/ioteventsdata/go.sum +++ b/service/ioteventsdata/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iotfleethub/go.sum b/service/iotfleethub/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/iotfleethub/go.sum +++ b/service/iotfleethub/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iotfleetwise/go.sum b/service/iotfleetwise/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/iotfleetwise/go.sum +++ b/service/iotfleetwise/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iotjobsdataplane/go.sum b/service/iotjobsdataplane/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/iotjobsdataplane/go.sum +++ b/service/iotjobsdataplane/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iotroborunner/go.sum b/service/iotroborunner/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/iotroborunner/go.sum +++ b/service/iotroborunner/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iotsecuretunneling/go.sum b/service/iotsecuretunneling/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/iotsecuretunneling/go.sum +++ b/service/iotsecuretunneling/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iotsitewise/go.sum b/service/iotsitewise/go.sum index 86f14bae528..b03fbb7a350 100644 --- a/service/iotsitewise/go.sum +++ b/service/iotsitewise/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/iotthingsgraph/go.sum b/service/iotthingsgraph/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/iotthingsgraph/go.sum +++ b/service/iotthingsgraph/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iottwinmaker/go.sum b/service/iottwinmaker/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/iottwinmaker/go.sum +++ b/service/iottwinmaker/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iotwireless/go.sum b/service/iotwireless/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/iotwireless/go.sum +++ b/service/iotwireless/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/ivs/go.sum b/service/ivs/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/ivs/go.sum +++ b/service/ivs/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/ivschat/go.sum b/service/ivschat/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/ivschat/go.sum +++ b/service/ivschat/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/ivsrealtime/go.sum b/service/ivsrealtime/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/ivsrealtime/go.sum +++ b/service/ivsrealtime/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/kafka/go.sum b/service/kafka/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/kafka/go.sum +++ b/service/kafka/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/kafkaconnect/go.sum b/service/kafkaconnect/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/kafkaconnect/go.sum +++ b/service/kafkaconnect/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/kendra/go.sum b/service/kendra/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/kendra/go.sum +++ b/service/kendra/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/kendraranking/go.sum b/service/kendraranking/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/kendraranking/go.sum +++ b/service/kendraranking/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/keyspaces/go.sum b/service/keyspaces/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/keyspaces/go.sum +++ b/service/keyspaces/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/kinesis/go.sum b/service/kinesis/go.sum index 86f14bae528..b03fbb7a350 100644 --- a/service/kinesis/go.sum +++ b/service/kinesis/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/kinesis/internal/testing/go.sum b/service/kinesis/internal/testing/go.sum index a7b46b94f6d..4be5eca6dca 100644 --- a/service/kinesis/internal/testing/go.sum +++ b/service/kinesis/internal/testing/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/kinesisanalytics/go.sum b/service/kinesisanalytics/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/kinesisanalytics/go.sum +++ b/service/kinesisanalytics/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/kinesisanalyticsv2/go.sum b/service/kinesisanalyticsv2/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/kinesisanalyticsv2/go.sum +++ b/service/kinesisanalyticsv2/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/kinesisvideo/go.sum b/service/kinesisvideo/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/kinesisvideo/go.sum +++ b/service/kinesisvideo/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/kinesisvideoarchivedmedia/go.sum b/service/kinesisvideoarchivedmedia/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/kinesisvideoarchivedmedia/go.sum +++ b/service/kinesisvideoarchivedmedia/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/kinesisvideomedia/go.sum b/service/kinesisvideomedia/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/kinesisvideomedia/go.sum +++ b/service/kinesisvideomedia/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/kinesisvideosignaling/go.sum b/service/kinesisvideosignaling/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/kinesisvideosignaling/go.sum +++ b/service/kinesisvideosignaling/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/kinesisvideowebrtcstorage/go.sum b/service/kinesisvideowebrtcstorage/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/kinesisvideowebrtcstorage/go.sum +++ b/service/kinesisvideowebrtcstorage/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/kms/go.sum b/service/kms/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/kms/go.sum +++ b/service/kms/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/lakeformation/go.sum b/service/lakeformation/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/lakeformation/go.sum +++ b/service/lakeformation/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/lambda/go.sum b/service/lambda/go.sum index 86f14bae528..b03fbb7a350 100644 --- a/service/lambda/go.sum +++ b/service/lambda/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/lexmodelbuildingservice/go.sum b/service/lexmodelbuildingservice/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/lexmodelbuildingservice/go.sum +++ b/service/lexmodelbuildingservice/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/lexmodelsv2/go.sum b/service/lexmodelsv2/go.sum index 86f14bae528..b03fbb7a350 100644 --- a/service/lexmodelsv2/go.sum +++ b/service/lexmodelsv2/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/lexruntimeservice/go.sum b/service/lexruntimeservice/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/lexruntimeservice/go.sum +++ b/service/lexruntimeservice/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/lexruntimev2/go.sum b/service/lexruntimev2/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/lexruntimev2/go.sum +++ b/service/lexruntimev2/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/licensemanager/go.sum b/service/licensemanager/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/licensemanager/go.sum +++ b/service/licensemanager/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/licensemanagerlinuxsubscriptions/go.sum b/service/licensemanagerlinuxsubscriptions/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/licensemanagerlinuxsubscriptions/go.sum +++ b/service/licensemanagerlinuxsubscriptions/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/licensemanagerusersubscriptions/go.sum b/service/licensemanagerusersubscriptions/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/licensemanagerusersubscriptions/go.sum +++ b/service/licensemanagerusersubscriptions/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/lightsail/go.sum b/service/lightsail/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/lightsail/go.sum +++ b/service/lightsail/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/location/go.sum b/service/location/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/location/go.sum +++ b/service/location/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/lookoutequipment/go.sum b/service/lookoutequipment/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/lookoutequipment/go.sum +++ b/service/lookoutequipment/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/lookoutmetrics/go.sum b/service/lookoutmetrics/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/lookoutmetrics/go.sum +++ b/service/lookoutmetrics/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/lookoutvision/go.sum b/service/lookoutvision/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/lookoutvision/go.sum +++ b/service/lookoutvision/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/m2/go.sum b/service/m2/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/m2/go.sum +++ b/service/m2/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/machinelearning/go.sum b/service/machinelearning/go.sum index 86f14bae528..b03fbb7a350 100644 --- a/service/machinelearning/go.sum +++ b/service/machinelearning/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/macie/go.sum b/service/macie/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/macie/go.sum +++ b/service/macie/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/macie2/go.sum b/service/macie2/go.sum index 86f14bae528..b03fbb7a350 100644 --- a/service/macie2/go.sum +++ b/service/macie2/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/managedblockchain/go.sum b/service/managedblockchain/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/managedblockchain/go.sum +++ b/service/managedblockchain/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/managedblockchainquery/go.sum b/service/managedblockchainquery/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/managedblockchainquery/go.sum +++ b/service/managedblockchainquery/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/marketplacecatalog/go.sum b/service/marketplacecatalog/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/marketplacecatalog/go.sum +++ b/service/marketplacecatalog/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/marketplacecommerceanalytics/go.sum b/service/marketplacecommerceanalytics/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/marketplacecommerceanalytics/go.sum +++ b/service/marketplacecommerceanalytics/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/marketplaceentitlementservice/go.sum b/service/marketplaceentitlementservice/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/marketplaceentitlementservice/go.sum +++ b/service/marketplaceentitlementservice/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/marketplacemetering/go.sum b/service/marketplacemetering/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/marketplacemetering/go.sum +++ b/service/marketplacemetering/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/mediaconnect/go.sum b/service/mediaconnect/go.sum index 86f14bae528..b03fbb7a350 100644 --- a/service/mediaconnect/go.sum +++ b/service/mediaconnect/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/mediaconvert/go.sum b/service/mediaconvert/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/mediaconvert/go.sum +++ b/service/mediaconvert/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/medialive/go.sum b/service/medialive/go.sum index 86f14bae528..b03fbb7a350 100644 --- a/service/medialive/go.sum +++ b/service/medialive/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/mediapackage/go.sum b/service/mediapackage/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/mediapackage/go.sum +++ b/service/mediapackage/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/mediapackagev2/go.sum b/service/mediapackagev2/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/mediapackagev2/go.sum +++ b/service/mediapackagev2/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/mediapackagevod/go.sum b/service/mediapackagevod/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/mediapackagevod/go.sum +++ b/service/mediapackagevod/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/mediastore/go.sum b/service/mediastore/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/mediastore/go.sum +++ b/service/mediastore/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/mediastoredata/go.sum b/service/mediastoredata/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/mediastoredata/go.sum +++ b/service/mediastoredata/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/mediatailor/go.sum b/service/mediatailor/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/mediatailor/go.sum +++ b/service/mediatailor/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/medicalimaging/go.sum b/service/medicalimaging/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/medicalimaging/go.sum +++ b/service/medicalimaging/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/memorydb/go.sum b/service/memorydb/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/memorydb/go.sum +++ b/service/memorydb/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/mgn/go.sum b/service/mgn/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/mgn/go.sum +++ b/service/mgn/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/migrationhub/go.sum b/service/migrationhub/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/migrationhub/go.sum +++ b/service/migrationhub/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/migrationhubconfig/go.sum b/service/migrationhubconfig/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/migrationhubconfig/go.sum +++ b/service/migrationhubconfig/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/migrationhuborchestrator/go.sum b/service/migrationhuborchestrator/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/migrationhuborchestrator/go.sum +++ b/service/migrationhuborchestrator/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/migrationhubrefactorspaces/go.sum b/service/migrationhubrefactorspaces/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/migrationhubrefactorspaces/go.sum +++ b/service/migrationhubrefactorspaces/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/migrationhubstrategy/go.sum b/service/migrationhubstrategy/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/migrationhubstrategy/go.sum +++ b/service/migrationhubstrategy/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/mobile/go.sum b/service/mobile/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/mobile/go.sum +++ b/service/mobile/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/mq/go.sum b/service/mq/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/mq/go.sum +++ b/service/mq/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/mturk/go.sum b/service/mturk/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/mturk/go.sum +++ b/service/mturk/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/mwaa/go.sum b/service/mwaa/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/mwaa/go.sum +++ b/service/mwaa/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/neptune/go.sum b/service/neptune/go.sum index 86f14bae528..b03fbb7a350 100644 --- a/service/neptune/go.sum +++ b/service/neptune/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/networkfirewall/go.sum b/service/networkfirewall/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/networkfirewall/go.sum +++ b/service/networkfirewall/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/networkmanager/go.sum b/service/networkmanager/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/networkmanager/go.sum +++ b/service/networkmanager/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/nimble/go.sum b/service/nimble/go.sum index 86f14bae528..b03fbb7a350 100644 --- a/service/nimble/go.sum +++ b/service/nimble/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/oam/go.sum b/service/oam/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/oam/go.sum +++ b/service/oam/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/omics/go.sum b/service/omics/go.sum index 86f14bae528..b03fbb7a350 100644 --- a/service/omics/go.sum +++ b/service/omics/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/opensearch/go.sum b/service/opensearch/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/opensearch/go.sum +++ b/service/opensearch/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/opensearchserverless/go.sum b/service/opensearchserverless/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/opensearchserverless/go.sum +++ b/service/opensearchserverless/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/opsworks/go.sum b/service/opsworks/go.sum index 86f14bae528..b03fbb7a350 100644 --- a/service/opsworks/go.sum +++ b/service/opsworks/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/opsworkscm/go.sum b/service/opsworkscm/go.sum index 86f14bae528..b03fbb7a350 100644 --- a/service/opsworkscm/go.sum +++ b/service/opsworkscm/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/organizations/go.sum b/service/organizations/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/organizations/go.sum +++ b/service/organizations/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/osis/go.sum b/service/osis/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/osis/go.sum +++ b/service/osis/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/outposts/go.sum b/service/outposts/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/outposts/go.sum +++ b/service/outposts/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/panorama/go.sum b/service/panorama/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/panorama/go.sum +++ b/service/panorama/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/paymentcryptography/go.sum b/service/paymentcryptography/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/paymentcryptography/go.sum +++ b/service/paymentcryptography/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/paymentcryptographydata/go.sum b/service/paymentcryptographydata/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/paymentcryptographydata/go.sum +++ b/service/paymentcryptographydata/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/personalize/go.sum b/service/personalize/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/personalize/go.sum +++ b/service/personalize/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/personalizeevents/go.sum b/service/personalizeevents/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/personalizeevents/go.sum +++ b/service/personalizeevents/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/personalizeruntime/go.sum b/service/personalizeruntime/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/personalizeruntime/go.sum +++ b/service/personalizeruntime/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/pi/go.sum b/service/pi/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/pi/go.sum +++ b/service/pi/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/pinpoint/go.sum b/service/pinpoint/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/pinpoint/go.sum +++ b/service/pinpoint/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/pinpointemail/go.sum b/service/pinpointemail/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/pinpointemail/go.sum +++ b/service/pinpointemail/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/pinpointsmsvoice/go.sum b/service/pinpointsmsvoice/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/pinpointsmsvoice/go.sum +++ b/service/pinpointsmsvoice/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/pinpointsmsvoicev2/go.sum b/service/pinpointsmsvoicev2/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/pinpointsmsvoicev2/go.sum +++ b/service/pinpointsmsvoicev2/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/pipes/go.sum b/service/pipes/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/pipes/go.sum +++ b/service/pipes/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/polly/go.sum b/service/polly/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/polly/go.sum +++ b/service/polly/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/pricing/go.sum b/service/pricing/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/pricing/go.sum +++ b/service/pricing/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/privatenetworks/go.sum b/service/privatenetworks/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/privatenetworks/go.sum +++ b/service/privatenetworks/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/proton/go.sum b/service/proton/go.sum index 86f14bae528..b03fbb7a350 100644 --- a/service/proton/go.sum +++ b/service/proton/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/qldb/go.sum b/service/qldb/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/qldb/go.sum +++ b/service/qldb/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/qldbsession/go.sum b/service/qldbsession/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/qldbsession/go.sum +++ b/service/qldbsession/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/quicksight/go.sum b/service/quicksight/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/quicksight/go.sum +++ b/service/quicksight/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/ram/go.sum b/service/ram/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/ram/go.sum +++ b/service/ram/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/rbin/go.sum b/service/rbin/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/rbin/go.sum +++ b/service/rbin/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/rds/go.sum b/service/rds/go.sum index 86f14bae528..b03fbb7a350 100644 --- a/service/rds/go.sum +++ b/service/rds/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/rdsdata/go.sum b/service/rdsdata/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/rdsdata/go.sum +++ b/service/rdsdata/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/redshift/go.sum b/service/redshift/go.sum index 86f14bae528..b03fbb7a350 100644 --- a/service/redshift/go.sum +++ b/service/redshift/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/redshiftdata/go.sum b/service/redshiftdata/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/redshiftdata/go.sum +++ b/service/redshiftdata/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/redshiftserverless/go.sum b/service/redshiftserverless/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/redshiftserverless/go.sum +++ b/service/redshiftserverless/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/rekognition/go.sum b/service/rekognition/go.sum index 86f14bae528..b03fbb7a350 100644 --- a/service/rekognition/go.sum +++ b/service/rekognition/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/resiliencehub/go.sum b/service/resiliencehub/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/resiliencehub/go.sum +++ b/service/resiliencehub/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/resourceexplorer2/go.sum b/service/resourceexplorer2/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/resourceexplorer2/go.sum +++ b/service/resourceexplorer2/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/resourcegroups/go.sum b/service/resourcegroups/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/resourcegroups/go.sum +++ b/service/resourcegroups/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/resourcegroupstaggingapi/go.sum b/service/resourcegroupstaggingapi/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/resourcegroupstaggingapi/go.sum +++ b/service/resourcegroupstaggingapi/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/robomaker/go.sum b/service/robomaker/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/robomaker/go.sum +++ b/service/robomaker/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/rolesanywhere/go.sum b/service/rolesanywhere/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/rolesanywhere/go.sum +++ b/service/rolesanywhere/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/route53/go.sum b/service/route53/go.sum index 86f14bae528..b03fbb7a350 100644 --- a/service/route53/go.sum +++ b/service/route53/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/route53domains/go.sum b/service/route53domains/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/route53domains/go.sum +++ b/service/route53domains/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/route53recoverycluster/go.sum b/service/route53recoverycluster/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/route53recoverycluster/go.sum +++ b/service/route53recoverycluster/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/route53recoverycontrolconfig/go.sum b/service/route53recoverycontrolconfig/go.sum index 86f14bae528..b03fbb7a350 100644 --- a/service/route53recoverycontrolconfig/go.sum +++ b/service/route53recoverycontrolconfig/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/route53recoveryreadiness/go.sum b/service/route53recoveryreadiness/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/route53recoveryreadiness/go.sum +++ b/service/route53recoveryreadiness/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/route53resolver/go.sum b/service/route53resolver/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/route53resolver/go.sum +++ b/service/route53resolver/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/rum/go.sum b/service/rum/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/rum/go.sum +++ b/service/rum/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/s3/go.sum b/service/s3/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/s3/go.sum +++ b/service/s3/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/s3/internal/configtesting/go.sum b/service/s3/internal/configtesting/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/s3/internal/configtesting/go.sum +++ b/service/s3/internal/configtesting/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/s3control/go.sum b/service/s3control/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/s3control/go.sum +++ b/service/s3control/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/s3outposts/go.sum b/service/s3outposts/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/s3outposts/go.sum +++ b/service/s3outposts/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/sagemaker/go.sum b/service/sagemaker/go.sum index 86f14bae528..b03fbb7a350 100644 --- a/service/sagemaker/go.sum +++ b/service/sagemaker/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/sagemakera2iruntime/go.sum b/service/sagemakera2iruntime/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/sagemakera2iruntime/go.sum +++ b/service/sagemakera2iruntime/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/sagemakeredge/go.sum b/service/sagemakeredge/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/sagemakeredge/go.sum +++ b/service/sagemakeredge/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/sagemakerfeaturestoreruntime/go.sum b/service/sagemakerfeaturestoreruntime/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/sagemakerfeaturestoreruntime/go.sum +++ b/service/sagemakerfeaturestoreruntime/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/sagemakergeospatial/go.sum b/service/sagemakergeospatial/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/sagemakergeospatial/go.sum +++ b/service/sagemakergeospatial/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/sagemakermetrics/go.sum b/service/sagemakermetrics/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/sagemakermetrics/go.sum +++ b/service/sagemakermetrics/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/sagemakerruntime/go.sum b/service/sagemakerruntime/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/sagemakerruntime/go.sum +++ b/service/sagemakerruntime/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/savingsplans/go.sum b/service/savingsplans/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/savingsplans/go.sum +++ b/service/savingsplans/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/scheduler/go.sum b/service/scheduler/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/scheduler/go.sum +++ b/service/scheduler/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/schemas/go.sum b/service/schemas/go.sum index 86f14bae528..b03fbb7a350 100644 --- a/service/schemas/go.sum +++ b/service/schemas/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/secretsmanager/go.sum b/service/secretsmanager/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/secretsmanager/go.sum +++ b/service/secretsmanager/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/securityhub/go.sum b/service/securityhub/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/securityhub/go.sum +++ b/service/securityhub/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/securitylake/go.sum b/service/securitylake/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/securitylake/go.sum +++ b/service/securitylake/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/serverlessapplicationrepository/go.sum b/service/serverlessapplicationrepository/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/serverlessapplicationrepository/go.sum +++ b/service/serverlessapplicationrepository/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/servicecatalog/go.sum b/service/servicecatalog/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/servicecatalog/go.sum +++ b/service/servicecatalog/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/servicecatalogappregistry/go.sum b/service/servicecatalogappregistry/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/servicecatalogappregistry/go.sum +++ b/service/servicecatalogappregistry/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/servicediscovery/go.sum b/service/servicediscovery/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/servicediscovery/go.sum +++ b/service/servicediscovery/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/servicequotas/go.sum b/service/servicequotas/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/servicequotas/go.sum +++ b/service/servicequotas/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/ses/go.sum b/service/ses/go.sum index 86f14bae528..b03fbb7a350 100644 --- a/service/ses/go.sum +++ b/service/ses/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/sesv2/go.sum b/service/sesv2/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/sesv2/go.sum +++ b/service/sesv2/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/sfn/go.sum b/service/sfn/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/sfn/go.sum +++ b/service/sfn/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/shield/go.sum b/service/shield/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/shield/go.sum +++ b/service/shield/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/signer/go.sum b/service/signer/go.sum index 86f14bae528..b03fbb7a350 100644 --- a/service/signer/go.sum +++ b/service/signer/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/simspaceweaver/go.sum b/service/simspaceweaver/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/simspaceweaver/go.sum +++ b/service/simspaceweaver/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/sms/go.sum b/service/sms/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/sms/go.sum +++ b/service/sms/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/snowball/go.sum b/service/snowball/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/snowball/go.sum +++ b/service/snowball/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/snowdevicemanagement/go.sum b/service/snowdevicemanagement/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/snowdevicemanagement/go.sum +++ b/service/snowdevicemanagement/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/sns/go.sum b/service/sns/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/sns/go.sum +++ b/service/sns/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/sqs/go.sum b/service/sqs/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/sqs/go.sum +++ b/service/sqs/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/ssm/go.sum b/service/ssm/go.sum index 86f14bae528..b03fbb7a350 100644 --- a/service/ssm/go.sum +++ b/service/ssm/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/ssmcontacts/go.sum b/service/ssmcontacts/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/ssmcontacts/go.sum +++ b/service/ssmcontacts/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/ssmincidents/go.sum b/service/ssmincidents/go.sum index 86f14bae528..b03fbb7a350 100644 --- a/service/ssmincidents/go.sum +++ b/service/ssmincidents/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/ssmsap/go.sum b/service/ssmsap/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/ssmsap/go.sum +++ b/service/ssmsap/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/sso/go.sum b/service/sso/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/sso/go.sum +++ b/service/sso/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/ssoadmin/go.sum b/service/ssoadmin/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/ssoadmin/go.sum +++ b/service/ssoadmin/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/ssooidc/go.sum b/service/ssooidc/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/ssooidc/go.sum +++ b/service/ssooidc/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/storagegateway/go.sum b/service/storagegateway/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/storagegateway/go.sum +++ b/service/storagegateway/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/sts/go.sum b/service/sts/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/sts/go.sum +++ b/service/sts/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/support/go.sum b/service/support/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/support/go.sum +++ b/service/support/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/supportapp/go.sum b/service/supportapp/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/supportapp/go.sum +++ b/service/supportapp/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/swf/go.sum b/service/swf/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/swf/go.sum +++ b/service/swf/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/synthetics/go.sum b/service/synthetics/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/synthetics/go.sum +++ b/service/synthetics/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/textract/go.sum b/service/textract/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/textract/go.sum +++ b/service/textract/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/timestreamquery/go.sum b/service/timestreamquery/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/timestreamquery/go.sum +++ b/service/timestreamquery/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/timestreamwrite/go.sum b/service/timestreamwrite/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/timestreamwrite/go.sum +++ b/service/timestreamwrite/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/tnb/go.sum b/service/tnb/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/tnb/go.sum +++ b/service/tnb/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/transcribe/go.sum b/service/transcribe/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/transcribe/go.sum +++ b/service/transcribe/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/transcribestreaming/go.sum b/service/transcribestreaming/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/transcribestreaming/go.sum +++ b/service/transcribestreaming/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/transcribestreaming/internal/testing/go.sum b/service/transcribestreaming/internal/testing/go.sum index f7edf0dd148..1514953fd86 100644 --- a/service/transcribestreaming/internal/testing/go.sum +++ b/service/transcribestreaming/internal/testing/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/transfer/go.sum b/service/transfer/go.sum index 86f14bae528..b03fbb7a350 100644 --- a/service/transfer/go.sum +++ b/service/transfer/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/translate/go.sum b/service/translate/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/translate/go.sum +++ b/service/translate/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/verifiedpermissions/go.sum b/service/verifiedpermissions/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/verifiedpermissions/go.sum +++ b/service/verifiedpermissions/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/voiceid/go.sum b/service/voiceid/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/voiceid/go.sum +++ b/service/voiceid/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/vpclattice/go.sum b/service/vpclattice/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/vpclattice/go.sum +++ b/service/vpclattice/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/waf/go.sum b/service/waf/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/waf/go.sum +++ b/service/waf/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/wafregional/go.sum b/service/wafregional/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/wafregional/go.sum +++ b/service/wafregional/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/wafv2/go.sum b/service/wafv2/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/wafv2/go.sum +++ b/service/wafv2/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/wellarchitected/go.sum b/service/wellarchitected/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/wellarchitected/go.sum +++ b/service/wellarchitected/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/wisdom/go.sum b/service/wisdom/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/wisdom/go.sum +++ b/service/wisdom/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/workdocs/go.sum b/service/workdocs/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/workdocs/go.sum +++ b/service/workdocs/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/worklink/go.sum b/service/worklink/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/worklink/go.sum +++ b/service/worklink/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/workmail/go.sum b/service/workmail/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/workmail/go.sum +++ b/service/workmail/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/workmailmessageflow/go.sum b/service/workmailmessageflow/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/workmailmessageflow/go.sum +++ b/service/workmailmessageflow/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/workspaces/go.sum b/service/workspaces/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/workspaces/go.sum +++ b/service/workspaces/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/workspacesweb/go.sum b/service/workspacesweb/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/workspacesweb/go.sum +++ b/service/workspacesweb/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/xray/go.sum b/service/xray/go.sum index b988e58d38d..975890afbc6 100644 --- a/service/xray/go.sum +++ b/service/xray/go.sum @@ -1,5 +1,3 @@ -github.com/aws/smithy-go v1.14.1 h1:EFKMUmH/iHMqLiwoEDx2rRjRQpI1YCn5jTysoaDujFs= -github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=