From 8de26d1db64a3ff41819912310e83a6e0997be35 Mon Sep 17 00:00:00 2001 From: Kobi Samoray Date: Sun, 11 Feb 2024 11:35:02 +0200 Subject: [PATCH] Make domain name unique to address test failures Test fail occasionally due to delays in deletion of domains in global manager topologies. Signed-off-by: Kobi Samoray --- nsxt/resource_nsxt_policy_gateway_policy_test.go | 2 +- nsxt/resource_nsxt_policy_group_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nsxt/resource_nsxt_policy_gateway_policy_test.go b/nsxt/resource_nsxt_policy_gateway_policy_test.go index 23d75ee19..122b1832a 100644 --- a/nsxt/resource_nsxt_policy_gateway_policy_test.go +++ b/nsxt/resource_nsxt_policy_gateway_policy_test.go @@ -386,7 +386,7 @@ func TestAccResourceNsxtGlobalPolicyGatewayPolicy_withSite(t *testing.T) { func TestAccResourceNsxtGlobalPolicyGatewayPolicy_withDomain(t *testing.T) { name := "terraform-test" siteName := getTestSiteName() - domainName := "new-domain" + domainName := getAccTestResourceName() testResourceName := "nsxt_policy_gateway_policy.test" comments := "Acceptance test create" diff --git a/nsxt/resource_nsxt_policy_group_test.go b/nsxt/resource_nsxt_policy_group_test.go index 7697d4cb2..469881b6a 100644 --- a/nsxt/resource_nsxt_policy_group_test.go +++ b/nsxt/resource_nsxt_policy_group_test.go @@ -269,7 +269,7 @@ func TestAccResourceNsxtGlobalPolicyGroup_externalIDCriteria(t *testing.T) { func TestAccResourceNsxtGlobalPolicyGroup_withDomain(t *testing.T) { name := "test-nsx-global-policy-group-domain" testResourceName := "nsxt_policy_group.test" - domainName := "new-domain" + domainName := getAccTestResourceName() resource.ParallelTest(t, resource.TestCase{ PreCheck: func() {