From 3800e5c7b5b0ffc6c3cccb094b897cfcc2ad5255 Mon Sep 17 00:00:00 2001 From: Luc Talatinian Date: Thu, 25 Jul 2024 14:26:52 -0400 Subject: [PATCH] remove integration test broken by cloudsearch service --- CHANGELOG_PENDING.md | 2 + private/model/api/smoke.go | 1 + service/cloudsearch/integ_test.go | 66 ------------------------------- 3 files changed, 3 insertions(+), 66 deletions(-) delete mode 100644 service/cloudsearch/integ_test.go diff --git a/CHANGELOG_PENDING.md b/CHANGELOG_PENDING.md index 8a1927a39ca..928ae6649f7 100644 --- a/CHANGELOG_PENDING.md +++ b/CHANGELOG_PENDING.md @@ -3,3 +3,5 @@ ### SDK Enhancements ### SDK Bugs +* Remove broken integration test. + * Remove integration test broken by cloudsearch service. diff --git a/private/model/api/smoke.go b/private/model/api/smoke.go index fd5e3ccd936..c53db9bd9d2 100644 --- a/private/model/api/smoke.go +++ b/private/model/api/smoke.go @@ -32,6 +32,7 @@ var smokeTestsCustomizations = map[string]func(*SmokeTestSuite) error{ "wafregional": wafRegionalSmokeTestCustomization, "iotdataplane": iotDataPlaneSmokeTestCustomization, "opsworks": removeSmokeTests, + "cloudsearch": removeSmokeTests, } func iotDataPlaneSmokeTestCustomization(suite *SmokeTestSuite) error { diff --git a/service/cloudsearch/integ_test.go b/service/cloudsearch/integ_test.go deleted file mode 100644 index fb57af16eaf..00000000000 --- a/service/cloudsearch/integ_test.go +++ /dev/null @@ -1,66 +0,0 @@ -// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. - -//go:build go1.16 && integration -// +build go1.16,integration - -package cloudsearch_test - -import ( - "context" - "testing" - "time" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/awserr" - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/awstesting/integration" - "github.com/aws/aws-sdk-go/service/cloudsearch" -) - -var _ aws.Config -var _ awserr.Error -var _ request.Request - -func TestInteg_00_DescribeDomains(t *testing.T) { - ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) - defer cancelFn() - - sess := integration.SessionWithDefaultRegion("us-west-2") - svc := cloudsearch.New(sess) - params := &cloudsearch.DescribeDomainsInput{} - _, err := svc.DescribeDomainsWithContext(ctx, params, func(r *request.Request) { - r.Handlers.Validate.RemoveByName("core.ValidateParametersHandler") - }) - if err != nil { - t.Errorf("expect no error, got %v", err) - } -} -func TestInteg_01_DescribeIndexFields(t *testing.T) { - ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) - defer cancelFn() - - sess := integration.SessionWithDefaultRegion("us-west-2") - svc := cloudsearch.New(sess) - params := &cloudsearch.DescribeIndexFieldsInput{ - DomainName: aws.String("fakedomain"), - } - _, err := svc.DescribeIndexFieldsWithContext(ctx, params, func(r *request.Request) { - r.Handlers.Validate.RemoveByName("core.ValidateParametersHandler") - }) - if err == nil { - t.Fatalf("expect request to fail") - } - aerr, ok := err.(awserr.RequestFailure) - if !ok { - t.Fatalf("expect awserr, was %T", err) - } - if len(aerr.Code()) == 0 { - t.Errorf("expect non-empty error code") - } - if len(aerr.Message()) == 0 { - t.Errorf("expect non-empty error message") - } - if v := aerr.Code(); v == request.ErrCodeSerialization { - t.Errorf("expect API error code got serialization failure") - } -}