Skip to content
This repository was archived by the owner on Mar 29, 2023. It is now read-only.

Commit 74eeb67

Browse files
committed
Remove unused params. Add SKIP env vars.
1 parent f11bc09 commit 74eeb67

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

test/couchbase_multi_datacenter_replication_test.go

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,15 @@ func TestIntegrationCouchbaseEnterpriseMultiDataCenterReplicationAmazonLinux(t *
4040
}
4141

4242
func testCouchbaseMultiDataCenterReplication(t *testing.T, osName string, edition string) {
43+
// For convenience - uncomment these as well as the "os" import
44+
// when doing local testing if you need to skip any sections.
45+
//os.Setenv("TERRATEST_REGION", "eu-west-1")
46+
//os.Setenv("SKIP_setup_ami", "true")
47+
//os.Setenv("SKIP_setup_deploy", "true")
48+
//os.Setenv("SKIP_validation", "true")
49+
//os.Setenv("SKIP_teardown", "true")
50+
//os.Setenv("SKIP_logs", "true")
51+
4352
examplesFolder := test_structure.CopyTerraformFolderToTemp(t, "../", "examples")
4453
couchbaseAmiDir := filepath.Join(examplesFolder, "couchbase-ami")
4554
couchbaseMultiClusterDir := filepath.Join(examplesFolder, "couchbase-multi-datacenter-replication")
@@ -132,8 +141,6 @@ func testCouchbaseMultiDataCenterReplication(t *testing.T, osName string, editio
132141
terraformOptions := &terraform.Options{
133142
TerraformDir: couchbaseMultiClusterDir,
134143
Vars: map[string]interface{} {
135-
"aws_region_primary": awsRegionPrimary,
136-
"aws_region_replica": awsRegionReplica,
137144
"ami_id_primary": amiIdPrimary,
138145
"ami_id_replica": amiIdReplica,
139146
clusterNamePrimaryVarName: formatCouchbaseClusterName("primary", uniqueIdPrimary),

0 commit comments

Comments
 (0)