Versions in this module Expand all Collapse all v5 v5.31.1 Dec 23, 2020 Changes in this version + func AssertLog(t *testing.T, logs *bytes.Buffer, level, message string) + func AssertNoLog(t *testing.T, logs *bytes.Buffer, level, message string) + func GetMockStoreForSetupFunctions() *mocks.Store + func SetupTestResources() (string, error) + type FakeClusterInterface struct + func (c *FakeClusterInterface) ClearMessages() + func (c *FakeClusterInterface) ConfigChanged(previousConfig *model.Config, newConfig *model.Config, sendToOtherServer bool) *model.AppError + func (c *FakeClusterInterface) GetClusterId() string + func (c *FakeClusterInterface) GetClusterInfos() []*model.ClusterInfo + func (c *FakeClusterInterface) GetClusterStats() ([]*model.ClusterStats, *model.AppError) + func (c *FakeClusterInterface) GetLogs(page, perPage int) ([]string, *model.AppError) + func (c *FakeClusterInterface) GetMessages() []*model.ClusterMessage + func (c *FakeClusterInterface) GetMyClusterInfo() *model.ClusterInfo + func (c *FakeClusterInterface) GetPluginStatuses() (model.PluginStatuses, *model.AppError) + func (c *FakeClusterInterface) HealthScore() int + func (c *FakeClusterInterface) IsLeader() bool + func (c *FakeClusterInterface) NotifyMsg(buf []byte) + func (c *FakeClusterInterface) RegisterClusterMessageHandler(event string, crm einterfaces.ClusterMessageHandler) + func (c *FakeClusterInterface) SendClearRoleCacheMessage() + func (c *FakeClusterInterface) SendClusterMessage(message *model.ClusterMessage) + func (c *FakeClusterInterface) StartInterNodeCommunication() + func (c *FakeClusterInterface) StopInterNodeCommunication() + type HelperOptions struct + EnableResources bool + EnableStore bool + type MainHelper struct + ClusterInterface *FakeClusterInterface + SQLStore *sqlstore.SqlStore + SearchEngine *searchengine.Broker + Settings *model.SqlSettings + Store store.Store + func NewMainHelper() *MainHelper + func NewMainHelperWithOptions(options *HelperOptions) *MainHelper + func (h *MainHelper) Close() error + func (h *MainHelper) GetClusterInterface() *FakeClusterInterface + func (h *MainHelper) GetSQLSettings() *model.SqlSettings + func (h *MainHelper) GetSQLStore() *sqlstore.SqlStore + func (h *MainHelper) GetSearchEngine() *searchengine.Broker + func (h *MainHelper) GetStore() store.Store + func (h *MainHelper) Main(m *testing.M) + func (h *MainHelper) PreloadMigrations() + type TestStore struct + func (s *TestStore) Close() Other modules containing this package github.com/adacta-ru/mattermost-server github.com/adacta-ru/mattermost-server/v6