testsuit

package
v1.16.5 Latest Latest
Warning

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

Go to latest
Published: May 26, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 3 more Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MockRoutingV2 added in v1.16.0

func MockRoutingV2(t *testing.T, cnt int32) []*apitraffic.RouteRule

func RespSuccess

func RespSuccess(resp api.ResponseMessage) bool

判断一个resp是否执行成功

Types

type Bootstrap

type Bootstrap struct {
	Logger map[string]*commonlog.Options
}

type DiscoverTestSuit

type DiscoverTestSuit struct {
	DefaultCtx context.Context

	Storage store.Store
	// contains filtered or unexported fields
}

func (*DiscoverTestSuit) Destroy

func (d *DiscoverTestSuit) Destroy()

func (*DiscoverTestSuit) DiscoverServer

func (d *DiscoverTestSuit) DiscoverServer() service.DiscoverServer

func (*DiscoverTestSuit) HealthCheckServer

func (d *DiscoverTestSuit) HealthCheckServer() *healthcheck.Server

func (*DiscoverTestSuit) Initialize

func (d *DiscoverTestSuit) Initialize(opts ...options) error

func (*DiscoverTestSuit) NamespaceServer

func (d *DiscoverTestSuit) NamespaceServer() ns.NamespaceOperateServer

func (*DiscoverTestSuit) OriginDiscoverServer

func (d *DiscoverTestSuit) OriginDiscoverServer() service.DiscoverServer

func (*DiscoverTestSuit) UpdateCacheInterval

func (d *DiscoverTestSuit) UpdateCacheInterval() time.Duration

type TestConfig

type TestConfig struct {
	Bootstrap    Bootstrap          `yaml:"bootstrap"`
	Cache        cache.Config       `yaml:"cache"`
	Namespace    ns.Config          `yaml:"namespace"`
	Naming       service.Config     `yaml:"naming"`
	Config       config.Config      `yaml:"config"`
	HealthChecks healthcheck.Config `yaml:"healthcheck"`
	Store        store.Config       `yaml:"store"`
	Auth         auth.Config        `yaml:"auth"`
	Plugin       plugin.Config      `yaml:"plugin"`
}

Jump to

Keyboard shortcuts

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