Skip to content

Commit

Permalink
INTMDB-384 Fix PrivateLink test flakiness (#895)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
evertsd committed Nov 29, 2022
1 parent 7c813e6 commit 88e772c
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit 88e772c

Please sign in to comment.