Versions in this module Expand all Collapse all v5 v5.100.1 Jun 2, 2020 v5.100.0 May 26, 2020 Changes in this version + const DEFAULT_SERVER_BUSY_SECONDS + const EMOJI_MAX_AUTOCOMPLETE_ITEMS + const FILE_TEAM_ID + const MAXIMUM_BULK_IMPORT_SIZE + const MAXIMUM_PLUGIN_FILE_SIZE + const MAX_ADD_MEMBERS_BATCH + const MAX_SERVER_BUSY_SECONDS + const OPEN_GRAPH_METADATA_CACHE_SIZE + const PREVIEW_IMAGE_TYPE + const REDIRECT_LOCATION_CACHE_SIZE + const THUMBNAIL_IMAGE_TYPE + var MEDIA_CONTENT_TYPES = [...]string + var ReturnStatusOK = web.ReturnStatusOK + var UNSAFE_CONTENT_TYPES = [...]string + func CheckBadRequestStatus(t *testing.T, resp *model.Response) + func CheckCreatedStatus(t *testing.T, resp *model.Response) + func CheckErrorMessage(t *testing.T, resp *model.Response, errorId string) + func CheckEtag(t *testing.T, data interface{}, resp *model.Response) + func CheckForbiddenStatus(t *testing.T, resp *model.Response) + func CheckInternalErrorStatus(t *testing.T, resp *model.Response) + func CheckNoError(t *testing.T, resp *model.Response) + func CheckNotFoundStatus(t *testing.T, resp *model.Response) + func CheckNotImplementedStatus(t *testing.T, resp *model.Response) + func CheckOKStatus(t *testing.T, resp *model.Response) + func CheckRequestEntityTooLargeStatus(t *testing.T, resp *model.Response) + func CheckServiceUnavailableStatus(t *testing.T, resp *model.Response) + func CheckStartsWith(t *testing.T, value, prefix, message string) + func CheckUnauthorizedStatus(t *testing.T, resp *model.Response) + func CheckUserSanitization(t *testing.T, user *model.User) + func GenerateTestAppName() string + func GenerateTestChannelName() string + func GenerateTestId() string + func GenerateTestTeamName() string + func GenerateTestUsername() string + func Logout(c *Context, w http.ResponseWriter, r *http.Request) + func UseTestStore(store store.Store) + type API struct + BaseRoutes *Routes + ConfigService configservice.ConfigService + GetGlobalAppOptions app.AppOptionCreator + func Init(configservice configservice.ConfigService, ...) *API + func (api *API) ApiHandler(h func(*Context, http.ResponseWriter, *http.Request)) http.Handler + func (api *API) ApiHandlerTrustRequester(h func(*Context, http.ResponseWriter, *http.Request)) http.Handler + func (api *API) ApiSessionRequired(h func(*Context, http.ResponseWriter, *http.Request)) http.Handler + func (api *API) ApiSessionRequiredDisableWhenBusy(h func(*Context, http.ResponseWriter, *http.Request)) http.Handler + func (api *API) ApiSessionRequiredMfa(h func(*Context, http.ResponseWriter, *http.Request)) http.Handler + func (api *API) ApiSessionRequiredTrustRequester(h func(*Context, http.ResponseWriter, *http.Request)) http.Handler + func (api *API) Handle404(w http.ResponseWriter, r *http.Request) + func (api *API) InitAction() + func (api *API) InitBot() + func (api *API) InitBrand() + func (api *API) InitChannel() + func (api *API) InitCluster() + func (api *API) InitCommand() + func (api *API) InitCompliance() + func (api *API) InitConfig() + func (api *API) InitDataRetention() + func (api *API) InitElasticsearch() + func (api *API) InitEmoji() + func (api *API) InitFile() + func (api *API) InitGroup() + func (api *API) InitImage() + func (api *API) InitJob() + func (api *API) InitLdap() + func (api *API) InitLicense() + func (api *API) InitOAuth() + func (api *API) InitOpenGraph() + func (api *API) InitPlugin() + func (api *API) InitPost() + func (api *API) InitPreference() + func (api *API) InitReaction() + func (api *API) InitRole() + func (api *API) InitSaml() + func (api *API) InitScheme() + func (api *API) InitStatus() + func (api *API) InitSystem() + func (api *API) InitTeam() + func (api *API) InitTermsOfService() + func (api *API) InitUser() + func (api *API) InitWebSocket() + func (api *API) InitWebhook() + type Context = web.Context + type Routes struct + ApiRoot *mux.Router + Bot *mux.Router + Bots *mux.Router + Brand *mux.Router + Channel *mux.Router + ChannelByName *mux.Router + ChannelByNameForTeamName *mux.Router + ChannelForUser *mux.Router + ChannelMember *mux.Router + ChannelMembers *mux.Router + ChannelMembersForUser *mux.Router + Channels *mux.Router + ChannelsForTeam *mux.Router + Cluster *mux.Router + Command *mux.Router + Commands *mux.Router + Compliance *mux.Router + DataRetention *mux.Router + Elasticsearch *mux.Router + Emoji *mux.Router + EmojiByName *mux.Router + Emojis *mux.Router + File *mux.Router + Files *mux.Router + Groups *mux.Router + Hooks *mux.Router + Image *mux.Router + IncomingHook *mux.Router + IncomingHooks *mux.Router + Jobs *mux.Router + LDAP *mux.Router + License *mux.Router + OAuth *mux.Router + OAuthApp *mux.Router + OAuthApps *mux.Router + OpenGraph *mux.Router + OutgoingHook *mux.Router + OutgoingHooks *mux.Router + Plugin *mux.Router + Plugins *mux.Router + Post *mux.Router + PostForUser *mux.Router + Posts *mux.Router + PostsForChannel *mux.Router + PostsForUser *mux.Router + Preferences *mux.Router + Public *mux.Router + PublicFile *mux.Router + ReactionByNameForPostForUser *mux.Router + Reactions *mux.Router + Roles *mux.Router + Root *mux.Router + SAML *mux.Router + Schemes *mux.Router + System *mux.Router + Team *mux.Router + TeamByName *mux.Router + TeamForUser *mux.Router + TeamMember *mux.Router + TeamMembers *mux.Router + TeamMembersForUser *mux.Router + Teams *mux.Router + TeamsForUser *mux.Router + TermsOfService *mux.Router + User *mux.Router + UserByEmail *mux.Router + UserByUsername *mux.Router + Users *mux.Router + type TestHelper struct + App *app.App + BasicChannel *model.Channel + BasicChannel2 *model.Channel + BasicDeletedChannel *model.Channel + BasicPost *model.Post + BasicPrivateChannel *model.Channel + BasicPrivateChannel2 *model.Channel + BasicTeam *model.Team + BasicUser *model.User + BasicUser2 *model.User + Client *model.Client4 + ConfigStore config.Store + Group *model.Group + Server *app.Server + SystemAdminClient *model.Client4 + SystemAdminUser *model.User + TeamAdminUser *model.User + func Setup() *TestHelper + func SetupConfig(updateConfig func(cfg *model.Config)) *TestHelper + func SetupEnterprise() *TestHelper + func (me *TestHelper) AddPermissionToRole(permission string, roleName string) + func (me *TestHelper) AddUserToChannel(user *model.User, channel *model.Channel) *model.ChannelMember + func (me *TestHelper) CreateBotWithClient(client *model.Client4) *model.Bot + func (me *TestHelper) CreateBotWithSystemAdminClient() *model.Bot + func (me *TestHelper) CreateChannelWithClient(client *model.Client4, channelType string) *model.Channel + func (me *TestHelper) CreateChannelWithClientAndTeam(client *model.Client4, channelType string, teamId string) *model.Channel + func (me *TestHelper) CreateClient() *model.Client4 + func (me *TestHelper) CreateDmChannel(user *model.User) *model.Channel + func (me *TestHelper) CreateGroup() *model.Group + func (me *TestHelper) CreateMessagePost(message string) *model.Post + func (me *TestHelper) CreateMessagePostNoClient(channel *model.Channel, message string, createAtTime int64) *model.Post + func (me *TestHelper) CreateMessagePostWithClient(client *model.Client4, channel *model.Channel, message string) *model.Post + func (me *TestHelper) CreatePinnedPost() *model.Post + func (me *TestHelper) CreatePinnedPostWithClient(client *model.Client4, channel *model.Channel) *model.Post + func (me *TestHelper) CreatePost() *model.Post + func (me *TestHelper) CreatePostWithClient(client *model.Client4, channel *model.Channel) *model.Post + func (me *TestHelper) CreatePrivateChannel() *model.Channel + func (me *TestHelper) CreatePublicChannel() *model.Channel + func (me *TestHelper) CreateTeam() *model.Team + func (me *TestHelper) CreateTeamWithClient(client *model.Client4) *model.Team + func (me *TestHelper) CreateUser() *model.User + func (me *TestHelper) CreateUserWithClient(client *model.Client4) *model.User + func (me *TestHelper) CreateWebSocketClient() (*model.WebSocketClient, *model.AppError) + func (me *TestHelper) CreateWebSocketClientWithClient(client *model.Client4) (*model.WebSocketClient, *model.AppError) + func (me *TestHelper) CreateWebSocketSystemAdminClient() (*model.WebSocketClient, *model.AppError) + func (me *TestHelper) GenerateTestEmail() string + func (me *TestHelper) InitBasic() *TestHelper + func (me *TestHelper) LinkUserToTeam(user *model.User, team *model.Team) + func (me *TestHelper) LoginBasic() + func (me *TestHelper) LoginBasic2() + func (me *TestHelper) LoginBasic2WithClient(client *model.Client4) + func (me *TestHelper) LoginBasicWithClient(client *model.Client4) + func (me *TestHelper) LoginSystemAdmin() + func (me *TestHelper) LoginSystemAdminWithClient(client *model.Client4) + func (me *TestHelper) LoginTeamAdmin() + func (me *TestHelper) LoginTeamAdminWithClient(client *model.Client4) + func (me *TestHelper) MakeUserChannelAdmin(user *model.User, channel *model.Channel) + func (me *TestHelper) RemovePermissionFromRole(permission string, roleName string) + func (me *TestHelper) RestoreDefaultRolePermissions(data map[string][]string) + func (me *TestHelper) SaveDefaultRolePermissions() map[string][]string + func (me *TestHelper) ShutdownApp() + func (me *TestHelper) TearDown() + func (me *TestHelper) UpdateActiveUser(user *model.User, active bool) + func (me *TestHelper) UpdateUserToNonTeamAdmin(user *model.User, team *model.Team) + func (me *TestHelper) UpdateUserToTeamAdmin(user *model.User, team *model.Team) Other modules containing this package github.com/mad-app/mattermost-server