PLT-6657 Move system console to use v4 endpoints and redux (#6572)
* Move system console to use v4 endpoints and redux * Rename logs dir to get past gitignore * Fix test email * Update brand unit test * Updates per feedback
Этот коммит содержится в:
коммит произвёл
Harrison Healey
родитель
40efd8367a
Коммит
1138dd6770
@@ -13,27 +13,15 @@ func TestGetBrandImage(t *testing.T) {
|
||||
defer TearDown()
|
||||
Client := th.Client
|
||||
|
||||
data, resp := Client.GetBrandImage()
|
||||
CheckNoError(t, resp)
|
||||
|
||||
if len(data) != 0 {
|
||||
t.Fatal("no image uploaded - should be empty")
|
||||
}
|
||||
_, resp := Client.GetBrandImage()
|
||||
CheckNotFoundStatus(t, resp)
|
||||
|
||||
Client.Logout()
|
||||
data, resp = Client.GetBrandImage()
|
||||
CheckNoError(t, resp)
|
||||
_, resp = Client.GetBrandImage()
|
||||
CheckNotFoundStatus(t, resp)
|
||||
|
||||
if len(data) != 0 {
|
||||
t.Fatal("no image uploaded - should be empty")
|
||||
}
|
||||
|
||||
data, resp = th.SystemAdminClient.GetBrandImage()
|
||||
CheckNoError(t, resp)
|
||||
|
||||
if len(data) != 0 {
|
||||
t.Fatal("no image uploaded - should be empty")
|
||||
}
|
||||
_, resp = th.SystemAdminClient.GetBrandImage()
|
||||
CheckNotFoundStatus(t, resp)
|
||||
}
|
||||
|
||||
func TestUploadBrandImage(t *testing.T) {
|
||||
|
||||
Ссылка в новой задаче
Block a user