Renaming repo
Этот коммит содержится в:
1
.gitignore
поставляемый
1
.gitignore
поставляемый
@@ -93,3 +93,4 @@ tags
|
|||||||
.idea
|
.idea
|
||||||
|
|
||||||
debug
|
debug
|
||||||
|
client
|
||||||
|
|||||||
19
Makefile
19
Makefile
@@ -26,7 +26,7 @@ else
|
|||||||
BUILD_ENTERPRISE_READY = false
|
BUILD_ENTERPRISE_READY = false
|
||||||
BUILD_TYPE_NAME = team
|
BUILD_TYPE_NAME = team
|
||||||
endif
|
endif
|
||||||
BUILD_WEBAPP_DIR ?= ./webapp
|
BUILD_WEBAPP_DIR ?= ../mattermost-webapp
|
||||||
BUILD_CLIENT = false
|
BUILD_CLIENT = false
|
||||||
BUILD_HASH_CLIENT = independant
|
BUILD_HASH_CLIENT = independant
|
||||||
ifneq ($(wildcard $(BUILD_WEBAPP_DIR)/.),)
|
ifneq ($(wildcard $(BUILD_WEBAPP_DIR)/.),)
|
||||||
@@ -374,6 +374,7 @@ run-cli: start-docker
|
|||||||
run-client:
|
run-client:
|
||||||
@echo Running mattermost client for development
|
@echo Running mattermost client for development
|
||||||
|
|
||||||
|
ln -s $(BUILD_WEBAPP_DIR)/dist client
|
||||||
cd $(BUILD_WEBAPP_DIR) && $(MAKE) run
|
cd $(BUILD_WEBAPP_DIR) && $(MAKE) run
|
||||||
|
|
||||||
run-client-fullmap:
|
run-client-fullmap:
|
||||||
@@ -451,13 +452,13 @@ setup-mac:
|
|||||||
|
|
||||||
|
|
||||||
todo:
|
todo:
|
||||||
@! ag --ignore Makefile --ignore-dir vendor --ignore-dir runtime --ignore-dir webapp/non_npm_dependencies/ TODO
|
@! ag --ignore Makefile --ignore-dir vendor --ignore-dir runtime TODO
|
||||||
@! ag --ignore Makefile --ignore-dir vendor --ignore-dir runtime --ignore-dir webapp/non_npm_dependencies/ XXX
|
@! ag --ignore Makefile --ignore-dir vendor --ignore-dir runtime XXX
|
||||||
@! ag --ignore Makefile --ignore-dir vendor --ignore-dir runtime --ignore-dir webapp/non_npm_dependencies/ FIXME
|
@! ag --ignore Makefile --ignore-dir vendor --ignore-dir runtime FIXME
|
||||||
@! ag --ignore Makefile --ignore-dir vendor --ignore-dir runtime --ignore-dir webapp/non_npm_dependencies/ "FIX ME"
|
@! ag --ignore Makefile --ignore-dir vendor --ignore-dir runtime "FIX ME"
|
||||||
ifeq ($(BUILD_ENTERPRISE_READY),true)
|
ifeq ($(BUILD_ENTERPRISE_READY),true)
|
||||||
@! ag --ignore Makefile --ignore-dir vendor --ignore-dir runtime --ignore-dir webapp/non_npm_dependencies/ TODO enterprise/
|
@! ag --ignore Makefile --ignore-dir vendor --ignore-dir runtime TODO enterprise/
|
||||||
@! ag --ignore Makefile --ignore-dir vendor --ignore-dir runtime --ignore-dir webapp/non_npm_dependencies/ XXX enterprise/
|
@! ag --ignore Makefile --ignore-dir vendor --ignore-dir runtime XXX enterprise/
|
||||||
@! ag --ignore Makefile --ignore-dir vendor --ignore-dir runtime --ignore-dir webapp/non_npm_dependencies/ FIXME enterprise/
|
@! ag --ignore Makefile --ignore-dir vendor --ignore-dir runtime FIXME enterprise/
|
||||||
@! ag --ignore Makefile --ignore-dir vendor --ignore-dir runtime --ignore-dir webapp/non_npm_dependencies/ "FIX ME" enterprise/
|
@! ag --ignore Makefile --ignore-dir vendor --ignore-dir runtime "FIX ME" enterprise/
|
||||||
endif
|
endif
|
||||||
|
|||||||
@@ -9,10 +9,10 @@ import (
|
|||||||
|
|
||||||
l4g "github.com/alecthomas/log4go"
|
l4g "github.com/alecthomas/log4go"
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
"github.com/mattermost/platform/app"
|
"github.com/mattermost/mattermost-server/app"
|
||||||
"github.com/mattermost/platform/einterfaces"
|
"github.com/mattermost/mattermost-server/einterfaces"
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
"github.com/mssola/user_agent"
|
"github.com/mssola/user_agent"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -8,9 +8,9 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/store"
|
"github.com/mattermost/mattermost-server/store"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestGetLogs(t *testing.T) {
|
func TestGetLogs(t *testing.T) {
|
||||||
|
|||||||
@@ -8,10 +8,10 @@ import (
|
|||||||
|
|
||||||
l4g "github.com/alecthomas/log4go"
|
l4g "github.com/alecthomas/log4go"
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
"github.com/mattermost/platform/app"
|
"github.com/mattermost/mattermost-server/app"
|
||||||
"github.com/mattermost/platform/einterfaces"
|
"github.com/mattermost/mattermost-server/einterfaces"
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
|
|
||||||
_ "github.com/nicksnyder/go-i18n/i18n"
|
_ "github.com/nicksnyder/go-i18n/i18n"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -6,12 +6,12 @@ package api
|
|||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/mattermost/platform/api4"
|
"github.com/mattermost/mattermost-server/api4"
|
||||||
"github.com/mattermost/platform/app"
|
"github.com/mattermost/mattermost-server/app"
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/store"
|
"github.com/mattermost/mattermost-server/store"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
"github.com/mattermost/platform/wsapi"
|
"github.com/mattermost/mattermost-server/wsapi"
|
||||||
|
|
||||||
l4g "github.com/alecthomas/log4go"
|
l4g "github.com/alecthomas/log4go"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -9,9 +9,9 @@ import (
|
|||||||
|
|
||||||
l4g "github.com/alecthomas/log4go"
|
l4g "github.com/alecthomas/log4go"
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
"github.com/mattermost/platform/app"
|
"github.com/mattermost/mattermost-server/app"
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func InitChannel() {
|
func InitChannel() {
|
||||||
|
|||||||
@@ -9,9 +9,9 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/store"
|
"github.com/mattermost/mattermost-server/store"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestCreateChannel(t *testing.T) {
|
func TestCreateChannel(t *testing.T) {
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ import (
|
|||||||
"os/exec"
|
"os/exec"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/mattermost/platform/app"
|
"github.com/mattermost/mattermost-server/app"
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestCliVersion(t *testing.T) {
|
func TestCliVersion(t *testing.T) {
|
||||||
@@ -16,7 +16,7 @@ func TestCliVersion(t *testing.T) {
|
|||||||
t.SkipNow()
|
t.SkipNow()
|
||||||
}
|
}
|
||||||
|
|
||||||
cmd := exec.Command("bash", "-c", `go run ../cmd/platform/*.go version`)
|
cmd := exec.Command("bash", "-c", `go run ../cmd/mattermost-server/*.go version`)
|
||||||
output, err := cmd.CombinedOutput()
|
output, err := cmd.CombinedOutput()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Log(string(output))
|
t.Log(string(output))
|
||||||
@@ -35,7 +35,7 @@ func TestCliCreateTeam(t *testing.T) {
|
|||||||
name := "name" + id
|
name := "name" + id
|
||||||
displayName := "Name " + id
|
displayName := "Name " + id
|
||||||
|
|
||||||
cmd := exec.Command("bash", "-c", `go run ../cmd/platform/*.go team create --name "`+name+`" --display_name "`+displayName+`"`)
|
cmd := exec.Command("bash", "-c", `go run ../cmd/mattermost-server/*.go team create --name "`+name+`" --display_name "`+displayName+`"`)
|
||||||
output, err := cmd.CombinedOutput()
|
output, err := cmd.CombinedOutput()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Log(string(output))
|
t.Log(string(output))
|
||||||
@@ -60,14 +60,14 @@ func TestCliCreateUserWithTeam(t *testing.T) {
|
|||||||
email := "success+" + id + "@simulator.amazonses.com"
|
email := "success+" + id + "@simulator.amazonses.com"
|
||||||
username := "name" + id
|
username := "name" + id
|
||||||
|
|
||||||
cmd := exec.Command("bash", "-c", `go run ../cmd/platform/*.go user create --email "`+email+`" --password "mypassword1" --username "`+username+`"`)
|
cmd := exec.Command("bash", "-c", `go run ../cmd/mattermost-server/*.go user create --email "`+email+`" --password "mypassword1" --username "`+username+`"`)
|
||||||
output, err := cmd.CombinedOutput()
|
output, err := cmd.CombinedOutput()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Log(string(output))
|
t.Log(string(output))
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
cmd2 := exec.Command("bash", "-c", `go run ../cmd/platform/*.go team add `+th.SystemAdminTeam.Id+" "+email)
|
cmd2 := exec.Command("bash", "-c", `go run ../cmd/mattermost-server/*.go team add `+th.SystemAdminTeam.Id+" "+email)
|
||||||
output2, err2 := cmd2.CombinedOutput()
|
output2, err2 := cmd2.CombinedOutput()
|
||||||
if err2 != nil {
|
if err2 != nil {
|
||||||
t.Log(string(output2))
|
t.Log(string(output2))
|
||||||
@@ -100,7 +100,7 @@ func TestCliCreateUserWithoutTeam(t *testing.T) {
|
|||||||
email := "success+" + id + "@simulator.amazonses.com"
|
email := "success+" + id + "@simulator.amazonses.com"
|
||||||
username := "name" + id
|
username := "name" + id
|
||||||
|
|
||||||
cmd := exec.Command("bash", "-c", `go run ../cmd/platform/*.go user create --email "`+email+`" --password "mypassword1" --username "`+username+`"`)
|
cmd := exec.Command("bash", "-c", `go run ../cmd/mattermost-server/*.go user create --email "`+email+`" --password "mypassword1" --username "`+username+`"`)
|
||||||
output, err := cmd.CombinedOutput()
|
output, err := cmd.CombinedOutput()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Log(string(output))
|
t.Log(string(output))
|
||||||
@@ -124,7 +124,7 @@ func TestCliAssignRole(t *testing.T) {
|
|||||||
|
|
||||||
th := Setup().InitBasic()
|
th := Setup().InitBasic()
|
||||||
|
|
||||||
cmd := exec.Command("bash", "-c", "go run ../cmd/platform/*.go roles system_admin "+th.BasicUser.Email)
|
cmd := exec.Command("bash", "-c", "go run ../cmd/mattermost-server/*.go roles system_admin "+th.BasicUser.Email)
|
||||||
output, err := cmd.CombinedOutput()
|
output, err := cmd.CombinedOutput()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Log(string(output))
|
t.Log(string(output))
|
||||||
@@ -167,7 +167,7 @@ func TestCliJoinChannel(t *testing.T) {
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
// should fail because channel does not exist
|
// should fail because channel does not exist
|
||||||
cmd2 := exec.Command("bash", "-c", "go run ../cmd/platform/*.go channel add "+th.BasicTeam.Name+":"+channel.Name+"asdf "+th.BasicUser2.Email)
|
cmd2 := exec.Command("bash", "-c", "go run ../cmd/mattermost-server/*.go channel add "+th.BasicTeam.Name+":"+channel.Name+"asdf "+th.BasicUser2.Email)
|
||||||
output2, err2 := cmd2.CombinedOutput()
|
output2, err2 := cmd2.CombinedOutput()
|
||||||
if err2 == nil {
|
if err2 == nil {
|
||||||
t.Log(string(output2))
|
t.Log(string(output2))
|
||||||
@@ -175,7 +175,7 @@ func TestCliJoinChannel(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// should fail because channel does not have license
|
// should fail because channel does not have license
|
||||||
cmd3 := exec.Command("bash", "-c", "go run ../cmd/platform/*.go channel add "+th.BasicTeam.Name+":"+channel.Name+" "+th.BasicUser2.Email)
|
cmd3 := exec.Command("bash", "-c", "go run ../cmd/mattermost-server/*.go channel add "+th.BasicTeam.Name+":"+channel.Name+" "+th.BasicUser2.Email)
|
||||||
output3, err3 := cmd3.CombinedOutput()
|
output3, err3 := cmd3.CombinedOutput()
|
||||||
if err3 == nil {
|
if err3 == nil {
|
||||||
t.Log(string(output3))
|
t.Log(string(output3))
|
||||||
@@ -216,7 +216,7 @@ func TestCliRemoveChannel(t *testing.T) {
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
// cannot leave town-square
|
// cannot leave town-square
|
||||||
cmd1a := exec.Command("bash", "-c", "go run ../cmd/platform/*.go channel remove "+th.BasicTeam.Name+":town-square "+th.BasicUser2.Email)
|
cmd1a := exec.Command("bash", "-c", "go run ../cmd/mattermost-server/*.go channel remove "+th.BasicTeam.Name+":town-square "+th.BasicUser2.Email)
|
||||||
output1a, err1a := cmd1a.CombinedOutput()
|
output1a, err1a := cmd1a.CombinedOutput()
|
||||||
if err1a == nil {
|
if err1a == nil {
|
||||||
t.Log(string(output1a))
|
t.Log(string(output1a))
|
||||||
@@ -224,7 +224,7 @@ func TestCliRemoveChannel(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// should fail because channel does not exist
|
// should fail because channel does not exist
|
||||||
cmd2 := exec.Command("bash", "-c", "go run ../cmd/platform/*.go channel remove "+th.BasicTeam.Name+":doesnotexist "+th.BasicUser2.Email)
|
cmd2 := exec.Command("bash", "-c", "go run ../cmd/mattermost-server/*.go channel remove "+th.BasicTeam.Name+":doesnotexist "+th.BasicUser2.Email)
|
||||||
output2, err2 := cmd2.CombinedOutput()
|
output2, err2 := cmd2.CombinedOutput()
|
||||||
if err2 == nil {
|
if err2 == nil {
|
||||||
t.Log(string(output2))
|
t.Log(string(output2))
|
||||||
@@ -232,7 +232,7 @@ func TestCliRemoveChannel(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// should fail because channel does not have license
|
// should fail because channel does not have license
|
||||||
cmd3 := exec.Command("bash", "-c", "go run ../cmd/platform/*.go channel remove "+th.BasicTeam.Name+":"+channel.Name+" "+th.BasicUser2.Email)
|
cmd3 := exec.Command("bash", "-c", "go run ../cmd/mattermost-server/*.go channel remove "+th.BasicTeam.Name+":"+channel.Name+" "+th.BasicUser2.Email)
|
||||||
output3, err3 := cmd3.CombinedOutput()
|
output3, err3 := cmd3.CombinedOutput()
|
||||||
if err3 == nil {
|
if err3 == nil {
|
||||||
t.Log(string(output3))
|
t.Log(string(output3))
|
||||||
@@ -267,7 +267,7 @@ func TestCliListChannels(t *testing.T) {
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
// should fail because channel does not have license
|
// should fail because channel does not have license
|
||||||
cmd3 := exec.Command("bash", "-c", "go run ../cmd/platform/*.go channel list "+th.BasicTeam.Name)
|
cmd3 := exec.Command("bash", "-c", "go run ../cmd/mattermost-server/*.go channel list "+th.BasicTeam.Name)
|
||||||
output3, err3 := cmd3.CombinedOutput()
|
output3, err3 := cmd3.CombinedOutput()
|
||||||
if err3 == nil {
|
if err3 == nil {
|
||||||
t.Log(string(output3))
|
t.Log(string(output3))
|
||||||
@@ -302,7 +302,7 @@ func TestCliRestoreChannel(t *testing.T) {
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
// should fail because channel does not have license
|
// should fail because channel does not have license
|
||||||
cmd3 := exec.Command("bash", "-c", "go run ../cmd/platform/*.go channel restore "+th.BasicTeam.Name+":"+channel.Name)
|
cmd3 := exec.Command("bash", "-c", "go run ../cmd/mattermost-server/*.go channel restore "+th.BasicTeam.Name+":"+channel.Name)
|
||||||
output3, err3 := cmd3.CombinedOutput()
|
output3, err3 := cmd3.CombinedOutput()
|
||||||
if err3 == nil {
|
if err3 == nil {
|
||||||
t.Log(string(output3))
|
t.Log(string(output3))
|
||||||
@@ -317,7 +317,7 @@ func TestCliJoinTeam(t *testing.T) {
|
|||||||
|
|
||||||
th := Setup().InitSystemAdmin().InitBasic()
|
th := Setup().InitSystemAdmin().InitBasic()
|
||||||
|
|
||||||
cmd := exec.Command("bash", "-c", "go run ../cmd/platform/*.go team add "+th.SystemAdminTeam.Name+" "+th.BasicUser.Email)
|
cmd := exec.Command("bash", "-c", "go run ../cmd/mattermost-server/*.go team add "+th.SystemAdminTeam.Name+" "+th.BasicUser.Email)
|
||||||
output, err := cmd.CombinedOutput()
|
output, err := cmd.CombinedOutput()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Log(string(output))
|
t.Log(string(output))
|
||||||
@@ -347,7 +347,7 @@ func TestCliLeaveTeam(t *testing.T) {
|
|||||||
|
|
||||||
th := Setup().InitBasic()
|
th := Setup().InitBasic()
|
||||||
|
|
||||||
cmd := exec.Command("bash", "-c", "go run ../cmd/platform/*.go team remove "+th.BasicTeam.Name+" "+th.BasicUser.Email)
|
cmd := exec.Command("bash", "-c", "go run ../cmd/mattermost-server/*.go team remove "+th.BasicTeam.Name+" "+th.BasicUser.Email)
|
||||||
output, err := cmd.CombinedOutput()
|
output, err := cmd.CombinedOutput()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Log(string(output))
|
t.Log(string(output))
|
||||||
@@ -384,7 +384,7 @@ func TestCliResetPassword(t *testing.T) {
|
|||||||
|
|
||||||
th := Setup().InitBasic()
|
th := Setup().InitBasic()
|
||||||
|
|
||||||
cmd := exec.Command("bash", "-c", "go run ../cmd/platform/*.go user password "+th.BasicUser.Email+" password2")
|
cmd := exec.Command("bash", "-c", "go run ../cmd/mattermost-server/*.go user password "+th.BasicUser.Email+" password2")
|
||||||
output, err := cmd.CombinedOutput()
|
output, err := cmd.CombinedOutput()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Log(string(output))
|
t.Log(string(output))
|
||||||
@@ -407,7 +407,7 @@ func TestCliCreateChannel(t *testing.T) {
|
|||||||
name := "name" + id
|
name := "name" + id
|
||||||
|
|
||||||
// should fail because channel does not have license
|
// should fail because channel does not have license
|
||||||
cmd := exec.Command("bash", "-c", "go run ../cmd/platform/*.go channel create --display_name "+name+" --team "+th.BasicTeam.Name+" --name "+name)
|
cmd := exec.Command("bash", "-c", "go run ../cmd/mattermost-server/*.go channel create --display_name "+name+" --team "+th.BasicTeam.Name+" --name "+name)
|
||||||
output, err := cmd.CombinedOutput()
|
output, err := cmd.CombinedOutput()
|
||||||
if err == nil {
|
if err == nil {
|
||||||
t.Log(string(output))
|
t.Log(string(output))
|
||||||
@@ -416,7 +416,7 @@ func TestCliCreateChannel(t *testing.T) {
|
|||||||
|
|
||||||
// should fail because channel does not have license
|
// should fail because channel does not have license
|
||||||
name = name + "-private"
|
name = name + "-private"
|
||||||
cmd2 := exec.Command("bash", "-c", "go run ../cmd/platform/*.go channel create --display_name="+name+" --team "+th.BasicTeam.Name+" --private --name "+name)
|
cmd2 := exec.Command("bash", "-c", "go run ../cmd/mattermost-server/*.go channel create --display_name="+name+" --team "+th.BasicTeam.Name+" --private --name "+name)
|
||||||
output2, err2 := cmd2.CombinedOutput()
|
output2, err2 := cmd2.CombinedOutput()
|
||||||
if err2 == nil {
|
if err2 == nil {
|
||||||
t.Log(string(output2))
|
t.Log(string(output2))
|
||||||
@@ -432,7 +432,7 @@ func TestCliMakeUserActiveAndInactive(t *testing.T) {
|
|||||||
th := Setup().InitBasic()
|
th := Setup().InitBasic()
|
||||||
|
|
||||||
// first inactivate the user
|
// first inactivate the user
|
||||||
cmd := exec.Command("bash", "-c", "go run ../cmd/platform/*.go user deactivate "+th.BasicUser.Email)
|
cmd := exec.Command("bash", "-c", "go run ../cmd/mattermost-server/*.go user deactivate "+th.BasicUser.Email)
|
||||||
output, err := cmd.CombinedOutput()
|
output, err := cmd.CombinedOutput()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Log(string(output))
|
t.Log(string(output))
|
||||||
@@ -440,7 +440,7 @@ func TestCliMakeUserActiveAndInactive(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// activate the inactive user
|
// activate the inactive user
|
||||||
cmd2 := exec.Command("bash", "-c", "go run ../cmd/platform/*.go user activate "+th.BasicUser.Email)
|
cmd2 := exec.Command("bash", "-c", "go run ../cmd/mattermost-server/*.go user activate "+th.BasicUser.Email)
|
||||||
output2, err2 := cmd2.CombinedOutput()
|
output2, err2 := cmd2.CombinedOutput()
|
||||||
if err2 != nil {
|
if err2 != nil {
|
||||||
t.Log(string(output2))
|
t.Log(string(output2))
|
||||||
|
|||||||
@@ -10,9 +10,9 @@ import (
|
|||||||
|
|
||||||
l4g "github.com/alecthomas/log4go"
|
l4g "github.com/alecthomas/log4go"
|
||||||
|
|
||||||
"github.com/mattermost/platform/app"
|
"github.com/mattermost/mattermost-server/app"
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func InitCommand() {
|
func InitCommand() {
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestEchoCommand(t *testing.T) {
|
func TestEchoCommand(t *testing.T) {
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestExpandCommand(t *testing.T) {
|
func TestExpandCommand(t *testing.T) {
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ package api
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestHelpCommand(t *testing.T) {
|
func TestHelpCommand(t *testing.T) {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ package api
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestInvitePeopleCommand(t *testing.T) {
|
func TestInvitePeopleCommand(t *testing.T) {
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
// also used to test /open (see command_open_test.go)
|
// also used to test /open (see command_open_test.go)
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestLeaveCommands(t *testing.T) {
|
func TestLeaveCommands(t *testing.T) {
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestLoadTestHelpCommands(t *testing.T) {
|
func TestLoadTestHelpCommands(t *testing.T) {
|
||||||
@@ -141,7 +141,7 @@ func TestLoadTestUrlCommands(t *testing.T) {
|
|||||||
// t.Fatal("/loadtest url with invalid url should've failed")
|
// t.Fatal("/loadtest url with invalid url should've failed")
|
||||||
//}
|
//}
|
||||||
//
|
//
|
||||||
//command = "/loadtest url https://raw.githubusercontent.com/mattermost/platform/master/README.md"
|
//command = "/loadtest url https://raw.githubusercontent.com/mattermost/mattermost-server/master/README.md"
|
||||||
//if r := Client.Must(Client.Command(channel.Id, command, false)).Data.(*model.CommandResponse); r.Text != "Loaded data" {
|
//if r := Client.Must(Client.Command(channel.Id, command, false)).Data.(*model.CommandResponse); r.Text != "Loaded data" {
|
||||||
// t.Fatal("/loadtest url for README.md should've executed")
|
// t.Fatal("/loadtest url for README.md should've executed")
|
||||||
//}
|
//}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestMeCommand(t *testing.T) {
|
func TestMeCommand(t *testing.T) {
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestMsgCommands(t *testing.T) {
|
func TestMsgCommands(t *testing.T) {
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestShrugCommand(t *testing.T) {
|
func TestShrugCommand(t *testing.T) {
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestStatusCommands(t *testing.T) {
|
func TestStatusCommands(t *testing.T) {
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestListCommands(t *testing.T) {
|
func TestListCommands(t *testing.T) {
|
||||||
|
|||||||
@@ -14,10 +14,10 @@ import (
|
|||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
goi18n "github.com/nicksnyder/go-i18n/i18n"
|
goi18n "github.com/nicksnyder/go-i18n/i18n"
|
||||||
|
|
||||||
"github.com/mattermost/platform/app"
|
"github.com/mattermost/mattermost-server/app"
|
||||||
"github.com/mattermost/platform/einterfaces"
|
"github.com/mattermost/mattermost-server/einterfaces"
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Context struct {
|
type Context struct {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ package api
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
l4g "github.com/alecthomas/log4go"
|
l4g "github.com/alecthomas/log4go"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ONLY FOR APIs SCHEDULED TO BE DEPRECATED
|
// ONLY FOR APIs SCHEDULED TO BE DEPRECATED
|
||||||
|
|||||||
@@ -15,10 +15,10 @@ import (
|
|||||||
l4g "github.com/alecthomas/log4go"
|
l4g "github.com/alecthomas/log4go"
|
||||||
"github.com/disintegration/imaging"
|
"github.com/disintegration/imaging"
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
"github.com/mattermost/platform/app"
|
"github.com/mattermost/mattermost-server/app"
|
||||||
"github.com/mattermost/platform/einterfaces"
|
"github.com/mattermost/mattermost-server/einterfaces"
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func InitEmoji() {
|
func InitEmoji() {
|
||||||
|
|||||||
@@ -10,10 +10,10 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/mattermost/platform/app"
|
"github.com/mattermost/mattermost-server/app"
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/store"
|
"github.com/mattermost/mattermost-server/store"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestGetEmoji(t *testing.T) {
|
func TestGetEmoji(t *testing.T) {
|
||||||
|
|||||||
@@ -11,9 +11,9 @@ import (
|
|||||||
|
|
||||||
l4g "github.com/alecthomas/log4go"
|
l4g "github.com/alecthomas/log4go"
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
"github.com/mattermost/platform/app"
|
"github.com/mattermost/mattermost-server/app"
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|||||||
@@ -14,10 +14,10 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/mattermost/platform/app"
|
"github.com/mattermost/mattermost-server/app"
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/store"
|
"github.com/mattermost/mattermost-server/store"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
|
|
||||||
s3 "github.com/minio/minio-go"
|
s3 "github.com/minio/minio-go"
|
||||||
"github.com/minio/minio-go/pkg/credentials"
|
"github.com/minio/minio-go/pkg/credentials"
|
||||||
|
|||||||
@@ -10,9 +10,9 @@ import (
|
|||||||
|
|
||||||
l4g "github.com/alecthomas/log4go"
|
l4g "github.com/alecthomas/log4go"
|
||||||
|
|
||||||
"github.com/mattermost/platform/app"
|
"github.com/mattermost/mattermost-server/app"
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func InitGeneral() {
|
func InitGeneral() {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ package api
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestGetClientProperties(t *testing.T) {
|
func TestGetClientProperties(t *testing.T) {
|
||||||
|
|||||||
@@ -9,9 +9,9 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
l4g "github.com/alecthomas/log4go"
|
l4g "github.com/alecthomas/log4go"
|
||||||
"github.com/mattermost/platform/app"
|
"github.com/mattermost/mattermost-server/app"
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func InitLicense() {
|
func InitLicense() {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ package api
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestGetLicenceConfig(t *testing.T) {
|
func TestGetLicenceConfig(t *testing.T) {
|
||||||
|
|||||||
@@ -8,9 +8,9 @@ import (
|
|||||||
|
|
||||||
l4g "github.com/alecthomas/log4go"
|
l4g "github.com/alecthomas/log4go"
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
"github.com/mattermost/platform/app"
|
"github.com/mattermost/mattermost-server/app"
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func InitOAuth() {
|
func InitOAuth() {
|
||||||
|
|||||||
@@ -12,9 +12,9 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/mattermost/platform/einterfaces"
|
"github.com/mattermost/mattermost-server/einterfaces"
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestOAuthRegisterApp(t *testing.T) {
|
func TestOAuthRegisterApp(t *testing.T) {
|
||||||
|
|||||||
@@ -9,9 +9,9 @@ import (
|
|||||||
|
|
||||||
l4g "github.com/alecthomas/log4go"
|
l4g "github.com/alecthomas/log4go"
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
"github.com/mattermost/platform/app"
|
"github.com/mattermost/mattermost-server/app"
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
const OPEN_GRAPH_METADATA_CACHE_SIZE = 10000
|
const OPEN_GRAPH_METADATA_CACHE_SIZE = 10000
|
||||||
|
|||||||
@@ -15,10 +15,10 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/mattermost/platform/app"
|
"github.com/mattermost/mattermost-server/app"
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/store"
|
"github.com/mattermost/mattermost-server/store"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestCreatePost(t *testing.T) {
|
func TestCreatePost(t *testing.T) {
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ import (
|
|||||||
|
|
||||||
l4g "github.com/alecthomas/log4go"
|
l4g "github.com/alecthomas/log4go"
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func InitPreference() {
|
func InitPreference() {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ package api
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestGetAllPreferences(t *testing.T) {
|
func TestGetAllPreferences(t *testing.T) {
|
||||||
|
|||||||
@@ -8,9 +8,9 @@ import (
|
|||||||
|
|
||||||
l4g "github.com/alecthomas/log4go"
|
l4g "github.com/alecthomas/log4go"
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
"github.com/mattermost/platform/app"
|
"github.com/mattermost/mattermost-server/app"
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func InitReaction() {
|
func InitReaction() {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ package api
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestSaveReaction(t *testing.T) {
|
func TestSaveReaction(t *testing.T) {
|
||||||
|
|||||||
@@ -8,9 +8,9 @@ import (
|
|||||||
|
|
||||||
l4g "github.com/alecthomas/log4go"
|
l4g "github.com/alecthomas/log4go"
|
||||||
|
|
||||||
"github.com/mattermost/platform/app"
|
"github.com/mattermost/mattermost-server/app"
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func InitStatus() {
|
func InitStatus() {
|
||||||
|
|||||||
@@ -8,9 +8,9 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/store"
|
"github.com/mattermost/mattermost-server/store"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestStatuses(t *testing.T) {
|
func TestStatuses(t *testing.T) {
|
||||||
|
|||||||
@@ -13,9 +13,9 @@ import (
|
|||||||
l4g "github.com/alecthomas/log4go"
|
l4g "github.com/alecthomas/log4go"
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
|
|
||||||
"github.com/mattermost/platform/app"
|
"github.com/mattermost/mattermost-server/app"
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func InitTeam() {
|
func InitTeam() {
|
||||||
|
|||||||
@@ -6,9 +6,9 @@ package api
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/store"
|
"github.com/mattermost/mattermost-server/store"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestCreateTeam(t *testing.T) {
|
func TestCreateTeam(t *testing.T) {
|
||||||
|
|||||||
10
api/user.go
10
api/user.go
@@ -13,11 +13,11 @@ import (
|
|||||||
|
|
||||||
l4g "github.com/alecthomas/log4go"
|
l4g "github.com/alecthomas/log4go"
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
"github.com/mattermost/platform/app"
|
"github.com/mattermost/mattermost-server/app"
|
||||||
"github.com/mattermost/platform/einterfaces"
|
"github.com/mattermost/mattermost-server/einterfaces"
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/store"
|
"github.com/mattermost/mattermost-server/store"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func InitUser() {
|
func InitUser() {
|
||||||
|
|||||||
@@ -16,10 +16,10 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/mattermost/platform/app"
|
"github.com/mattermost/mattermost-server/app"
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/store"
|
"github.com/mattermost/mattermost-server/store"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestCreateUser(t *testing.T) {
|
func TestCreateUser(t *testing.T) {
|
||||||
|
|||||||
@@ -7,9 +7,9 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
l4g "github.com/alecthomas/log4go"
|
l4g "github.com/alecthomas/log4go"
|
||||||
"github.com/mattermost/platform/app"
|
"github.com/mattermost/mattermost-server/app"
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func InitWebhook() {
|
func InitWebhook() {
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestCreateIncomingHook(t *testing.T) {
|
func TestCreateIncomingHook(t *testing.T) {
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
l4g "github.com/alecthomas/log4go"
|
l4g "github.com/alecthomas/log4go"
|
||||||
"github.com/mattermost/platform/app"
|
"github.com/mattermost/mattermost-server/app"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func InitWebrtc() {
|
func InitWebrtc() {
|
||||||
|
|||||||
@@ -8,9 +8,9 @@ import (
|
|||||||
|
|
||||||
l4g "github.com/alecthomas/log4go"
|
l4g "github.com/alecthomas/log4go"
|
||||||
"github.com/gorilla/websocket"
|
"github.com/gorilla/websocket"
|
||||||
"github.com/mattermost/platform/app"
|
"github.com/mattermost/mattermost-server/app"
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func InitWebSocket() {
|
func InitWebSocket() {
|
||||||
|
|||||||
@@ -11,9 +11,9 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/gorilla/websocket"
|
"github.com/gorilla/websocket"
|
||||||
"github.com/mattermost/platform/app"
|
"github.com/mattermost/mattermost-server/app"
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
/*func TestWebSocketAuthentication(t *testing.T) {
|
/*func TestWebSocketAuthentication(t *testing.T) {
|
||||||
|
|||||||
@@ -8,10 +8,10 @@ import (
|
|||||||
|
|
||||||
l4g "github.com/alecthomas/log4go"
|
l4g "github.com/alecthomas/log4go"
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
"github.com/mattermost/platform/app"
|
"github.com/mattermost/mattermost-server/app"
|
||||||
"github.com/mattermost/platform/einterfaces"
|
"github.com/mattermost/mattermost-server/einterfaces"
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
|
|
||||||
_ "github.com/nicksnyder/go-i18n/i18n"
|
_ "github.com/nicksnyder/go-i18n/i18n"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -17,13 +17,13 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
l4g "github.com/alecthomas/log4go"
|
l4g "github.com/alecthomas/log4go"
|
||||||
"github.com/mattermost/platform/app"
|
"github.com/mattermost/mattermost-server/app"
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/store"
|
"github.com/mattermost/mattermost-server/store"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
"github.com/mattermost/platform/wsapi"
|
"github.com/mattermost/mattermost-server/wsapi"
|
||||||
|
|
||||||
"github.com/mattermost/platform/jobs"
|
"github.com/mattermost/mattermost-server/jobs"
|
||||||
s3 "github.com/minio/minio-go"
|
s3 "github.com/minio/minio-go"
|
||||||
"github.com/minio/minio-go/pkg/credentials"
|
"github.com/minio/minio-go/pkg/credentials"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -7,9 +7,9 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
l4g "github.com/alecthomas/log4go"
|
l4g "github.com/alecthomas/log4go"
|
||||||
"github.com/mattermost/platform/app"
|
"github.com/mattermost/mattermost-server/app"
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func InitBrand() {
|
func InitBrand() {
|
||||||
|
|||||||
@@ -7,9 +7,9 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
l4g "github.com/alecthomas/log4go"
|
l4g "github.com/alecthomas/log4go"
|
||||||
"github.com/mattermost/platform/app"
|
"github.com/mattermost/mattermost-server/app"
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func InitChannel() {
|
func InitChannel() {
|
||||||
|
|||||||
@@ -11,9 +11,9 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/store"
|
"github.com/mattermost/mattermost-server/store"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestCreateChannel(t *testing.T) {
|
func TestCreateChannel(t *testing.T) {
|
||||||
|
|||||||
@@ -7,9 +7,9 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
l4g "github.com/alecthomas/log4go"
|
l4g "github.com/alecthomas/log4go"
|
||||||
"github.com/mattermost/platform/app"
|
"github.com/mattermost/mattermost-server/app"
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func InitCluster() {
|
func InitCluster() {
|
||||||
|
|||||||
@@ -10,9 +10,9 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
l4g "github.com/alecthomas/log4go"
|
l4g "github.com/alecthomas/log4go"
|
||||||
"github.com/mattermost/platform/app"
|
"github.com/mattermost/mattermost-server/app"
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func InitCommand() {
|
func InitCommand() {
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ package api4
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestHelpCommand(t *testing.T) {
|
func TestHelpCommand(t *testing.T) {
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestCreateCommand(t *testing.T) {
|
func TestCreateCommand(t *testing.T) {
|
||||||
|
|||||||
@@ -8,9 +8,9 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
l4g "github.com/alecthomas/log4go"
|
l4g "github.com/alecthomas/log4go"
|
||||||
"github.com/mattermost/platform/app"
|
"github.com/mattermost/mattermost-server/app"
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
"github.com/mssola/user_agent"
|
"github.com/mssola/user_agent"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -13,10 +13,10 @@ import (
|
|||||||
l4g "github.com/alecthomas/log4go"
|
l4g "github.com/alecthomas/log4go"
|
||||||
goi18n "github.com/nicksnyder/go-i18n/i18n"
|
goi18n "github.com/nicksnyder/go-i18n/i18n"
|
||||||
|
|
||||||
"github.com/mattermost/platform/app"
|
"github.com/mattermost/mattermost-server/app"
|
||||||
"github.com/mattermost/platform/einterfaces"
|
"github.com/mattermost/mattermost-server/einterfaces"
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Context struct {
|
type Context struct {
|
||||||
|
|||||||
@@ -7,9 +7,9 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
l4g "github.com/alecthomas/log4go"
|
l4g "github.com/alecthomas/log4go"
|
||||||
"github.com/mattermost/platform/app"
|
"github.com/mattermost/mattermost-server/app"
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func InitElasticsearch() {
|
func InitElasticsearch() {
|
||||||
|
|||||||
@@ -9,10 +9,10 @@ import (
|
|||||||
|
|
||||||
l4g "github.com/alecthomas/log4go"
|
l4g "github.com/alecthomas/log4go"
|
||||||
|
|
||||||
"github.com/mattermost/platform/app"
|
"github.com/mattermost/mattermost-server/app"
|
||||||
"github.com/mattermost/platform/einterfaces"
|
"github.com/mattermost/mattermost-server/einterfaces"
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func InitEmoji() {
|
func InitEmoji() {
|
||||||
|
|||||||
@@ -9,8 +9,8 @@ import (
|
|||||||
_ "image/gif"
|
_ "image/gif"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestCreateEmoji(t *testing.T) {
|
func TestCreateEmoji(t *testing.T) {
|
||||||
|
|||||||
@@ -10,9 +10,9 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
l4g "github.com/alecthomas/log4go"
|
l4g "github.com/alecthomas/log4go"
|
||||||
"github.com/mattermost/platform/app"
|
"github.com/mattermost/mattermost-server/app"
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|||||||
@@ -10,10 +10,10 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/mattermost/platform/app"
|
"github.com/mattermost/mattermost-server/app"
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/store"
|
"github.com/mattermost/mattermost-server/store"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestUploadFile(t *testing.T) {
|
func TestUploadFile(t *testing.T) {
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
l4g "github.com/alecthomas/log4go"
|
l4g "github.com/alecthomas/log4go"
|
||||||
"github.com/mattermost/platform/app"
|
"github.com/mattermost/mattermost-server/app"
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
func InitJob() {
|
func InitJob() {
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/store"
|
"github.com/mattermost/mattermost-server/store"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestCreateJob(t *testing.T) {
|
func TestCreateJob(t *testing.T) {
|
||||||
|
|||||||
@@ -7,9 +7,9 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
l4g "github.com/alecthomas/log4go"
|
l4g "github.com/alecthomas/log4go"
|
||||||
"github.com/mattermost/platform/app"
|
"github.com/mattermost/mattermost-server/app"
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func InitLdap() {
|
func InitLdap() {
|
||||||
|
|||||||
@@ -9,9 +9,9 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
l4g "github.com/alecthomas/log4go"
|
l4g "github.com/alecthomas/log4go"
|
||||||
"github.com/mattermost/platform/app"
|
"github.com/mattermost/mattermost-server/app"
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func InitOAuth() {
|
func InitOAuth() {
|
||||||
|
|||||||
@@ -9,8 +9,8 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestCreateOAuthApp(t *testing.T) {
|
func TestCreateOAuthApp(t *testing.T) {
|
||||||
|
|||||||
@@ -7,9 +7,9 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
l4g "github.com/alecthomas/log4go"
|
l4g "github.com/alecthomas/log4go"
|
||||||
"github.com/mattermost/platform/app"
|
"github.com/mattermost/mattermost-server/app"
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
const OPEN_GRAPH_METADATA_CACHE_SIZE = 10000
|
const OPEN_GRAPH_METADATA_CACHE_SIZE = 10000
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import (
|
|||||||
|
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestGetOpenGraphMetadata(t *testing.T) {
|
func TestGetOpenGraphMetadata(t *testing.T) {
|
||||||
|
|||||||
@@ -9,9 +9,9 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
l4g "github.com/alecthomas/log4go"
|
l4g "github.com/alecthomas/log4go"
|
||||||
"github.com/mattermost/platform/app"
|
"github.com/mattermost/mattermost-server/app"
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -8,9 +8,9 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
l4g "github.com/alecthomas/log4go"
|
l4g "github.com/alecthomas/log4go"
|
||||||
"github.com/mattermost/platform/app"
|
"github.com/mattermost/mattermost-server/app"
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func InitPost() {
|
func InitPost() {
|
||||||
|
|||||||
@@ -14,9 +14,9 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/mattermost/platform/app"
|
"github.com/mattermost/mattermost-server/app"
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestCreatePost(t *testing.T) {
|
func TestCreatePost(t *testing.T) {
|
||||||
|
|||||||
@@ -7,9 +7,9 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
l4g "github.com/alecthomas/log4go"
|
l4g "github.com/alecthomas/log4go"
|
||||||
"github.com/mattermost/platform/app"
|
"github.com/mattermost/mattermost-server/app"
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func InitPreference() {
|
func InitPreference() {
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestGetPreferences(t *testing.T) {
|
func TestGetPreferences(t *testing.T) {
|
||||||
|
|||||||
@@ -7,9 +7,9 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
l4g "github.com/alecthomas/log4go"
|
l4g "github.com/alecthomas/log4go"
|
||||||
"github.com/mattermost/platform/app"
|
"github.com/mattermost/mattermost-server/app"
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func InitReaction() {
|
func InitReaction() {
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import (
|
|||||||
|
|
||||||
"reflect"
|
"reflect"
|
||||||
|
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestSaveReaction(t *testing.T) {
|
func TestSaveReaction(t *testing.T) {
|
||||||
|
|||||||
@@ -8,9 +8,9 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
l4g "github.com/alecthomas/log4go"
|
l4g "github.com/alecthomas/log4go"
|
||||||
"github.com/mattermost/platform/app"
|
"github.com/mattermost/mattermost-server/app"
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func InitSaml() {
|
func InitSaml() {
|
||||||
|
|||||||
@@ -8,9 +8,9 @@ import (
|
|||||||
|
|
||||||
l4g "github.com/alecthomas/log4go"
|
l4g "github.com/alecthomas/log4go"
|
||||||
|
|
||||||
"github.com/mattermost/platform/app"
|
"github.com/mattermost/mattermost-server/app"
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func InitStatus() {
|
func InitStatus() {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package api4
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestGetUserStatus(t *testing.T) {
|
func TestGetUserStatus(t *testing.T) {
|
||||||
|
|||||||
@@ -11,9 +11,9 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
l4g "github.com/alecthomas/log4go"
|
l4g "github.com/alecthomas/log4go"
|
||||||
"github.com/mattermost/platform/app"
|
"github.com/mattermost/mattermost-server/app"
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func InitSystem() {
|
func InitSystem() {
|
||||||
|
|||||||
@@ -6,9 +6,9 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
l4g "github.com/alecthomas/log4go"
|
l4g "github.com/alecthomas/log4go"
|
||||||
"github.com/mattermost/platform/app"
|
"github.com/mattermost/mattermost-server/app"
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestGetPing(t *testing.T) {
|
func TestGetPing(t *testing.T) {
|
||||||
|
|||||||
@@ -10,9 +10,9 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
l4g "github.com/alecthomas/log4go"
|
l4g "github.com/alecthomas/log4go"
|
||||||
"github.com/mattermost/platform/app"
|
"github.com/mattermost/mattermost-server/app"
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|||||||
@@ -14,8 +14,8 @@ import (
|
|||||||
|
|
||||||
"encoding/base64"
|
"encoding/base64"
|
||||||
|
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestCreateTeam(t *testing.T) {
|
func TestCreateTeam(t *testing.T) {
|
||||||
|
|||||||
@@ -10,10 +10,10 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
l4g "github.com/alecthomas/log4go"
|
l4g "github.com/alecthomas/log4go"
|
||||||
"github.com/mattermost/platform/app"
|
"github.com/mattermost/mattermost-server/app"
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/store"
|
"github.com/mattermost/mattermost-server/store"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func InitUser() {
|
func InitUser() {
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -10,9 +10,9 @@ import (
|
|||||||
|
|
||||||
l4g "github.com/alecthomas/log4go"
|
l4g "github.com/alecthomas/log4go"
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
"github.com/mattermost/platform/app"
|
"github.com/mattermost/mattermost-server/app"
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func InitWebhook() {
|
func InitWebhook() {
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestCreateIncomingWebhook(t *testing.T) {
|
func TestCreateIncomingWebhook(t *testing.T) {
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
l4g "github.com/alecthomas/log4go"
|
l4g "github.com/alecthomas/log4go"
|
||||||
"github.com/mattermost/platform/app"
|
"github.com/mattermost/mattermost-server/app"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func InitWebrtc() {
|
func InitWebrtc() {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ package api4
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestGetWebrtcToken(t *testing.T) {
|
func TestGetWebrtcToken(t *testing.T) {
|
||||||
|
|||||||
@@ -8,9 +8,9 @@ import (
|
|||||||
|
|
||||||
l4g "github.com/alecthomas/log4go"
|
l4g "github.com/alecthomas/log4go"
|
||||||
"github.com/gorilla/websocket"
|
"github.com/gorilla/websocket"
|
||||||
"github.com/mattermost/platform/app"
|
"github.com/mattermost/mattermost-server/app"
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func InitWebSocket() {
|
func InitWebSocket() {
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestWebSocket(t *testing.T) {
|
func TestWebSocket(t *testing.T) {
|
||||||
|
|||||||
10
app/admin.go
10
app/admin.go
@@ -14,11 +14,11 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
l4g "github.com/alecthomas/log4go"
|
l4g "github.com/alecthomas/log4go"
|
||||||
"github.com/mattermost/platform/einterfaces"
|
"github.com/mattermost/mattermost-server/einterfaces"
|
||||||
"github.com/mattermost/platform/jobs"
|
"github.com/mattermost/mattermost-server/jobs"
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/store"
|
"github.com/mattermost/mattermost-server/store"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func GetLogs(page, perPage int) ([]string, *model.AppError) {
|
func GetLogs(page, perPage int) ([]string, *model.AppError) {
|
||||||
|
|||||||
@@ -5,10 +5,10 @@ package app
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
l4g "github.com/alecthomas/log4go"
|
l4g "github.com/alecthomas/log4go"
|
||||||
"github.com/mattermost/platform/einterfaces"
|
"github.com/mattermost/mattermost-server/einterfaces"
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/store"
|
"github.com/mattermost/mattermost-server/store"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ package app
|
|||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/mattermost/platform/utils"
|
"github.com/mattermost/mattermost-server/utils"
|
||||||
|
|
||||||
l4g "github.com/alecthomas/log4go"
|
l4g "github.com/alecthomas/log4go"
|
||||||
)
|
)
|
||||||
|
|||||||
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Ссылка в новой задаче
Block a user