testutil

package
v3.1.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildDeploymentID

func BuildDeploymentID(t *testing.T) string

BuildDeploymentID allows to create a deploymentID from the test name value

func NewMockClient

func NewMockClient(doer func(*http.Request) (*http.Response, error)) *http.Client

NewMockClient creates an http.Client that will produce the given response

func NewTestConsulInstance

func NewTestConsulInstance(t *testing.T) (*testutil.TestServer, *api.Client)

NewTestConsulInstance allows to :

  • creates and returns a new Consul server and client
  • starts a Consul Publisher

Warning: You need to defer the server stop command in the caller

Types

This section is empty.

Jump to

Keyboard shortcuts

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