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

Commit e7cc7ba

Browse files
committed
Define env vars before call to CopyTerraformFolderToTemp
1 parent f253eb6 commit e7cc7ba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/couchbase_single_cluster_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ func TestIntegrationCouchbaseEnterpriseSingleClusterAmazonLinux(t *testing.T) {
3232
}
3333

3434
func testCouchbaseSingleCluster(t *testing.T, osName string, edition string) {
35-
rootFolder := test_structure.CopyTerraformFolderToTemp(t, "../", ".")
36-
couchbaseAmiDir := filepath.Join(rootFolder, "examples", "couchbase-ami")
37-
3835
// For convenience - uncomment these as well as the "os" import
3936
// when doing local testing if you need to skip any sections.
4037
//os.Setenv("TERRATEST_REGION", "eu-west-1")
@@ -44,6 +41,9 @@ func testCouchbaseSingleCluster(t *testing.T, osName string, edition string) {
4441
//os.Setenv("SKIP_teardown", "true")
4542
//os.Setenv("SKIP_logs", "true")
4643

44+
rootFolder := test_structure.CopyTerraformFolderToTemp(t, "../", ".")
45+
couchbaseAmiDir := filepath.Join(rootFolder, "examples", "couchbase-ami")
46+
4747
test_structure.RunTestStage(t, "setup_ami", func() {
4848
awsRegion := getRandomAwsRegion(t)
4949
uniqueId := random.UniqueId()

0 commit comments

Comments
 (0)