[MM-10718] Move custom branding to TE (#8871)

* move custom branding to TE
* move brand's enterprise code to server and remove BrandInterface
Этот коммит содержится в:
Saturnino Abril
2018-06-02 06:33:59 +08:00
коммит произвёл GitHub
родитель ebdceb8e52
Коммит 312edbe531
8 изменённых файлов: 50 добавлений и 59 удалений

Просмотреть файл

@@ -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)
}