summaryrefslogtreecommitdiffstats
path: root/model/incoming_webhook_test.go
diff options
context:
space:
mode:
authorJesse Hallam <jesse.hallam@gmail.com>2018-01-03 10:35:36 -0500
committerJoram Wilander <jwawilander@gmail.com>2018-01-03 10:35:36 -0500
commite5dad3cf681fb038ce5dd3dcf7b5468d59b8ea8e (patch)
treed3040d03a076b5e3b0d991bcb5d4d703f9a45c07 /model/incoming_webhook_test.go
parent15cc4497588537f3f9b81d6f97228fae946fa008 (diff)
downloadchat-e5dad3cf681fb038ce5dd3dcf7b5468d59b8ea8e.tar.gz
chat-e5dad3cf681fb038ce5dd3dcf7b5468d59b8ea8e.tar.bz2
chat-e5dad3cf681fb038ce5dd3dcf7b5468d59b8ea8e.zip
[PLT-8173] Strip the post_ prefix on incoming webhook overrides. (#8019)
Diffstat (limited to 'model/incoming_webhook_test.go')
-rw-r--r--model/incoming_webhook_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/model/incoming_webhook_test.go b/model/incoming_webhook_test.go
index 13b416eb0..5498a6a0c 100644
--- a/model/incoming_webhook_test.go
+++ b/model/incoming_webhook_test.go
@@ -90,22 +90,22 @@ func TestIncomingWebhookIsValid(t *testing.T) {
t.Fatal(err)
}
- o.PostUsername = strings.Repeat("1", 65)
+ o.Username = strings.Repeat("1", 65)
if err := o.IsValid(); err == nil {
t.Fatal("should be invalid")
}
- o.PostUsername = strings.Repeat("1", 64)
+ o.Username = strings.Repeat("1", 64)
if err := o.IsValid(); err != nil {
t.Fatal(err)
}
- o.PostIconURL = strings.Repeat("1", 1025)
+ o.IconURL = strings.Repeat("1", 1025)
if err := o.IsValid(); err == nil {
t.Fatal("should be invalid")
}
- o.PostIconURL = strings.Repeat("1", 1024)
+ o.IconURL = strings.Repeat("1", 1024)
if err := o.IsValid(); err != nil {
t.Fatal(err)
}