From 312edbe5315e97dc25857fc2590266734056af70 Mon Sep 17 00:00:00 2001 From: Saturnino Abril Date: Sat, 2 Jun 2018 06:33:59 +0800 Subject: [MM-10718] Move custom branding to TE (#8871) * move custom branding to TE * move brand's enterprise code to server and remove BrandInterface --- api4/brand_test.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'api4') diff --git a/api4/brand_test.go b/api4/brand_test.go index 11a3cbf38..c1568c5cc 100644 --- a/api4/brand_test.go +++ b/api4/brand_test.go @@ -34,11 +34,8 @@ func TestUploadBrandImage(t *testing.T) { t.Fatal(err) } - ok, resp := Client.UploadBrandImage(data) + _, resp := Client.UploadBrandImage(data) CheckForbiddenStatus(t, resp) - if ok { - t.Fatal("Should return false, set brand image not allowed") - } // status code returns either forbidden or unauthorized // note: forbidden is set as default at Client4.SetProfileImage when request is terminated early by server @@ -53,5 +50,5 @@ func TestUploadBrandImage(t *testing.T) { } _, resp = th.SystemAdminClient.UploadBrandImage(data) - CheckNotImplementedStatus(t, resp) + CheckCreatedStatus(t, resp) } -- cgit v1.2.3-1-g7c22