mirror of
https://github.com/prometheus/alertmanager
synced 2025-02-16 18:47:10 +00:00
Add image_url to example of good config
There was a report that this isn't working. Updating the config and ensuring the parsing works correctly indicates that the image_url is being read into a string. Signed-off-by: stuart nelson <stuartnelson3@gmail.com>
This commit is contained in:
parent
b3972f3adc
commit
6a0be9eaa2
@ -326,7 +326,7 @@ func TestHideConfigSecrets(t *testing.T) {
|
||||
|
||||
// String method must not reveal authentication credentials.
|
||||
s := c.String()
|
||||
if strings.Count(s, "<secret>") != 14 || strings.Contains(s, "mysecret") {
|
||||
if strings.Count(s, "<secret>") != 15 || strings.Contains(s, "mysecret") {
|
||||
t.Fatal("config's String method reveals authentication credentials.")
|
||||
}
|
||||
}
|
||||
|
4
config/testdata/conf.good.yml
vendored
4
config/testdata/conf.good.yml
vendored
@ -140,3 +140,7 @@ receivers:
|
||||
pushover_configs:
|
||||
- token: mysecret
|
||||
user_key: key
|
||||
- name: slack-receiver
|
||||
slack_configs:
|
||||
- channel: '#my-channel'
|
||||
image_url: 'http://some.img.com/img.png'
|
||||
|
Loading…
Reference in New Issue
Block a user