From 658bef14dec25680982dcb4b865dae34a827b38a Mon Sep 17 00:00:00 2001 From: emily Date: Mon, 30 Dec 2019 18:26:43 +0000 Subject: [PATCH] Fix test domain for Cloud Run Domain Mapping Signed-off-by: Modular Magician --- .../resource_app_engine_domain_mapping_generated_test.go | 2 +- google/resource_cloud_run_domain_mapping_generated_test.go | 7 +++---- website/docs/r/app_engine_domain_mapping.html.markdown | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/google/resource_app_engine_domain_mapping_generated_test.go b/google/resource_app_engine_domain_mapping_generated_test.go index e2172e75374..f9af9a8061f 100644 --- a/google/resource_app_engine_domain_mapping_generated_test.go +++ b/google/resource_app_engine_domain_mapping_generated_test.go @@ -52,7 +52,7 @@ func TestAccAppEngineDomainMapping_appEngineDomainMappingBasicExample(t *testing func testAccAppEngineDomainMapping_appEngineDomainMappingBasicExample(context map[string]interface{}) string { return Nprintf(` resource "google_app_engine_domain_mapping" "domain_mapping" { - domain_name = "dm-test-%{random_suffix}.gcp.tfacc.hashicorptest.com" + domain_name = "tf-test-domain%{random_suffix}.gcp.tfacc.hashicorptest.com" ssl_settings { ssl_management_type = "AUTOMATIC" diff --git a/google/resource_cloud_run_domain_mapping_generated_test.go b/google/resource_cloud_run_domain_mapping_generated_test.go index deb4332ce1d..ea62d1da832 100644 --- a/google/resource_cloud_run_domain_mapping_generated_test.go +++ b/google/resource_cloud_run_domain_mapping_generated_test.go @@ -28,9 +28,8 @@ func TestAccCloudRunDomainMapping_cloudRunDomainMappingBasicExample(t *testing.T t.Parallel() context := map[string]interface{}{ - "namespace": getTestProjectFromEnv(), - "verified_domain": "tftest-domainmapping.com", - "random_suffix": acctest.RandString(10), + "namespace": getTestProjectFromEnv(), + "random_suffix": acctest.RandString(10), } resource.Test(t, resource.TestCase{ @@ -73,7 +72,7 @@ resource "google_cloud_run_service" "default" { resource "google_cloud_run_domain_mapping" "default" { location = "us-central1" - name = "%{verified_domain}" + name = "tf-test-domain%{random_suffix}.gcp.tfacc.hashicorptest.com" metadata { namespace = "%{namespace}" diff --git a/website/docs/r/app_engine_domain_mapping.html.markdown b/website/docs/r/app_engine_domain_mapping.html.markdown index b5cb34c16ac..eb607c5554d 100644 --- a/website/docs/r/app_engine_domain_mapping.html.markdown +++ b/website/docs/r/app_engine_domain_mapping.html.markdown @@ -41,7 +41,7 @@ To get more information about DomainMapping, see: ```hcl resource "google_app_engine_domain_mapping" "domain_mapping" { - domain_name = "dm-test-.gcp.tfacc.hashicorptest.com" + domain_name = "verified-domain.com" ssl_settings { ssl_management_type = "AUTOMATIC"