Skip to content

Commit

Permalink
Merge pull request #18201 from hashicorp/t-apigatewayv2-errorcheck
Browse files Browse the repository at this point in the history
tests/apigatewayv2: Add ErrorCheck
  • Loading branch information
YakDriver authored Mar 18, 2021
2 parents a1acf91 + 90c2f46 commit b470cc4
Show file tree
Hide file tree
Showing 12 changed files with 75 additions and 0 deletions.
4 changes: 4 additions & 0 deletions aws/data_source_aws_apigatewayv2_apis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"fmt"
"testing"

"github.com/aws/aws-sdk-go/service/apigatewayv2"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
)
Expand All @@ -16,6 +17,7 @@ func TestAccAWSAPIGatewayV2ApisDataSource_Name(t *testing.T) {

resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, apigatewayv2.EndpointsID),
Providers: testAccProviders,
CheckDestroy: nil,
Steps: []resource.TestStep{
Expand All @@ -38,6 +40,7 @@ func TestAccAWSAPIGatewayV2ApisDataSource_ProtocolType(t *testing.T) {

resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, apigatewayv2.EndpointsID),
Providers: testAccProviders,
CheckDestroy: nil,
Steps: []resource.TestStep{
Expand All @@ -61,6 +64,7 @@ func TestAccAWSAPIGatewayV2ApisDataSource_Tags(t *testing.T) {

resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, apigatewayv2.EndpointsID),
Providers: testAccProviders,
CheckDestroy: nil,
Steps: []resource.TestStep{
Expand Down
12 changes: 12 additions & 0 deletions aws/resource_aws_apigatewayv2_api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ func TestAccAWSAPIGatewayV2Api_basicWebSocket(t *testing.T) {

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, apigatewayv2.EndpointsID),
Providers: testAccProviders,
CheckDestroy: testAccCheckAWSAPIGatewayV2ApiDestroy,
Steps: []resource.TestStep{
Expand Down Expand Up @@ -112,6 +113,7 @@ func TestAccAWSAPIGatewayV2Api_basicHttp(t *testing.T) {

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, apigatewayv2.EndpointsID),
Providers: testAccProviders,
CheckDestroy: testAccCheckAWSAPIGatewayV2ApiDestroy,
Steps: []resource.TestStep{
Expand Down Expand Up @@ -149,6 +151,7 @@ func TestAccAWSAPIGatewayV2Api_disappears(t *testing.T) {

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, apigatewayv2.EndpointsID),
Providers: testAccProviders,
CheckDestroy: testAccCheckAWSAPIGatewayV2ApiDestroy,
Steps: []resource.TestStep{
Expand All @@ -172,6 +175,7 @@ func TestAccAWSAPIGatewayV2Api_AllAttributesWebSocket(t *testing.T) {

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, apigatewayv2.EndpointsID),
Providers: testAccProviders,
CheckDestroy: testAccCheckAWSAPIGatewayV2ApiDestroy,
Steps: []resource.TestStep{
Expand Down Expand Up @@ -253,6 +257,7 @@ func TestAccAWSAPIGatewayV2Api_AllAttributesHttp(t *testing.T) {

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, apigatewayv2.EndpointsID),
Providers: testAccProviders,
CheckDestroy: testAccCheckAWSAPIGatewayV2ApiDestroy,
Steps: []resource.TestStep{
Expand Down Expand Up @@ -333,6 +338,7 @@ func TestAccAWSAPIGatewayV2Api_Openapi(t *testing.T) {

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, apigatewayv2.EndpointsID),
Providers: testAccProviders,
CheckDestroy: testAccCheckAWSAPIGatewayV2ApiDestroy,
Steps: []resource.TestStep{
Expand Down Expand Up @@ -379,6 +385,7 @@ func TestAccAWSAPIGatewayV2Api_Openapi_WithTags(t *testing.T) {

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, apigatewayv2.EndpointsID),
Providers: testAccProviders,
CheckDestroy: testAccCheckAWSAPIGatewayV2ApiDestroy,
Steps: []resource.TestStep{
Expand Down Expand Up @@ -423,6 +430,7 @@ func TestAccAWSAPIGatewayV2Api_Openapi_WithCorsConfiguration(t *testing.T) {

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, apigatewayv2.EndpointsID),
Providers: testAccProviders,
CheckDestroy: testAccCheckAWSAPIGatewayV2ApiDestroy,
Steps: []resource.TestStep{
Expand Down Expand Up @@ -479,6 +487,7 @@ func TestAccAWSAPIGatewayV2Api_OpenapiWithMoreFields(t *testing.T) {

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, apigatewayv2.EndpointsID),
Providers: testAccProviders,
CheckDestroy: testAccCheckAWSAPIGatewayV2ApiDestroy,
Steps: []resource.TestStep{
Expand Down Expand Up @@ -562,6 +571,7 @@ func TestAccAWSAPIGatewayV2Api_Tags(t *testing.T) {

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, apigatewayv2.EndpointsID),
Providers: testAccProviders,
CheckDestroy: testAccCheckAWSAPIGatewayV2ApiDestroy,
Steps: []resource.TestStep{
Expand Down Expand Up @@ -614,6 +624,7 @@ func TestAccAWSAPIGatewayV2Api_CorsConfiguration(t *testing.T) {

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, apigatewayv2.EndpointsID),
Providers: testAccProviders,
CheckDestroy: testAccCheckAWSAPIGatewayV2ApiDestroy,
Steps: []resource.TestStep{
Expand Down Expand Up @@ -704,6 +715,7 @@ func TestAccAWSAPIGatewayV2Api_QuickCreate(t *testing.T) {

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, apigatewayv2.EndpointsID),
Providers: testAccProviders,
CheckDestroy: testAccCheckAWSAPIGatewayV2ApiDestroy,
Steps: []resource.TestStep{
Expand Down
6 changes: 6 additions & 0 deletions aws/resource_aws_apigatewayv2_authorizer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ func TestAccAWSAPIGatewayV2Authorizer_basic(t *testing.T) {

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, apigatewayv2.EndpointsID),
Providers: testAccProviders,
CheckDestroy: testAccCheckAWSAPIGatewayV2AuthorizerDestroy,
Steps: []resource.TestStep{
Expand Down Expand Up @@ -56,6 +57,7 @@ func TestAccAWSAPIGatewayV2Authorizer_disappears(t *testing.T) {

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, apigatewayv2.EndpointsID),
Providers: testAccProviders,
CheckDestroy: testAccCheckAWSAPIGatewayV2AuthorizerDestroy,
Steps: []resource.TestStep{
Expand All @@ -81,6 +83,7 @@ func TestAccAWSAPIGatewayV2Authorizer_Credentials(t *testing.T) {

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, apigatewayv2.EndpointsID),
Providers: testAccProviders,
CheckDestroy: testAccCheckAWSAPIGatewayV2AuthorizerDestroy,
Steps: []resource.TestStep{
Expand Down Expand Up @@ -150,6 +153,7 @@ func TestAccAWSAPIGatewayV2Authorizer_JWT(t *testing.T) {

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, apigatewayv2.EndpointsID),
Providers: testAccProviders,
CheckDestroy: testAccCheckAWSAPIGatewayV2AuthorizerDestroy,
Steps: []resource.TestStep{
Expand Down Expand Up @@ -209,6 +213,7 @@ func TestAccAWSAPIGatewayV2Authorizer_HttpApiLambdaRequestAuthorizer_InitialMiss

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, apigatewayv2.EndpointsID),
Providers: testAccProviders,
CheckDestroy: testAccCheckAWSAPIGatewayV2AuthorizerDestroy,
Steps: []resource.TestStep{
Expand Down Expand Up @@ -281,6 +286,7 @@ func TestAccAWSAPIGatewayV2Authorizer_HttpApiLambdaRequestAuthorizer_InitialZero

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, apigatewayv2.EndpointsID),
Providers: testAccProviders,
CheckDestroy: testAccCheckAWSAPIGatewayV2AuthorizerDestroy,
Steps: []resource.TestStep{
Expand Down
3 changes: 3 additions & 0 deletions aws/resource_aws_apigatewayv2_deployment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ func TestAccAWSAPIGatewayV2Deployment_basic(t *testing.T) {

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, apigatewayv2.EndpointsID),
Providers: testAccProviders,
CheckDestroy: testAccCheckAWSAPIGatewayV2DeploymentDestroy,
Steps: []resource.TestStep{
Expand Down Expand Up @@ -56,6 +57,7 @@ func TestAccAWSAPIGatewayV2Deployment_disappears(t *testing.T) {

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, apigatewayv2.EndpointsID),
Providers: testAccProviders,
CheckDestroy: testAccCheckAWSAPIGatewayV2DeploymentDestroy,
Steps: []resource.TestStep{
Expand All @@ -79,6 +81,7 @@ func TestAccAWSAPIGatewayV2Deployment_Triggers(t *testing.T) {

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, apigatewayv2.EndpointsID),
Providers: testAccProviders,
CheckDestroy: testAccCheckAWSAPIGatewayV2DeploymentDestroy,
Steps: []resource.TestStep{
Expand Down
5 changes: 5 additions & 0 deletions aws/resource_aws_apigatewayv2_domain_name_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ func TestAccAWSAPIGatewayV2DomainName_basic(t *testing.T) {

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, apigatewayv2.EndpointsID),
Providers: testAccProviders,
CheckDestroy: testAccCheckAWSAPIGatewayV2DomainNameDestroy,
Steps: []resource.TestStep{
Expand Down Expand Up @@ -114,6 +115,7 @@ func TestAccAWSAPIGatewayV2DomainName_disappears(t *testing.T) {

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, apigatewayv2.EndpointsID),
Providers: testAccProviders,
CheckDestroy: testAccCheckAWSAPIGatewayV2DomainNameDestroy,
Steps: []resource.TestStep{
Expand All @@ -140,6 +142,7 @@ func TestAccAWSAPIGatewayV2DomainName_Tags(t *testing.T) {

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, apigatewayv2.EndpointsID),
Providers: testAccProviders,
CheckDestroy: testAccCheckAWSAPIGatewayV2DomainNameDestroy,
Steps: []resource.TestStep{
Expand Down Expand Up @@ -198,6 +201,7 @@ func TestAccAWSAPIGatewayV2DomainName_UpdateCertificate(t *testing.T) {

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, apigatewayv2.EndpointsID),
Providers: testAccProviders,
CheckDestroy: testAccCheckAWSAPIGatewayV2DomainNameDestroy,
Steps: []resource.TestStep{
Expand Down Expand Up @@ -272,6 +276,7 @@ func TestAccAWSAPIGatewayV2DomainName_MutualTlsAuthentication(t *testing.T) {

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, apigatewayv2.EndpointsID),
Providers: testAccProviders,
CheckDestroy: testAccCheckAWSAPIGatewayV2DomainNameDestroy,
Steps: []resource.TestStep{
Expand Down
3 changes: 3 additions & 0 deletions aws/resource_aws_apigatewayv2_integration_response_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ func TestAccAWSAPIGatewayV2IntegrationResponse_basic(t *testing.T) {

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, apigatewayv2.EndpointsID),
Providers: testAccProviders,
CheckDestroy: testAccCheckAWSAPIGatewayV2IntegrationResponseDestroy,
Steps: []resource.TestStep{
Expand Down Expand Up @@ -52,6 +53,7 @@ func TestAccAWSAPIGatewayV2IntegrationResponse_disappears(t *testing.T) {

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, apigatewayv2.EndpointsID),
Providers: testAccProviders,
CheckDestroy: testAccCheckAWSAPIGatewayV2IntegrationResponseDestroy,
Steps: []resource.TestStep{
Expand All @@ -76,6 +78,7 @@ func TestAccAWSAPIGatewayV2IntegrationResponse_AllAttributes(t *testing.T) {

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, apigatewayv2.EndpointsID),
Providers: testAccProviders,
CheckDestroy: testAccCheckAWSAPIGatewayV2IntegrationResponseDestroy,
Steps: []resource.TestStep{
Expand Down
10 changes: 10 additions & 0 deletions aws/resource_aws_apigatewayv2_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ func TestAccAWSAPIGatewayV2Integration_basicWebSocket(t *testing.T) {

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, apigatewayv2.EndpointsID),
Providers: testAccProviders,
CheckDestroy: testAccCheckAWSAPIGatewayV2IntegrationDestroy,
Steps: []resource.TestStep{
Expand Down Expand Up @@ -64,6 +65,7 @@ func TestAccAWSAPIGatewayV2Integration_basicHttp(t *testing.T) {

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, apigatewayv2.EndpointsID),
Providers: testAccProviders,
CheckDestroy: testAccCheckAWSAPIGatewayV2IntegrationDestroy,
Steps: []resource.TestStep{
Expand Down Expand Up @@ -109,6 +111,7 @@ func TestAccAWSAPIGatewayV2Integration_disappears(t *testing.T) {

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, apigatewayv2.EndpointsID),
Providers: testAccProviders,
CheckDestroy: testAccCheckAWSAPIGatewayV2IntegrationDestroy,
Steps: []resource.TestStep{
Expand All @@ -132,6 +135,7 @@ func TestAccAWSAPIGatewayV2Integration_DataMappingHttp(t *testing.T) {

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, apigatewayv2.EndpointsID),
Providers: testAccProviders,
CheckDestroy: testAccCheckAWSAPIGatewayV2IntegrationDestroy,
Steps: []resource.TestStep{
Expand Down Expand Up @@ -222,6 +226,7 @@ func TestAccAWSAPIGatewayV2Integration_IntegrationTypeHttp(t *testing.T) {

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, apigatewayv2.EndpointsID),
Providers: testAccProviders,
CheckDestroy: testAccCheckAWSAPIGatewayV2IntegrationDestroy,
Steps: []resource.TestStep{
Expand Down Expand Up @@ -298,6 +303,7 @@ func TestAccAWSAPIGatewayV2Integration_LambdaWebSocket(t *testing.T) {

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, apigatewayv2.EndpointsID),
Providers: testAccProviders,
CheckDestroy: testAccCheckAWSAPIGatewayV2IntegrationDestroy,
Steps: []resource.TestStep{
Expand Down Expand Up @@ -343,6 +349,7 @@ func TestAccAWSAPIGatewayV2Integration_LambdaHttp(t *testing.T) {

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, apigatewayv2.EndpointsID),
Providers: testAccProviders,
CheckDestroy: testAccCheckAWSAPIGatewayV2IntegrationDestroy,
Steps: []resource.TestStep{
Expand Down Expand Up @@ -388,6 +395,7 @@ func TestAccAWSAPIGatewayV2Integration_VpcLinkWebSocket(t *testing.T) {

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, apigatewayv2.EndpointsID),
Providers: testAccProviders,
CheckDestroy: testAccCheckAWSAPIGatewayV2IntegrationDestroy,
Steps: []resource.TestStep{
Expand Down Expand Up @@ -435,6 +443,7 @@ func TestAccAWSAPIGatewayV2Integration_VpcLinkHttp(t *testing.T) {

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, apigatewayv2.EndpointsID),
Providers: testAccProviders,
CheckDestroy: testAccCheckAWSAPIGatewayV2IntegrationDestroy,
Steps: []resource.TestStep{
Expand Down Expand Up @@ -515,6 +524,7 @@ func TestAccAWSAPIGatewayV2Integration_AwsServiceIntegration(t *testing.T) {

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, apigatewayv2.EndpointsID),
Providers: testAccProviders,
CheckDestroy: testAccCheckAWSAPIGatewayV2IntegrationDestroy,
Steps: []resource.TestStep{
Expand Down
3 changes: 3 additions & 0 deletions aws/resource_aws_apigatewayv2_model_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ func TestAccAWSAPIGatewayV2Model_basic(t *testing.T) {

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, apigatewayv2.EndpointsID),
Providers: testAccProviders,
CheckDestroy: testAccCheckAWSAPIGatewayV2ModelDestroy,
Steps: []resource.TestStep{
Expand Down Expand Up @@ -77,6 +78,7 @@ func TestAccAWSAPIGatewayV2Model_disappears(t *testing.T) {

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, apigatewayv2.EndpointsID),
Providers: testAccProviders,
CheckDestroy: testAccCheckAWSAPIGatewayV2ModelDestroy,
Steps: []resource.TestStep{
Expand Down Expand Up @@ -128,6 +130,7 @@ func TestAccAWSAPIGatewayV2Model_AllAttributes(t *testing.T) {

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, apigatewayv2.EndpointsID),
Providers: testAccProviders,
CheckDestroy: testAccCheckAWSAPIGatewayV2ModelDestroy,
Steps: []resource.TestStep{
Expand Down
3 changes: 3 additions & 0 deletions aws/resource_aws_apigatewayv2_route_response_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ func TestAccAWSAPIGatewayV2RouteResponse_basic(t *testing.T) {

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, apigatewayv2.EndpointsID),
Providers: testAccProviders,
CheckDestroy: testAccCheckAWSAPIGatewayV2RouteResponseDestroy,
Steps: []resource.TestStep{
Expand Down Expand Up @@ -52,6 +53,7 @@ func TestAccAWSAPIGatewayV2RouteResponse_disappears(t *testing.T) {

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, apigatewayv2.EndpointsID),
Providers: testAccProviders,
CheckDestroy: testAccCheckAWSAPIGatewayV2RouteResponseDestroy,
Steps: []resource.TestStep{
Expand All @@ -78,6 +80,7 @@ func TestAccAWSAPIGatewayV2RouteResponse_Model(t *testing.T) {

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, apigatewayv2.EndpointsID),
Providers: testAccProviders,
CheckDestroy: testAccCheckAWSAPIGatewayV2RouteResponseDestroy,
Steps: []resource.TestStep{
Expand Down
Loading

0 comments on commit b470cc4

Please sign in to comment.