From 0083431077abd686425eca66947fb2c5bb831985 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 21 Apr 2016 13:58:56 -0700 Subject: [PATCH] provider/aws: fix name on id-only check --- .../resource_aws_route53_delegation_set_test.go | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/builtin/providers/aws/resource_aws_route53_delegation_set_test.go b/builtin/providers/aws/resource_aws_route53_delegation_set_test.go index 9af9e8dd1..26e88f60d 100644 --- a/builtin/providers/aws/resource_aws_route53_delegation_set_test.go +++ b/builtin/providers/aws/resource_aws_route53_delegation_set_test.go @@ -15,9 +15,11 @@ import ( func TestAccAWSRoute53DelegationSet_basic(t *testing.T) { resource.Test(t, resource.TestCase{ - PreCheck: func() { testAccPreCheck(t) }, - Providers: testAccProviders, - CheckDestroy: testAccCheckRoute53ZoneDestroy, + PreCheck: func() { testAccPreCheck(t) }, + IDRefreshName: "aws_route53_delegation_set.test", + IDRefreshIgnore: []string{"reference_name"}, + Providers: testAccProviders, + CheckDestroy: testAccCheckRoute53ZoneDestroy, Steps: []resource.TestStep{ resource.TestStep{ Config: testAccRoute53DelegationSetConfig, @@ -33,9 +35,11 @@ func TestAccAWSRoute53DelegationSet_withZones(t *testing.T) { var zone route53.GetHostedZoneOutput resource.Test(t, resource.TestCase{ - PreCheck: func() { testAccPreCheck(t) }, - Providers: testAccProviders, - CheckDestroy: testAccCheckRoute53ZoneDestroy, + PreCheck: func() { testAccPreCheck(t) }, + IDRefreshName: "aws_route53_delegation_set.main", + IDRefreshIgnore: []string{"reference_name"}, + Providers: testAccProviders, + CheckDestroy: testAccCheckRoute53ZoneDestroy, Steps: []resource.TestStep{ resource.TestStep{ Config: testAccRoute53DelegationSetWithZonesConfig,