testutil

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package testutil provides utilities for test.

Index

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 GetIndexSet(cl *client.Client, server *mockserver.Server, prefix string) (*graylog.IndexSet, func(string), error)

func GetNonAdminUser

func GetNonAdminUser(cl *client.Client) (*graylog.User, error)

func GetRoleOrCreate

func GetRoleOrCreate(cl *client.Client, name string) (*graylog.Role, error)

func GetServerAndClient

func GetServerAndClient() (*mockserver.Server, *client.Client, error)

GetServerAndClient returns server and client.

func GetStream

func GetStream(cl *client.Client, server *mockserver.Server, mode int) (*graylog.Stream, func(string), error)

func IndexSet

func IndexSet(prefix string) *graylog.IndexSet

func Input

func Input() *graylog.Input

func Role

func Role() *graylog.Role

func Stream

func Stream() *graylog.Stream

func StreamRule

func StreamRule() *graylog.StreamRule

func User

func User() *graylog.User

func WaitAfterCreateIndexSet

func WaitAfterCreateIndexSet(server *mockserver.Server)

func WaitAfterDeleteIndexSet

func WaitAfterDeleteIndexSet(server *mockserver.Server)

Types

This section is empty.

Jump to

Keyboard shortcuts

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