integrate

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

README

NOTE

This is a deprecated test cases directory. We will move these cases into test/cases. Do NOT add new test cases into here. ADD new test cases into test/cases instead. BUT if the cases in this directory are failed, NEED to check and fix them.

Documentation

Index

Constants

View Source
const HTTPTestPath = "test/path"

Variables

This section is empty.

Functions

This section is empty.

Types

type TestCase

type TestCase struct {
	AppProtocol    types.ProtocolName
	MeshProtocol   types.ProtocolName
	C              chan error
	T              *testing.T
	AppServer      util.UpstreamServer
	ClientMeshAddr string
	ServerMeshAddr string
	Finish         chan bool
}

func NewTestCase

func NewTestCase(t *testing.T, app, mesh types.ProtocolName, server util.UpstreamServer) *TestCase

func (*TestCase) FinishCase

func (c *TestCase) FinishCase()

Finish case and wait close returns

func (*TestCase) RunCase

func (c *TestCase) RunCase(n int, interval int)

mesh to mesh use tls if "istls" is true client do "n" times request, interval time (ms)

func (*TestCase) Start

func (c *TestCase) Start(tls bool)

client - mesh - mesh - server

func (*TestCase) StartProxy

func (c *TestCase) StartProxy()

client - mesh - server not support tls ignore parameter : mesh protocol

type XTestCase added in v0.11.0

type XTestCase struct {
	TestCase
	SubProtocol types.ProtocolName
}

XProtocol case, should use sub-protocol

func NewXTestCase added in v0.11.0

func NewXTestCase(t *testing.T, subProtocol types.ProtocolName, server util.UpstreamServer) *XTestCase

func (*XTestCase) RunCase added in v0.11.0

func (c *XTestCase) RunCase(n int, interval int)

mesh to mesh use tls if "istls" is true client do "n" times request, interval time (ms)

func (*XTestCase) Start added in v0.11.0

func (c *XTestCase) Start(tls bool)

func (*XTestCase) StartProxy added in v0.11.0

func (c *XTestCase) StartProxy()

client - mesh - server not support tls ignore parameter : mesh protocol

Jump to

Keyboard shortcuts

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