tests

package
v0.2.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ConsulHTTPPortBase = 28500 // some port that's not Consul's production port
)

Variables

This section is empty.

Functions

This section is empty.

Types

type TestingConsulServer

type TestingConsulServer struct {
	NodeName string
	Client   *capi.Client
	Config   *capi.Config
	// contains filtered or unexported fields
}

func NewTestingConsulServer

func NewTestingConsulServer() *TestingConsulServer

func (*TestingConsulServer) Start

func (server *TestingConsulServer) Start() error

Start consul in dev mode Logs will go to stdout/stderr Each outer Test* func will get a freshly restarted consul

func (*TestingConsulServer) Stop

func (server *TestingConsulServer) Stop() error

Stop consul. Wait up to 2 seconds before killing it forcefully

Jump to

Keyboard shortcuts

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