Skip to content

Commit

Permalink
change acc test resource names
Browse files Browse the repository at this point in the history
  • Loading branch information
jiaweitao001 committed Jan 9, 2025
1 parent a66c159 commit 32e1fd3
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func (r TagRulesResource) basic(data acceptance.TestData) string {
%[1]s
resource "azurerm_dynatrace_tag_rules" "test" {
name = "default"
name = "acctestragrules%d"
monitor_id = azurerm_dynatrace_monitor.test.id
log_rule {
Expand All @@ -137,15 +137,15 @@ resource "azurerm_dynatrace_tag_rules" "test" {
}
}
}
`, MonitorsResource{}.basic(data))
`, MonitorsResource{}.basic(data), data.RandomInteger)
}

func (r TagRulesResource) complete(data acceptance.TestData) string {
return fmt.Sprintf(`
%[1]s
resource "azurerm_dynatrace_tag_rules" "test" {
name = "default"
name = "acctestragrules%d"
monitor_id = azurerm_dynatrace_monitor.test.id
log_rule {
Expand All @@ -167,7 +167,7 @@ resource "azurerm_dynatrace_tag_rules" "test" {
}
}
}
`, MonitorsResource{}.basic(data))
`, MonitorsResource{}.basic(data), data.RandomInteger)
}

func (r TagRulesResource) requiresImport(data acceptance.TestData) string {
Expand Down

0 comments on commit 32e1fd3

Please sign in to comment.