summaryrefslogtreecommitdiffstats
path: root/api4/elasticsearch_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'api4/elasticsearch_test.go')
-rw-r--r--api4/elasticsearch_test.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/api4/elasticsearch_test.go b/api4/elasticsearch_test.go
new file mode 100644
index 000000000..1478f052f
--- /dev/null
+++ b/api4/elasticsearch_test.go
@@ -0,0 +1,19 @@
+// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved.
+// See License.txt for license information.
+
+package api4
+
+import (
+ "testing"
+)
+
+func TestElasticsearchTest(t *testing.T) {
+ th := Setup().InitBasic().InitSystemAdmin()
+ defer TearDown()
+
+ _, resp := th.Client.TestElasticsearch()
+ CheckForbiddenStatus(t, resp)
+
+ _, resp = th.SystemAdminClient.TestElasticsearch()
+ CheckNotImplementedStatus(t, resp)
+}