mtest

package
v0.0.0-...-be347a3 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultServerConfig = ServerConfig{
	ManagementPathPrefix: "",
	DataDir:              "../_meta/testdata/",
}

DefaultServerConfig is the default configuration of a testing server

Functions

func GetIntegrationConfig

func GetIntegrationConfig(host string) map[string]interface{}

GetIntegrationConfig generates a base configuration with common values for integration tests

func Server

func Server(t *testing.T, c ServerConfig) *httptest.Server

Server starts a mocked RabbitMQ management API, it has to be closed with `server.Close()`

Types

type ServerConfig

type ServerConfig struct {
	ManagementPathPrefix string
	DataDir              string
}

ServerConfig is the configuration of a testing server

Jump to

Keyboard shortcuts

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