mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
@@ -274,7 +274,7 @@ notifiers:
|
||||
# or
|
||||
org_name: Main Org.
|
||||
is_default: true
|
||||
send_reminders: true
|
||||
send_reminder: true
|
||||
frequency: 1h
|
||||
disable_resolve_message: false
|
||||
# See `Supported Settings` section for settings supporter for each
|
||||
|
||||
@@ -66,6 +66,8 @@ func TestNotificationAsConfig(t *testing.T) {
|
||||
So(nt.Settings, ShouldResemble, map[string]interface{}{
|
||||
"recipient": "XXX", "token": "xoxb", "uploadImage": true, "url": "https://slack.com",
|
||||
})
|
||||
So(nt.SendReminder, ShouldBeTrue)
|
||||
So(nt.Frequency, ShouldEqual, "1h")
|
||||
|
||||
nt = nts[1]
|
||||
So(nt.Name, ShouldEqual, "another-not-default-notification")
|
||||
|
||||
@@ -3,8 +3,9 @@ notifiers:
|
||||
type: slack
|
||||
uid: notifier1
|
||||
org_id: 2
|
||||
uid: "notifier1"
|
||||
is_default: true
|
||||
send_reminder: true
|
||||
frequency: 1h
|
||||
settings:
|
||||
recipient: "XXX"
|
||||
token: "xoxb"
|
||||
|
||||
Reference in New Issue
Block a user