mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
provider/aws: clean up VPC peering connection test
This commit is contained in:
parent
166efa1ba0
commit
d189457376
@ -2,6 +2,7 @@ package aws
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"os"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/hashicorp/aws-sdk-go/gen/ec2"
|
"github.com/hashicorp/aws-sdk-go/gen/ec2"
|
||||||
@ -13,7 +14,12 @@ func TestAccAWSVPCPeeringConnection_normal(t *testing.T) {
|
|||||||
var conf ec2.Address
|
var conf ec2.Address
|
||||||
|
|
||||||
resource.Test(t, resource.TestCase{
|
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,
|
Providers: testAccProviders,
|
||||||
CheckDestroy: testAccCheckAWSVpcPeeringConnectionDestroy,
|
CheckDestroy: testAccCheckAWSVpcPeeringConnectionDestroy,
|
||||||
Steps: []resource.TestStep{
|
Steps: []resource.TestStep{
|
||||||
|
Loading…
Reference in New Issue
Block a user