Browse Source

docs: fixes typo in provisioning docs (#17248)

closes #17196
Carl Bergquist 6 years ago
parent
commit
c87b2c9913

+ 1 - 1
docs/sources/administration/provisioning.md

@@ -274,7 +274,7 @@ notifiers:
     # or
     # or
     org_name: Main Org.
     org_name: Main Org.
     is_default: true
     is_default: true
-    send_reminders: true
+    send_reminder: true
     frequency: 1h
     frequency: 1h
     disable_resolve_message: false
     disable_resolve_message: false
     # See `Supported Settings` section for settings supporter for each
     # See `Supported Settings` section for settings supporter for each

+ 2 - 0
pkg/services/provisioning/notifiers/config_reader_test.go

@@ -66,6 +66,8 @@ func TestNotificationAsConfig(t *testing.T) {
 			So(nt.Settings, ShouldResemble, map[string]interface{}{
 			So(nt.Settings, ShouldResemble, map[string]interface{}{
 				"recipient": "XXX", "token": "xoxb", "uploadImage": true, "url": "https://slack.com",
 				"recipient": "XXX", "token": "xoxb", "uploadImage": true, "url": "https://slack.com",
 			})
 			})
+			So(nt.SendReminder, ShouldBeTrue)
+			So(nt.Frequency, ShouldEqual, "1h")
 
 
 			nt = nts[1]
 			nt = nts[1]
 			So(nt.Name, ShouldEqual, "another-not-default-notification")
 			So(nt.Name, ShouldEqual, "another-not-default-notification")

+ 2 - 1
pkg/services/provisioning/notifiers/testdata/test-configs/correct-properties/correct-properties.yaml

@@ -3,8 +3,9 @@ notifiers:
     type: slack
     type: slack
     uid: notifier1
     uid: notifier1
     org_id: 2
     org_id: 2
-    uid: "notifier1"
     is_default: true
     is_default: true
+    send_reminder: true
+    frequency: 1h
     settings:
     settings:
       recipient: "XXX"
       recipient: "XXX"
       token: "xoxb"
       token: "xoxb"