diff options
Diffstat (limited to 'api4/cluster_test.go')
-rw-r--r-- | api4/cluster_test.go | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/api4/cluster_test.go b/api4/cluster_test.go new file mode 100644 index 000000000..6d44ca209 --- /dev/null +++ b/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") + } +} |