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
Этот коммит содержится в:
Joram Wilander
2017-06-14 08:56:56 -04:00
коммит произвёл Harrison Healey
родитель 40efd8367a
Коммит 1138dd6770
29 изменённых файлов: 622 добавлений и 670 удалений

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

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