Documentation
¶
Index ¶
- Constants
- type FabricTestContext
- func (ctx *FabricTestContext) NewControlChannelListener() channel.UnderlayListener
- func (ctx *FabricTestContext) NewHttpClient(transport *http.Transport) *http.Client
- func (ctx *FabricTestContext) NewRestClient(i identity.Identity) *resty.Client
- func (ctx *FabricTestContext) NewRestClientWithDefaults() *resty.Client
- func (ctx *FabricTestContext) NewTransport(i identity.Identity) *http.Transport
- func (ctx *FabricTestContext) StartServer()
- func (ctx *FabricTestContext) StartServerFor(test string, clean bool)
- func (ctx *FabricTestContext) T() *testing.T
- func (ctx *FabricTestContext) Teardown()
- type RestClient
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)
Click to show internal directories.
Click to hide internal directories.