Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix aws elb hosted zone id add nlb ids #8384

Closed
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update acceptance tests to include elb_type argument
  • Loading branch information
jukie committed Apr 19, 2019
commit 7306d511a60ca85de0d3247b7e124c2e3191006b
7 changes: 5 additions & 2 deletions aws/data_source_aws_elb_hosted_zone_id_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,22 @@ func TestAccAWSElbHostedZoneId_basic(t *testing.T) {
{
Config: testAccCheckAwsElbHostedZoneIdExplicitRegionConfig,
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttr("data.aws_elb_hosted_zone_id.regional", "id", "Z32O12XQLNTSW2"),
resource.TestCheckResourceAttr("data.aws_elb_hosted_zone_id.regional", "id", "Z1UDT6IFJ4EJM"),
),
},
},
})
}

const testAccCheckAwsElbHostedZoneIdConfig = `
data "aws_elb_hosted_zone_id" "main" { }
data "aws_elb_hosted_zone_id" "main" {
elb_type = "application"
}
`

const testAccCheckAwsElbHostedZoneIdExplicitRegionConfig = `
data "aws_elb_hosted_zone_id" "regional" {
region = "eu-west-1"
elb_type = "network"
}
`