From 47eaa457b04342a8f45950ebbc76cf5853d8e033 Mon Sep 17 00:00:00 2001 From: The Magician Date: Fri, 31 Jul 2020 14:41:39 -0700 Subject: [PATCH] Add a random string to ad directory so tests can be run in parallel (#3802) (#6905) * Add a random string to ad directory so tests can be run in parallel * Add import Signed-off-by: Modular Magician --- .changelog/3802.txt | 3 +++ google/resource_active_directory_domain_update_test.go | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changelog/3802.txt diff --git a/.changelog/3802.txt b/.changelog/3802.txt new file mode 100644 index 00000000000..8ec013c0699 --- /dev/null +++ b/.changelog/3802.txt @@ -0,0 +1,3 @@ +```release-note:none + +``` diff --git a/google/resource_active_directory_domain_update_test.go b/google/resource_active_directory_domain_update_test.go index 9a6bfcc369c..fd832566b5c 100644 --- a/google/resource_active_directory_domain_update_test.go +++ b/google/resource_active_directory_domain_update_test.go @@ -1,6 +1,7 @@ package google import ( + "fmt" "testing" "github.com/hashicorp/terraform-plugin-sdk/helper/resource" @@ -9,8 +10,9 @@ import ( func TestAccActiveDirectoryDomain_update(t *testing.T) { t.Parallel() + domain := fmt.Sprintf("mydomain%s.org1.com", randString(t, 5)) context := map[string]interface{}{ - "domain": "mydomain.org1.com", + "domain": domain, "resource_name": "ad-domain", }