Skip to content

Commit

Permalink
tests/resource/aws_route53_zone_association: Remove unused testAccChe…
Browse files Browse the repository at this point in the history
…ckRoute53ZoneAssociationDisappears function
  • Loading branch information
bflad committed Aug 6, 2020
1 parent fe9b584 commit 477d95e
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions aws/resource_aws_route53_zone_association_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ import (
"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/terraform"

"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/route53"
)

func TestAccAWSRoute53ZoneAssociation_basic(t *testing.T) {
Expand Down Expand Up @@ -222,22 +219,6 @@ func testAccCheckRoute53ZoneAssociationExists(resourceName string) resource.Test
}
}

func testAccCheckRoute53ZoneAssociationDisappears(zone *route53.GetHostedZoneOutput, vpc *route53.VPC) resource.TestCheckFunc {
return func(s *terraform.State) error {
conn := testAccProvider.Meta().(*AWSClient).r53conn

input := &route53.DisassociateVPCFromHostedZoneInput{
HostedZoneId: zone.HostedZone.Id,
VPC: vpc,
Comment: aws.String("Managed by Terraform"),
}

_, err := conn.DisassociateVPCFromHostedZone(input)

return err
}
}

const testAccRoute53ZoneAssociationConfig = `
resource "aws_vpc" "foo" {
cidr_block = "10.6.0.0/16"
Expand Down

0 comments on commit 477d95e

Please sign in to comment.