Skip to content

Commit 9ec1e33

Browse files
avoid using fixed project for search deployment (#3289)
1 parent a5fc466 commit 9ec1e33

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

internal/service/searchdeployment/resource_migration_test.go

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package searchdeployment_test
22

33
import (
4-
"os"
54
"testing"
65

76
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
@@ -11,12 +10,11 @@ import (
1110

1211
func TestMigSearchDeployment_basic(t *testing.T) {
1312
var (
14-
resourceName = "mongodbatlas_search_deployment.test"
15-
projectID = os.Getenv("MONGODB_ATLAS_PROJECT_EAR_PE_AWS_ID") // to use RequirePrivateNetworking, Atlas Project is required to have FF enabled
16-
clusterName = acc.RandomClusterName()
17-
instanceSize = "S30_HIGHCPU_NVME"
18-
searchNodeCount = 3
19-
config = configBasic(projectID, clusterName, instanceSize, searchNodeCount, false)
13+
resourceName = "mongodbatlas_search_deployment.test"
14+
projectID, clusterName = acc.ProjectIDExecutionWithCluster(t, 6)
15+
instanceSize = "S30_HIGHCPU_NVME"
16+
searchNodeCount = 3
17+
config = configBasic(projectID, clusterName, instanceSize, searchNodeCount, false)
2018
)
2119
mig.SkipIfVersionBelow(t, "1.32.0") // enabled_for_search_nodes introduced in this version
2220
resource.ParallelTest(t, resource.TestCase{

0 commit comments

Comments
 (0)