Skip to content

Commit 01cfeb8

Browse files
committed
provider/aws: Set AWS region in elasticache cluster import test
1 parent eff11ef commit 01cfeb8

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

builtin/providers/aws/import_aws_elasticache_cluster_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
package aws
22

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

67
"github.com/hashicorp/terraform/helper/resource"
78
)
89

910
func TestAccAWSElasticacheCluster_importBasic(t *testing.T) {
11+
oldvar := os.Getenv("AWS_DEFAULT_REGION")
12+
os.Setenv("AWS_DEFAULT_REGION", "us-east-1")
13+
defer os.Setenv("AWS_DEFAULT_REGION", oldvar)
14+
1015
resourceName := "aws_elasticache_cluster.bar"
1116

1217
resource.Test(t, resource.TestCase{

0 commit comments

Comments
 (0)