storetest

package
v4.4.5+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2017 License: AGPL-3.0, Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStoreChannel

func NewStoreChannel(result store.StoreResult) store.StoreChannel

NewStoreChannel returns a channel that will receive the given result.

func TestAuditStore

func TestAuditStore(t *testing.T, ss store.Store)

func TestChannelStore

func TestChannelStore(t *testing.T, ss store.Store)

func TestClusterDiscoveryStore

func TestClusterDiscoveryStore(t *testing.T, ss store.Store)

func TestCommandStore

func TestCommandStore(t *testing.T, ss store.Store)

func TestCommandWebhookStore

func TestCommandWebhookStore(t *testing.T, ss store.Store)

func TestComplianceStore

func TestComplianceStore(t *testing.T, ss store.Store)

func TestEmojiStore

func TestEmojiStore(t *testing.T, ss store.Store)

func TestFileInfoStore

func TestFileInfoStore(t *testing.T, ss store.Store)

func TestJobStore

func TestJobStore(t *testing.T, ss store.Store)

func TestLicenseStore

func TestLicenseStore(t *testing.T, ss store.Store)

func TestOAuthStore

func TestOAuthStore(t *testing.T, ss store.Store)

func TestPostStore

func TestPostStore(t *testing.T, ss store.Store)

func TestPreferenceStore

func TestPreferenceStore(t *testing.T, ss store.Store)

func TestReactionStore

func TestReactionStore(t *testing.T, ss store.Store)

func TestSessionStore

func TestSessionStore(t *testing.T, ss store.Store)

func TestStatusStore

func TestStatusStore(t *testing.T, ss store.Store)

func TestSystemStore

func TestSystemStore(t *testing.T, ss store.Store)

func TestTeamStore

func TestTeamStore(t *testing.T, ss store.Store)

func TestUserAccessTokenStore

func TestUserAccessTokenStore(t *testing.T, ss store.Store)

func TestUserStore

func TestUserStore(t *testing.T, ss store.Store)

func TestWebhookStore

func TestWebhookStore(t *testing.T, ss store.Store)

Types

type Container

type Container struct {
	Id              string
	NetworkSettings struct {
		Ports map[string][]struct {
			HostPort string
		}
	}
}

type RunningContainer

type RunningContainer struct {
	Container
}

func NewMySQLContainer

func NewMySQLContainer() (*RunningContainer, *model.SqlSettings, error)

func NewPostgreSQLContainer

func NewPostgreSQLContainer() (*RunningContainer, *model.SqlSettings, error)

func (*RunningContainer) Stop

func (c *RunningContainer) Stop() error

type Store

type Store struct {
	TeamStore             mocks.TeamStore
	ChannelStore          mocks.ChannelStore
	PostStore             mocks.PostStore
	UserStore             mocks.UserStore
	AuditStore            mocks.AuditStore
	ClusterDiscoveryStore mocks.ClusterDiscoveryStore
	ComplianceStore       mocks.ComplianceStore
	SessionStore          mocks.SessionStore
	OAuthStore            mocks.OAuthStore
	SystemStore           mocks.SystemStore
	WebhookStore          mocks.WebhookStore
	CommandStore          mocks.CommandStore
	CommandWebhookStore   mocks.CommandWebhookStore
	PreferenceStore       mocks.PreferenceStore
	LicenseStore          mocks.LicenseStore
	TokenStore            mocks.TokenStore
	EmojiStore            mocks.EmojiStore
	StatusStore           mocks.StatusStore
	FileInfoStore         mocks.FileInfoStore
	ReactionStore         mocks.ReactionStore
	JobStore              mocks.JobStore
	UserAccessTokenStore  mocks.UserAccessTokenStore
}

Store can be used to provide mock stores for testing.

func (*Store) AssertExpectations

func (s *Store) AssertExpectations(t mock.TestingT) bool

func (*Store) Audit

func (s *Store) Audit() store.AuditStore

func (*Store) Channel

func (s *Store) Channel() store.ChannelStore

func (*Store) Close

func (s *Store) Close()

func (*Store) ClusterDiscovery

func (s *Store) ClusterDiscovery() store.ClusterDiscoveryStore

func (*Store) Command

func (s *Store) Command() store.CommandStore

func (*Store) CommandWebhook

func (s *Store) CommandWebhook() store.CommandWebhookStore

func (*Store) Compliance

func (s *Store) Compliance() store.ComplianceStore

func (*Store) DropAllTables

func (s *Store) DropAllTables()

func (*Store) Emoji

func (s *Store) Emoji() store.EmojiStore

func (*Store) FileInfo

func (s *Store) FileInfo() store.FileInfoStore

func (*Store) Job

func (s *Store) Job() store.JobStore

func (*Store) License

func (s *Store) License() store.LicenseStore

func (*Store) MarkSystemRanUnitTests

func (s *Store) MarkSystemRanUnitTests()

func (*Store) OAuth

func (s *Store) OAuth() store.OAuthStore

func (*Store) Post

func (s *Store) Post() store.PostStore

func (*Store) Preference

func (s *Store) Preference() store.PreferenceStore

func (*Store) Reaction

func (s *Store) Reaction() store.ReactionStore

func (*Store) Session

func (s *Store) Session() store.SessionStore

func (*Store) Status

func (s *Store) Status() store.StatusStore

func (*Store) System

func (s *Store) System() store.SystemStore

func (*Store) Team

func (s *Store) Team() store.TeamStore

func (*Store) Token

func (s *Store) Token() store.TokenStore

func (*Store) TotalMasterDbConnections

func (s *Store) TotalMasterDbConnections() int

func (*Store) TotalReadDbConnections

func (s *Store) TotalReadDbConnections() int

func (*Store) TotalSearchDbConnections

func (s *Store) TotalSearchDbConnections() int

func (*Store) User

func (s *Store) User() store.UserStore

func (*Store) UserAccessToken

func (s *Store) UserAccessToken() store.UserAccessTokenStore

func (*Store) Webhook

func (s *Store) Webhook() store.WebhookStore

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL