Implement GET /cluster/status endpoint for APIv4 (#5732)

Этот коммит содержится в:
Joram Wilander
2017-03-13 12:49:19 -04:00
коммит произвёл GitHub
родитель 27d2c1f6fe
Коммит 59d06b5c56
5 изменённых файлов: 77 добавлений и 6 удалений

22
api4/cluster_test.go Обычный файл
Просмотреть файл

@@ -0,0 +1,22 @@
// Copyright (c) 2017 Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
package api4
import (
"testing"
)
func TestGetClusterStatus(t *testing.T) {
th := Setup().InitBasic().InitSystemAdmin()
_, resp := th.Client.GetClusterStatus()
CheckForbiddenStatus(t, resp)
infos, resp := th.SystemAdminClient.GetClusterStatus()
CheckNoError(t, resp)
if infos == nil {
t.Fatal("should not be nil")
}
}