provider/aws: clean up VPC peering connection test

This commit is contained in:
Mitchell Hashimoto 2015-04-09 10:18:50 -07:00
parent 166efa1ba0
commit d189457376

View File

@ -2,6 +2,7 @@ package aws
import (
"fmt"
"os"
"testing"
"github.com/hashicorp/aws-sdk-go/gen/ec2"
@ -13,7 +14,12 @@ func TestAccAWSVPCPeeringConnection_normal(t *testing.T) {
var conf ec2.Address
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
PreCheck: func() {
testAccPreCheck(t)
if os.Getenv("AWS_ACCOUNT_ID") == "" {
t.Fatal("AWS_ACCOUNT_ID must be set")
}
},
Providers: testAccProviders,
CheckDestroy: testAccCheckAWSVpcPeeringConnectionDestroy,
Steps: []resource.TestStep{