From 88e772c899d234c993f532bb672c5ae4bbd1257c Mon Sep 17 00:00:00 2001 From: Dosty Everts Date: Tue, 8 Nov 2022 16:18:07 -0600 Subject: [PATCH] INTMDB-384 Fix PrivateLink test flakiness (#895) * Using different endpointID values for the endpoint service adl tests * Removed parallelization with private link endpoint test which had overlap with others * Reverted changes to the endpointID --- ...batlas_privatelink_endpoint_service_adl_test.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/mongodbatlas/resource_mongodbatlas_privatelink_endpoint_service_adl_test.go b/mongodbatlas/resource_mongodbatlas_privatelink_endpoint_service_adl_test.go index a0b26eae0f..e00e2e975c 100644 --- a/mongodbatlas/resource_mongodbatlas_privatelink_endpoint_service_adl_test.go +++ b/mongodbatlas/resource_mongodbatlas_privatelink_endpoint_service_adl_test.go @@ -19,7 +19,7 @@ func TestAccResourceMongoDBAtlasPrivateLinkEndpointServiceADL_basic(t *testing.T commentUpdate = "this is a comment for adl private link endpoint UPDATED" ) - resource.ParallelTest(t, resource.TestCase{ + resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, ProviderFactories: testAccProviderFactories, CheckDestroy: testAccCheckMongoDBAtlasPrivateLinkEndpointServiceADLDestroy, @@ -55,7 +55,7 @@ func TestAccResourceMongoDBAtlasPrivateLinkEndpointServiceADL_importBasic(t *tes endpointID = "vpce-jjg5e24qp93513h03" commentOrigin = "this is a comment for adl private link endpoint" ) - resource.ParallelTest(t, resource.TestCase{ + resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, ProviderFactories: testAccProviderFactories, CheckDestroy: testAccCheckMongoDBAtlasSearchIndexDestroy, @@ -102,11 +102,11 @@ func testAccCheckMongoDBAtlasPrivateLinkEndpointServiceADLDestroy(state *terrafo func testAccMongoDBAtlasPrivateLinkEndpointServiceADLConfig(projectID, endpointID, comment string) string { return fmt.Sprintf(` resource "mongodbatlas_privatelink_endpoint_service_adl" "test" { - project_id = "%[1]s" - endpoint_id = "%[2]s" - comment = "%[3]s" - type = "DATA_LAKE" - provider_name = "AWS" + project_id = "%[1]s" + endpoint_id = "%[2]s" + comment = "%[3]s" + type = "DATA_LAKE" + provider_name = "AWS" } `, projectID, endpointID, comment) }