diff options
author | enahum <nahumhbl@gmail.com> | 2017-03-26 10:37:18 -0300 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2017-03-26 09:37:18 -0400 |
commit | 230556f0f7bde3b6ffa2c6cbd3ca7404fcf3023e (patch) | |
tree | 621914e5e684fd89460a4244552509a3f5c12105 | |
parent | ea74613444c65e965a76a6ad7640f6c011c2c69b (diff) | |
download | chat-230556f0f7bde3b6ffa2c6cbd3ca7404fcf3023e.tar.gz chat-230556f0f7bde3b6ffa2c6cbd3ca7404fcf3023e.tar.bz2 chat-230556f0f7bde3b6ffa2c6cbd3ca7404fcf3023e.zip |
PLT-6046 remove webrtc from tests (#5872)
-rw-r--r-- | Makefile | 19 | ||||
-rw-r--r-- | api/webrtc_test.go | 44 |
2 files changed, 0 insertions, 63 deletions
@@ -90,14 +90,6 @@ start-docker: docker start mattermost-postgres > /dev/null; \ fi - @if [ $(shell docker ps -a | grep -ci mattermost-webrtc) -eq 0 ]; then \ - echo starting mattermost-webrtc; \ - docker run --name mattermost-webrtc -p 7088:7088 -p 7089:7089 -p 8188:8188 -p 8189:8189 -d mattermost/webrtc:latest > /dev/null; \ - elif [ $(shell docker ps | grep -ci mattermost-webrtc) -eq 0 ]; then \ - echo restarting mattermost-webrtc; \ - docker start mattermost-webrtc > /dev/null; \ - fi - @if [ $(shell docker ps -a | grep -ci mattermost-inbucket) -eq 0 ]; then \ echo starting mattermost-inbucket; \ docker run --name mattermost-inbucket -p 9000:10080 -p 2500:10025 -d jhillyerd/inbucket:latest > /dev/null; \ @@ -148,11 +140,6 @@ stop-docker: docker stop mattermost-openldap > /dev/null; \ fi - @if [ $(shell docker ps -a | grep -ci mattermost-webrtc) -eq 1 ]; then \ - echo stopping mattermost-webrtc; \ - docker stop mattermost-webrtc > /dev/null; \ - fi - @if [ $(shell docker ps -a | grep -ci mattermost-inbucket) -eq 1 ]; then \ echo stopping mattermost-inbucket; \ docker stop mattermost-inbucket > /dev/null; \ @@ -179,12 +166,6 @@ clean-docker: docker rm -v mattermost-openldap > /dev/null; \ fi - @if [ $(shell docker ps -a | grep -ci mattermost-webrtc) -eq 1 ]; then \ - echo removing mattermost-webrtc; \ - docker stop mattermost-webrtc > /dev/null; \ - docker rm -v mattermost-webrtc > /dev/null; \ - fi - @if [ $(shell docker ps -a | grep -ci mattermost-inbucket) -eq 1 ]; then \ echo removing mattermost-inbucket; \ docker stop mattermost-inbucket > /dev/null; \ diff --git a/api/webrtc_test.go b/api/webrtc_test.go deleted file mode 100644 index 21049d95d..000000000 --- a/api/webrtc_test.go +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) 2016 Mattermost, Inc. All Rights Reserved. -// See License.txt for license information. - -package api - -import ( - "fmt" - "github.com/mattermost/platform/app" - "github.com/mattermost/platform/model" - "github.com/mattermost/platform/utils" - "testing" -) - -func TestWebrtcToken(t *testing.T) { - th := Setup().InitBasic() - - *utils.Cfg.WebrtcSettings.Enable = false - if _, err := th.BasicClient.GetWebrtcToken(); err == nil { - t.Fatal("should have failed") - } - - *utils.Cfg.WebrtcSettings.Enable = true - *utils.Cfg.WebrtcSettings.GatewayAdminUrl = "https://dockerhost:7089/admin" - *utils.Cfg.WebrtcSettings.GatewayWebsocketUrl = "wss://dockerhost:8189" - *utils.Cfg.WebrtcSettings.GatewayAdminSecret = "janusoverlord" - *utils.Cfg.WebrtcSettings.StunURI = "stun:dockerhost:5349" - *utils.Cfg.WebrtcSettings.TurnURI = "turn:dockerhost:5349" - *utils.Cfg.WebrtcSettings.TurnUsername = "test" - *utils.Cfg.WebrtcSettings.TurnSharedKey = "mattermost" - *utils.Cfg.ServiceSettings.EnableInsecureOutgoingConnections = true - sessionId := model.NewId() - if result, err := th.BasicClient.GetWebrtcToken(); err != nil { - t.Fatal(err) - } else { - fmt.Println("Token", result["token"]) - fmt.Println("Gateway Websocket", result["gateway_url"]) - fmt.Println("Stun URI", result["stun_uri"]) - fmt.Println("Turn URI", result["turn_uri"]) - fmt.Println("Turn Username", result["turn_username"]) - fmt.Println("Turn Password", result["turn_password"]) - } - - app.RevokeWebrtcToken(sessionId) -} |