tests

package
v0.24.35 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: Apache-2.0 Imports: 32 Imported by: 1

Documentation

Index

Constants

View Source
const (
	FabricControllerConfFile = "./testdata/config/ctrl.yml"
	FabricRouterConfFile     = "./testdata/config/router-%v.yml"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FabricTestContext added in v0.24.20

type FabricTestContext struct {
	Req *require.Assertions

	LogLevel         string
	ControllerConfig *controller.Config
	// contains filtered or unexported fields
}

func NewFabricTestContext added in v0.24.20

func NewFabricTestContext(t *testing.T) *FabricTestContext

func (*FabricTestContext) NewControlChannelListener added in v0.24.20

func (ctx *FabricTestContext) NewControlChannelListener() channel.UnderlayListener

func (*FabricTestContext) NewHttpClient added in v0.24.20

func (ctx *FabricTestContext) NewHttpClient(transport *http.Transport) *http.Client

func (*FabricTestContext) NewRestClient added in v0.24.20

func (ctx *FabricTestContext) NewRestClient(i identity.Identity) *resty.Client

func (*FabricTestContext) NewRestClientWithDefaults added in v0.24.20

func (ctx *FabricTestContext) NewRestClientWithDefaults() *resty.Client

func (*FabricTestContext) NewTransport added in v0.24.20

func (ctx *FabricTestContext) NewTransport(i identity.Identity) *http.Transport

func (*FabricTestContext) StartServer added in v0.24.20

func (ctx *FabricTestContext) StartServer()

func (*FabricTestContext) StartServerFor added in v0.24.20

func (ctx *FabricTestContext) StartServerFor(test string, clean bool)

func (*FabricTestContext) T added in v0.24.20

func (ctx *FabricTestContext) T() *testing.T

func (*FabricTestContext) Teardown added in v0.24.20

func (ctx *FabricTestContext) Teardown()

type RestClient added in v0.19.7

type RestClient struct {
	*FabricTestContext
	// contains filtered or unexported fields
}

func (*RestClient) EnrollRouter added in v0.19.7

func (self *RestClient) EnrollRouter(id string, name string, certFile string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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