summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlos Tadeu Panato Junior <ctadeu@gmail.com>2018-05-10 14:43:49 +0200
committerDerrick Anderson <derrick@andersonwebstudio.com>2018-05-10 08:43:49 -0400
commit823b22c403510a52d56bc96428cf9977b80a9dfc (patch)
tree12a86a4477c54bf74b46188aaf1b1421f0bc11df
parenta752d7de5a0a1aa1679790f76f2f8dc35e322c41 (diff)
downloadchat-823b22c403510a52d56bc96428cf9977b80a9dfc.tar.gz
chat-823b22c403510a52d56bc96428cf9977b80a9dfc.tar.bz2
chat-823b22c403510a52d56bc96428cf9977b80a9dfc.zip
fix test and add new (#8758)
-rw-r--r--api4/system_test.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/api4/system_test.go b/api4/system_test.go
index d4134f8e2..f46ae7436 100644
--- a/api4/system_test.go
+++ b/api4/system_test.go
@@ -618,9 +618,14 @@ func TestS3TestConnection(t *testing.T) {
config.FileSettings.AmazonS3Bucket = "Wrong_bucket"
_, resp = th.SystemAdminClient.TestS3Connection(&config)
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 ")
}
+
+ config.FileSettings.AmazonS3Bucket = "shouldcreatenewbucket"
+ _, resp = th.SystemAdminClient.TestS3Connection(&config)
+ CheckOKStatus(t, resp)
+
}
func TestSupportedTimezones(t *testing.T) {