Provisioning: Support alert notification channel secure settings (#26168)

Closes #25968
This commit is contained in:
Marcus Efraimsson
2020-07-17 13:54:01 +02:00
committed by GitHub
parent 8746a77407
commit 7969d6645a
6 changed files with 29 additions and 16 deletions

View File

@@ -66,6 +66,9 @@ func TestNotificationAsConfig(t *testing.T) {
So(nt.Settings, ShouldResemble, map[string]interface{}{
"recipient": "XXX", "token": "xoxb", "uploadImage": true, "url": "https://slack.com",
})
So(nt.SecureSettings, ShouldResemble, map[string]string{
"token": "xoxbsecure", "url": "https://slack.com/secure",
})
So(nt.SendReminder, ShouldBeTrue)
So(nt.Frequency, ShouldEqual, "1h")