From 50af3a19a2817097355df9fd70c0fda0328d8bae Mon Sep 17 00:00:00 2001 From: n1aba Date: Tue, 4 Sep 2018 14:24:41 +0300 Subject: MM-11703: Update incoming and outgoing webhook description to 500 characters (#9265) * MM-11703: Update incoming and outgoing webhook description to 500 characters * MM-11703: Add upgrade code * MM-11703: Remove MAX_DESCRIPTION_LENGTH constants * MM-11703: GOFMT * MM-11703: Move upgrade code to version 5.3 * MM-11703: Comment back upgrade to 5.3.0 * MM-11703: Add API errors back * MM-11703: Copy-Paste --- model/outgoing_webhook_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'model/outgoing_webhook_test.go') diff --git a/model/outgoing_webhook_test.go b/model/outgoing_webhook_test.go index 3241e649f..5403fca6f 100644 --- a/model/outgoing_webhook_test.go +++ b/model/outgoing_webhook_test.go @@ -102,14 +102,14 @@ func TestOutgoingWebhookIsValid(t *testing.T) { t.Fatal(err) } - o.Description = strings.Repeat("1", 129) + o.Description = strings.Repeat("1", 501) if err := o.IsValid(); err == nil { t.Fatal("should be invalid") } - o.Description = strings.Repeat("1", 128) + o.Description = strings.Repeat("1", 500) if err := o.IsValid(); err != nil { - t.Fatal("should be invalid") + t.Fatal(err) } o.ContentType = strings.Repeat("1", 129) -- cgit v1.2.3-1-g7c22