provider/aws: fix name on id-only check

This commit is contained in:
Mitchell Hashimoto 2016-04-21 13:58:56 -07:00
parent f2d91f0c2b
commit 0083431077
No known key found for this signature in database
GPG Key ID: 744E147AA52F5B0A
1 changed files with 10 additions and 6 deletions

View File

@ -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,