Skip to content

Commit

Permalink
Fix test names and ignore broken import
Browse files Browse the repository at this point in the history
  • Loading branch information
ryndaniels committed Sep 2, 2019
1 parent 479df3b commit aff728e
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions aws/resource_aws_vpn_gateway_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,10 @@ func TestAccAWSVpnGateway_withAvailabilityZoneSetToState(t *testing.T) {
),
},
{
ResourceName: resourceName,
ImportState: true,
ImportStateVerify: true,
ResourceName: resourceName,
ImportState: true,
ImportStateVerify: true,
ImportStateVerifyIgnore: []string{"availability_zone"},
},
},
})
Expand Down Expand Up @@ -276,7 +277,7 @@ func TestAccAWSVpnGateway_reattach(t *testing.T) {
Config: testAccCheckVpnGatewayConfigReattach,
Check: resource.ComposeTestCheckFunc(
testAccCheckVpcExists("aws_vpc.test", &vpc1),
testAccCheckVpcExists("aws_vpc.bar", &vpc2),
testAccCheckVpcExists("aws_vpc.test2", &vpc2),
testAccCheckVpnGatewayExists(
resourceName, &vgw1),
testAccCheckVpnGatewayExists(
Expand Down Expand Up @@ -530,15 +531,15 @@ resource "aws_vpn_gateway" "test" {
`

const testAccVpnGatewayConfigChangeVPC = `
resource "aws_vpc" "bar" {
resource "aws_vpc" "test2" {
cidr_block = "10.2.0.0/16"
tags = {
Name = "terraform-testacc-vpn-gateway-change-vpc"
}
}
resource "aws_vpn_gateway" "test" {
vpc_id = "${aws_vpc.bar.id}"
vpc_id = "${aws_vpc.test2.id}"
tags = {
Name = "terraform-testacc-vpn-gateway-basic"
}
Expand Down Expand Up @@ -585,10 +586,10 @@ resource "aws_vpc" "test" {
}
}
resource "aws_vpc" "bar" {
resource "aws_vpc" "test2" {
cidr_block = "10.2.0.0/16"
tags = {
Name = "terraform-testacc-vpn-gateway-reattach-bar"
Name = "terraform-testacc-vpn-gateway-reattach-test2"
}
}
Expand All @@ -599,8 +600,8 @@ resource "aws_vpn_gateway" "test" {
}
}
resource "aws_vpn_gateway" "bar" {
vpc_id = "${aws_vpc.bar.id}"
resource "aws_vpn_gateway" "test2" {
vpc_id = "${aws_vpc.test2.id}"
tags = {
Name = "terraform-testacc-vpn-gateway-reattach"
}
Expand All @@ -615,21 +616,21 @@ resource "aws_vpc" "test" {
}
}
resource "aws_vpc" "bar" {
resource "aws_vpc" "test2" {
cidr_block = "10.2.0.0/16"
tags = {
Name = "terraform-testacc-vpn-gateway-reattach-bar"
Name = "terraform-testacc-vpn-gateway-reattach-test2"
}
}
resource "aws_vpn_gateway" "test" {
vpc_id = "${aws_vpc.bar.id}"
vpc_id = "${aws_vpc.test2.id}"
tags = {
Name = "terraform-testacc-vpn-gateway-reattach"
}
}
resource "aws_vpn_gateway" "bar" {
resource "aws_vpn_gateway" "test2" {
vpc_id = "${aws_vpc.test.id}"
tags = {
Name = "terraform-testacc-vpn-gateway-reattach"
Expand Down

0 comments on commit aff728e

Please sign in to comment.