provider/aws: Set AWS region in elasticache cluster import test

This commit is contained in:
AMeng 2016-08-19 12:32:38 -06:00
parent eff11efff3
commit 01cfeb8062
1 changed files with 5 additions and 0 deletions

View File

@ -1,12 +1,17 @@
package aws
import (
"os"
"testing"
"github.com/hashicorp/terraform/helper/resource"
)
func TestAccAWSElasticacheCluster_importBasic(t *testing.T) {
oldvar := os.Getenv("AWS_DEFAULT_REGION")
os.Setenv("AWS_DEFAULT_REGION", "us-east-1")
defer os.Setenv("AWS_DEFAULT_REGION", oldvar)
resourceName := "aws_elasticache_cluster.bar"
resource.Test(t, resource.TestCase{