provider/aws: Set AWS region in elasticache cluster import test
This commit is contained in:
parent
eff11efff3
commit
01cfeb8062
|
@ -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{
|
||||
|
|
Loading…
Reference in New Issue