Skip to content

Commit 84a01bc

Browse files
committed
refactor: revert back migration test to use MONGODB_ATLAS_PROJECT_EAR_PE_AWS_ID
1 parent a2a3437 commit 84a01bc

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

internal/service/searchdeployment/resource_migration_test.go

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package searchdeployment_test
22

33
import (
4+
"os"
45
"testing"
56

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

1112
func TestMigSearchDeployment_basic(t *testing.T) {
1213
var (
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)
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)
1820
)
1921
mig.SkipIfVersionBelow(t, "1.32.0") // enabled_for_search_nodes introduced in this version
2022
resource.ParallelTest(t, resource.TestCase{

0 commit comments

Comments
 (0)