Skip to content

Commit

Permalink
Parametrize escalation chain naming
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasb committed Oct 10, 2024
1 parent dc5869d commit 654660d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions internal/resources/oncall/resource_escalation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ resource "grafana_oncall_integration" "test-acc-integration" {
}
resource "grafana_oncall_escalation_chain" "test-acc-escalation-chain"{
name = "acc-test"
name = "acc-test-%s"
}
resource "grafana_team" "test-acc-team" {
name = "acc-escalation-test"
name = "acc-escalation-test-%s"
}
resource "grafana_oncall_escalation" "test-acc-escalation" {
Expand Down Expand Up @@ -125,7 +125,7 @@ resource "grafana_oncall_escalation" "test-acc-escalation-policy-declare-inciden
severity = "critical"
position = 3
}
`, riName, reType, reDuration)
`, riName, riName, riName, reType, reDuration)
}

func testAccCheckOnCallEscalationResourceExists(name string) resource.TestCheckFunc {
Expand Down
4 changes: 2 additions & 2 deletions internal/resources/oncall/resource_route_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ resource "grafana_oncall_integration" "test-acc-integration" {
}
resource "grafana_oncall_escalation_chain" "test-acc-escalation-chain"{
name = "acc-test"
name = "acc-test-%s"
}
resource "grafana_oncall_route" "test-acc-route" {
Expand All @@ -78,7 +78,7 @@ resource "grafana_oncall_route" "test-acc-route" {
enabled = false
}
}
`, riName, rrRegex)
`, riName, riName, rrRegex)
}

func testAccCheckOnCallRouteResourceExists(name string) resource.TestCheckFunc {
Expand Down

0 comments on commit 654660d

Please sign in to comment.