Documentation ¶
Index ¶
- func DumpContainerLogs(id string) []byte
- func Get(t *testing.T, url string, headers map[string]string) (*http.Response, error)
- func NewTestLoger() (*zap.SugaredLogger, func())
- func Post(t *testing.T, url, body string, headers map[string]string) (*http.Response, error)
- func StopContainer(id string) error
- func StopDB(c *Container)
- type Container
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DumpContainerLogs ¶
DumpContainerLogs outputs logs from the running docker container.
func NewTestLoger ¶
func NewTestLoger() (*zap.SugaredLogger, func())
NewTestLoger creates a new logger for testing. nolint
func StopContainer ¶
StopContainer stops and removes the specified container.
Types ¶
type Container ¶
Container tracks information about the docker container started for tests.
func StartContainer ¶
StartContainer starts the specified container for running tests.
Click to show internal directories.
Click to hide internal directories.