summaryrefslogtreecommitdiffstats
path: root/api4/webrtc_test.go
diff options
context:
space:
mode:
authorJesse Hallam <jesse.hallam@gmail.com>2018-10-18 13:49:10 -0400
committerElias Nahum <nahumhbl@gmail.com>2018-10-18 14:49:10 -0300
commitd1805733feb8c48a7286eb1affc1f98ed1a044a8 (patch)
tree9c141e10210e68686173a9f093a383d26792f276 /api4/webrtc_test.go
parenta708c33520e327487fd2dc05eaab3563c8161fb7 (diff)
downloadchat-d1805733feb8c48a7286eb1affc1f98ed1a044a8.tar.gz
chat-d1805733feb8c48a7286eb1affc1f98ed1a044a8.tar.bz2
chat-d1805733feb8c48a7286eb1affc1f98ed1a044a8.zip
MM-12505: remove all things WebRTC (#9700)
Diffstat (limited to 'api4/webrtc_test.go')
-rw-r--r--api4/webrtc_test.go33
1 files changed, 0 insertions, 33 deletions
diff --git a/api4/webrtc_test.go b/api4/webrtc_test.go
deleted file mode 100644
index 4ad20175e..000000000
--- a/api4/webrtc_test.go
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright (c) 2017 Mattermost, Inc. All Rights Reserved.
-// See License.txt for license information.
-
-package api4
-
-import (
- "testing"
-
- "github.com/mattermost/mattermost-server/model"
-)
-
-func TestGetWebrtcToken(t *testing.T) {
- if testing.Short() {
- t.SkipNow()
- }
-
- th := Setup().InitBasic().InitSystemAdmin()
- defer th.TearDown()
- Client := th.Client
-
- enableWebrtc := *th.App.Config().WebrtcSettings.Enable
- defer func() {
- th.App.UpdateConfig(func(cfg *model.Config) { *cfg.WebrtcSettings.Enable = enableWebrtc })
- }()
- th.App.UpdateConfig(func(cfg *model.Config) { *cfg.WebrtcSettings.Enable = false })
-
- _, resp := Client.GetWebrtcToken()
- CheckNotImplementedStatus(t, resp)
-
- Client.Logout()
- _, resp = Client.GetWebrtcToken()
- CheckUnauthorizedStatus(t, resp)
-}