summaryrefslogtreecommitdiffstats
path: root/api4
diff options
context:
space:
mode:
authorSaturnino Abril <saturnino.abril@gmail.com>2018-06-02 06:33:59 +0800
committerGitHub <noreply@github.com>2018-06-02 06:33:59 +0800
commit312edbe5315e97dc25857fc2590266734056af70 (patch)
tree4dc477389e10aa2078651c99bd1e7597276c0e2a /api4
parentebdceb8e529810cd89599b8fbfda0157a659f3b5 (diff)
downloadchat-312edbe5315e97dc25857fc2590266734056af70.tar.gz
chat-312edbe5315e97dc25857fc2590266734056af70.tar.bz2
chat-312edbe5315e97dc25857fc2590266734056af70.zip
[MM-10718] Move custom branding to TE (#8871)
* move custom branding to TE * move brand's enterprise code to server and remove BrandInterface
Diffstat (limited to 'api4')
-rw-r--r--api4/brand_test.go7
1 files changed, 2 insertions, 5 deletions
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)
}