It was a good decision in hindsight to keep the public module as 0.x because this would have been a breaking change again. https://mattermost.atlassian.net/browse/MM-53032 ```release-note Changed the Go module path from github.com/mattermost/mattermost-server/server/v8 to github.com/mattermost/mattermost/server/v8. For the public facing module, it's path is also changed from github.com/mattermost/mattermost-server/server/public to github.com/mattermost/mattermost/server/public ```
33 строки
1.1 KiB
Go
33 строки
1.1 KiB
Go
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
package slashcommands
|
|
|
|
import (
|
|
"github.com/mattermost/mattermost/server/public/model"
|
|
"github.com/mattermost/mattermost/server/v8/channels/utils"
|
|
)
|
|
|
|
const (
|
|
UserPassword = "Usr@MMTest123"
|
|
ChannelType = model.ChannelTypeOpen
|
|
BTestTeamDisplayName = "TestTeam"
|
|
BTestTeamName = "z-z-testdomaina"
|
|
BTestTeamEmail = "test@nowhere.com"
|
|
BTestTeamType = model.TeamOpen
|
|
BTestUserName = "Mr. Testing Tester"
|
|
BTestUserEmail = "success+ttester@simulator.amazonses.com"
|
|
BTestUserPassword = "passwd"
|
|
)
|
|
|
|
var (
|
|
TeamNameLen = utils.Range{Begin: 10, End: 20}
|
|
TeamDomainNameLen = utils.Range{Begin: 10, End: 20}
|
|
TeamEmailLen = utils.Range{Begin: 15, End: 30}
|
|
UserNameLen = utils.Range{Begin: 5, End: 20}
|
|
UserEmailLen = utils.Range{Begin: 15, End: 30}
|
|
ChannelDisplayNameLen = utils.Range{Begin: 10, End: 20}
|
|
ChannelNameLen = utils.Range{Begin: 5, End: 20}
|
|
TestImageFileNames = []string{"test.png", "testjpg.jpg", "testgif.gif"}
|
|
)
|