Skip to content

Commit

Permalink
use testAccAvailableAZsNoOptInConfig()`
Browse files Browse the repository at this point in the history
  • Loading branch information
DrFaust92 committed Aug 18, 2020
1 parent 84e24ed commit 301d8f8
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions aws/resource_aws_network_interface_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -892,7 +892,7 @@ resource "aws_network_interface" "test" {
}

func testAccAWSENITagsConfig1(rName, tagKey1, tagValue1 string) string {
return fmt.Sprintf(`
return testAccAvailableAZsNoOptInConfig() + fmt.Sprintf(`
resource "aws_vpc" "test" {
cidr_block = "172.16.0.0/16"
enable_dns_hostnames = true
Expand All @@ -902,15 +902,6 @@ resource "aws_vpc" "test" {
}
}
data "aws_availability_zones" "available" {
state = "available"
filter {
name = "opt-in-status"
values = ["opt-in-not-required"]
}
}
resource "aws_subnet" "test" {
vpc_id = aws_vpc.test.id
cidr_block = "172.16.10.0/24"
Expand Down Expand Up @@ -952,7 +943,7 @@ resource "aws_network_interface" "test" {
}

func testAccAWSENITagsConfig2(rName, tagKey1, tagValue1, tagKey2, tagValue2 string) string {
return fmt.Sprintf(`
return testAccAvailableAZsNoOptInConfig() + fmt.Sprintf(`
resource "aws_vpc" "test" {
cidr_block = "172.16.0.0/16"
enable_dns_hostnames = true
Expand All @@ -962,15 +953,6 @@ resource "aws_vpc" "test" {
}
}
data "aws_availability_zones" "available" {
state = "available"
filter {
name = "opt-in-status"
values = ["opt-in-not-required"]
}
}
resource "aws_subnet" "test" {
vpc_id = aws_vpc.test.id
cidr_block = "172.16.10.0/24"
Expand Down

0 comments on commit 301d8f8

Please sign in to comment.