testutil

package
v0.0.0-...-ee3d319 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTestServerFromConnector

func NewTestServerFromConnector(port int, sc data.Connector) (*httptest.Server, error)

NewTestServerFromConnector takes in a port and already constructed Connector and creates an REST v2 API server. This is very useful when testing, especially when mocking out sections of the Connector to make sure request occur as expected.

func NewTestServerFromSettings

func NewTestServerFromSettings(settings *evergreen.Settings) (*httptest.Server, error)

NewTestServerFromSettings takes an evergreen.Settings and creates a database backed REST v2 test server. It automatically starts the server on port 9191.

Types

This section is empty.

Jump to

Keyboard shortcuts

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