Merge pull request #11794 from hashicorp/paddy_fix_gcp_dns_tests

provider/google: update DNS names in tests.
This commit is contained in:
Paddy 2017-02-08 10:41:50 -08:00 committed by GitHub
commit f8fdd6eba0
2 changed files with 5 additions and 5 deletions

View File

@ -79,5 +79,5 @@ func testAccCheckDnsManagedZoneExists(n string, zone *dns.ManagedZone) resource.
var testAccDnsManagedZone_basic = fmt.Sprintf(` var testAccDnsManagedZone_basic = fmt.Sprintf(`
resource "google_dns_managed_zone" "foobar" { resource "google_dns_managed_zone" "foobar" {
name = "mzone-test-%s" name = "mzone-test-%s"
dns_name = "terraform.test." dns_name = "hashicorptest.com."
}`, acctest.RandString(10)) }`, acctest.RandString(10))

View File

@ -138,12 +138,12 @@ func testAccDnsRecordSet_basic(zoneName string, addr2 string, ttl int) string {
return fmt.Sprintf(` return fmt.Sprintf(`
resource "google_dns_managed_zone" "parent-zone" { resource "google_dns_managed_zone" "parent-zone" {
name = "%s" name = "%s"
dns_name = "terraform.test." dns_name = "hashicorptest.com."
description = "Test Description" description = "Test Description"
} }
resource "google_dns_record_set" "foobar" { resource "google_dns_record_set" "foobar" {
managed_zone = "${google_dns_managed_zone.parent-zone.name}" managed_zone = "${google_dns_managed_zone.parent-zone.name}"
name = "test-record.terraform.test." name = "test-record.hashicorptest.com."
type = "A" type = "A"
rrdatas = ["127.0.0.1", "%s"] rrdatas = ["127.0.0.1", "%s"]
ttl = %d ttl = %d
@ -155,12 +155,12 @@ func testAccDnsRecordSet_bigChange(zoneName string, ttl int) string {
return fmt.Sprintf(` return fmt.Sprintf(`
resource "google_dns_managed_zone" "parent-zone" { resource "google_dns_managed_zone" "parent-zone" {
name = "%s" name = "%s"
dns_name = "terraform.test." dns_name = "hashicorptest.com."
description = "Test Description" description = "Test Description"
} }
resource "google_dns_record_set" "foobar" { resource "google_dns_record_set" "foobar" {
managed_zone = "${google_dns_managed_zone.parent-zone.name}" managed_zone = "${google_dns_managed_zone.parent-zone.name}"
name = "test-record.terraform.test." name = "test-record.hashicorptest.com."
type = "CNAME" type = "CNAME"
rrdatas = ["www.terraform.io."] rrdatas = ["www.terraform.io."]
ttl = %d ttl = %d