From e5dad3cf681fb038ce5dd3dcf7b5468d59b8ea8e Mon Sep 17 00:00:00 2001 From: Jesse Hallam Date: Wed, 3 Jan 2018 10:35:36 -0500 Subject: [PLT-8173] Strip the post_ prefix on incoming webhook overrides. (#8019) --- model/incoming_webhook_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'model/incoming_webhook_test.go') 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) } -- cgit v1.2.3-1-g7c22