|
|
|
|
@ -4,7 +4,6 @@ import (
|
|
|
|
|
"fmt"
|
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
|
|
"github.com/hashicorp/terraform/helper/hashcode"
|
|
|
|
|
"github.com/hashicorp/terraform/helper/resource"
|
|
|
|
|
"github.com/hashicorp/terraform/terraform"
|
|
|
|
|
|
|
|
|
|
@ -116,8 +115,8 @@ func testAccCheckRoute53ZoneExists(n string, zone *route53.HostedZone) resource.
|
|
|
|
|
return fmt.Errorf("Hosted zone err: %v", err)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
for _, ns := range resp.DelegationSet.NameServers {
|
|
|
|
|
attribute := fmt.Sprintf("name_servers.%d", hashcode.String(*ns))
|
|
|
|
|
for idx, ns := range resp.DelegationSet.NameServers {
|
|
|
|
|
attribute := fmt.Sprintf("name_servers.%d", idx)
|
|
|
|
|
dsns := rs.Primary.Attributes[attribute]
|
|
|
|
|
if dsns != *ns {
|
|
|
|
|
return fmt.Errorf("Got: %v for %v, Expected: %v", dsns, attribute, ns)
|
|
|
|
|
|