Skip to content

Commit

Permalink
Merge pull request #17932 from hashicorp/t-deprecated-type-constraint…
Browse files Browse the repository at this point in the history
…s-ds-lb

tests/data-source/lb: Remove deprecated type constraints
  • Loading branch information
YakDriver authored Mar 4, 2021
2 parents 40739bd + 2bab60b commit beaa075
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions aws/data_source_aws_elb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func TestAccDataSourceAWSELB_basic(t *testing.T) {
}

func testAccDataSourceAWSELBConfigBasic(rName, testName string) string {
return testAccAvailableAZsNoOptInConfig() + fmt.Sprintf(`
return composeConfig(testAccAvailableAZsNoOptInConfig(), fmt.Sprintf(`
resource "aws_elb" "elb_test" {
name = "%[1]s"
internal = true
Expand All @@ -60,7 +60,7 @@ resource "aws_elb" "elb_test" {
variable "subnets" {
default = ["10.0.1.0/24", "10.0.2.0/24"]
type = "list"
type = list(string)
}
resource "aws_vpc" "elb_test" {
Expand Down Expand Up @@ -110,5 +110,5 @@ resource "aws_security_group" "elb_test" {
data "aws_elb" "elb_test" {
name = aws_elb.elb_test.name
}
`, rName, testName)
`, rName, testName))
}
6 changes: 3 additions & 3 deletions aws/data_source_aws_lb_listener_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ resource "aws_lb_target_group" "test" {
variable "subnets" {
default = ["10.0.1.0/24", "10.0.2.0/24"]
type = "list"
type = list(string)
}
data "aws_availability_zones" "available" {
Expand Down Expand Up @@ -300,7 +300,7 @@ resource "aws_alb_target_group" "test" {
variable "subnets" {
default = ["10.0.1.0/24", "10.0.2.0/24"]
type = "list"
type = list(string)
}
data "aws_availability_zones" "available" {
Expand Down Expand Up @@ -418,7 +418,7 @@ resource "aws_lb_target_group" "test" {
variable "subnets" {
default = ["10.0.1.0/24", "10.0.2.0/24"]
type = "list"
type = list(string)
}
data "aws_availability_zones" "available" {
Expand Down
4 changes: 2 additions & 2 deletions aws/data_source_aws_lb_target_group_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ resource "aws_lb_target_group" "test" {
variable "subnets" {
default = ["10.0.1.0/24", "10.0.2.0/24"]
type = "list"
type = list(string)
}
data "aws_availability_zones" "available" {
Expand Down Expand Up @@ -296,7 +296,7 @@ resource "aws_alb_target_group" "test" {
variable "subnets" {
default = ["10.0.1.0/24", "10.0.2.0/24"]
type = "list"
type = list(string)
}
data "aws_availability_zones" "available" {
Expand Down
4 changes: 2 additions & 2 deletions aws/data_source_aws_lb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ resource "aws_lb" "alb_test" {
variable "subnets" {
default = ["10.0.1.0/24", "10.0.2.0/24"]
type = "list"
type = list(string)
}
data "aws_availability_zones" "available" {
Expand Down Expand Up @@ -314,7 +314,7 @@ resource "aws_alb" "alb_test" {
variable "subnets" {
default = ["10.0.1.0/24", "10.0.2.0/24"]
type = "list"
type = list(string)
}
data "aws_availability_zones" "available" {
Expand Down

0 comments on commit beaa075

Please sign in to comment.