Documentation ¶
Overview ¶
Package testutil provides utilities for test.
Index ¶
- func DummyAdmin() *graylog.User
- func DummyIndexSetStats() *graylog.IndexSetStats
- func DummyNewStreamRule() *graylog.StreamRule
- func DummyStream() *graylog.Stream
- func DummyStreamRule() *graylog.StreamRule
- func GetIndexSet(cl *client.Client, server *mockserver.Server, prefix string) (*graylog.IndexSet, func(string), error)
- func GetNonAdminUser(cl *client.Client) (*graylog.User, error)
- func GetRoleOrCreate(cl *client.Client, name string) (*graylog.Role, error)
- func GetServerAndClient() (*mockserver.Server, *client.Client, error)
- func GetStream(cl *client.Client, server *mockserver.Server, mode int) (*graylog.Stream, func(string), error)
- func IndexSet(prefix string) *graylog.IndexSet
- func Input() *graylog.Input
- func Role() *graylog.Role
- func Stream() *graylog.Stream
- func StreamRule() *graylog.StreamRule
- func User() *graylog.User
- func WaitAfterCreateIndexSet(server *mockserver.Server)
- func WaitAfterDeleteIndexSet(server *mockserver.Server)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DummyAdmin ¶
func DummyAdmin() *graylog.User
func DummyIndexSetStats ¶
func DummyIndexSetStats() *graylog.IndexSetStats
func DummyNewStreamRule ¶
func DummyNewStreamRule() *graylog.StreamRule
func DummyStream ¶
func DummyStream() *graylog.Stream
func DummyStreamRule ¶
func DummyStreamRule() *graylog.StreamRule
func GetIndexSet ¶
func GetNonAdminUser ¶
func GetServerAndClient ¶
func GetServerAndClient() (*mockserver.Server, *client.Client, error)
GetServerAndClient returns server and client.
func StreamRule ¶
func StreamRule() *graylog.StreamRule
func WaitAfterCreateIndexSet ¶
func WaitAfterCreateIndexSet(server *mockserver.Server)
func WaitAfterDeleteIndexSet ¶
func WaitAfterDeleteIndexSet(server *mockserver.Server)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.