tests

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Version used on test server
	Version = "test-version"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type TestAPI

type TestAPI struct {
	// contains filtered or unexported fields
}

TestAPI is a simple struct to start and stop an API for testing

func (*TestAPI) StartAPI

func (ta *TestAPI) StartAPI(t *testing.T, apiIPPort string, cert, key, caCert string, remaining int, requireClientCert bool)

StartAPI is exported to be useful on other libraries tests. Starts the api in testing mode

func (*TestAPI) StartAPIWithService added in v0.2.0

func (ta *TestAPI) StartAPIWithService(t *testing.T, apiIPPort string, cert, key, caCert string, remaining int, requireClientCert bool, srv *service.Service)

StartAPIWithService is exported to be useful on other libraries tests. Starts the api in testing mode

func (*TestAPI) StopAPI

func (ta *TestAPI) StopAPI(t *testing.T) (err error)

StopAPI stops the API for testing

Jump to

Keyboard shortcuts

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