fix test and add new (#8758)
Этот коммит содержится в:
коммит произвёл
Derrick Anderson
родитель
a752d7de5a
Коммит
823b22c403
@@ -618,9 +618,14 @@ func TestS3TestConnection(t *testing.T) {
|
|||||||
config.FileSettings.AmazonS3Bucket = "Wrong_bucket"
|
config.FileSettings.AmazonS3Bucket = "Wrong_bucket"
|
||||||
_, resp = th.SystemAdminClient.TestS3Connection(&config)
|
_, resp = th.SystemAdminClient.TestS3Connection(&config)
|
||||||
CheckInternalErrorStatus(t, resp)
|
CheckInternalErrorStatus(t, resp)
|
||||||
if resp.Error.Message != "Error checking if bucket exists." {
|
if resp.Error.Message != "Unable to create bucket" {
|
||||||
t.Fatal("should return error ")
|
t.Fatal("should return error ")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
config.FileSettings.AmazonS3Bucket = "shouldcreatenewbucket"
|
||||||
|
_, resp = th.SystemAdminClient.TestS3Connection(&config)
|
||||||
|
CheckOKStatus(t, resp)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestSupportedTimezones(t *testing.T) {
|
func TestSupportedTimezones(t *testing.T) {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user