Skip to content

Commit

Permalink
fix webhook.service_uri (#23203)
Browse files Browse the repository at this point in the history
  • Loading branch information
teowa authored Sep 7, 2023
1 parent d0ae3bf commit e9ab87a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func TestAccDataSourceMonitorActionGroup_complete(t *testing.T) {
check.That(data.ResourceName).Key("sms_receiver.1.phone_number").HasValue("3123456789"),
check.That(data.ResourceName).Key("webhook_receiver.#").HasValue("2"),
check.That(data.ResourceName).Key("webhook_receiver.0.service_uri").HasValue("http://example.com/alert"),
check.That(data.ResourceName).Key("webhook_receiver.1.service_uri").HasValue("https://backup.example.com/warning"),
check.That(data.ResourceName).Key("webhook_receiver.1.service_uri").HasValue("https://example.com/warning/backup"),
check.That(data.ResourceName).Key("webhook_receiver.1.use_common_alert_schema").HasValue("false"),
check.That(data.ResourceName).Key("webhook_receiver.1.aad_auth.#").HasValue("0"),
check.That(data.ResourceName).Key("automation_runbook_receiver.#").HasValue("1"),
Expand Down Expand Up @@ -250,7 +250,7 @@ resource "azurerm_monitor_action_group" "test" {
webhook_receiver {
name = "callmybackupapi"
service_uri = "https://backup.example.com/warning"
service_uri = "https://example.com/warning/backup"
}
automation_runbook_receiver {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,7 @@ resource "azurerm_monitor_action_group" "test" {
webhook_receiver {
name = "callmybackupapi"
service_uri = "https://backup.example.com/warning"
service_uri = "https://example.com/warning/backup"
use_common_alert_schema = true
}
Expand Down

0 comments on commit e9ab87a

Please sign in to comment.