Skip to content

Commit

Permalink
Additional filter on available VGWs in acceptance test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kit Ewbank authored and radeksimko committed Feb 8, 2018
1 parent b335d97 commit 94a33dd
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions aws/data_source_aws_vpn_gateway_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,6 @@ func TestAccDataSourceAwsVpnGateway_attached(t *testing.T) {

func testAccDataSourceAwsVpnGatewayUnattachedConfig(rInt int) string {
return fmt.Sprintf(`
provider "aws" {
region = "us-west-2"
}
resource "aws_vpn_gateway" "unattached" {
tags {
Name = "terraform-testacc-vpn-gateway-data-source-unattached-%d"
Expand All @@ -85,17 +81,14 @@ data "aws_vpn_gateway" "test_by_tags" {
}
data "aws_vpn_gateway" "test_by_amazon_side_asn" {
amazon_side_asn = "${aws_vpn_gateway.unattached.amazon_side_asn}"
amazon_side_asn = "${aws_vpn_gateway.unattached.amazon_side_asn}"
state = "available"
}
`, rInt, rInt+1, rInt-1)
}

func testAccDataSourceAwsVpnGatewayAttachedConfig(rInt int) string {
return fmt.Sprintf(`
provider "aws" {
region = "us-west-2"
}
resource "aws_vpc" "foo" {
cidr_block = "10.1.0.0/16"
Expand Down

0 comments on commit 94a33dd

Please sign in to comment.