Skip to content

Commit

Permalink
Make domain name unique to address test failures
Browse files Browse the repository at this point in the history
Test fail occasionally due to delays in deletion of domains in global
manager topologies.

Signed-off-by: Kobi Samoray <[email protected]>
  • Loading branch information
ksamoray committed Feb 13, 2024
1 parent 8c0081c commit 8de26d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nsxt/resource_nsxt_policy_gateway_policy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion nsxt/resource_nsxt_policy_group_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 8de26d1

Please sign in to comment.