Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TestEnvironment ¶
type TestEnvironment struct {
// contains filtered or unexported fields
}
TestEnvironment holds all the services needed for tests.
func StartTestEnvironment ¶
func StartTestEnvironment(t testing.TB, requireNewUpstream func(t testing.TB, out io.Writer, miscPorts map[string]int), miscPortDefauls map[string]int, extprocBin, extprocConfig string, extprocEnv []string, envoyConfig string, okToDumpLogOnFailure, extProcInProcess bool, mcpWriteTimeout time.Duration, ) *TestEnvironment
StartTestEnvironment starts all required services and returns ports and a closer.
If extProcInProcess is true, then this starts the extproc in-process by directly calling mainlib.Main instead of the built binary. This allows the benchmark test suite to directly do the profiling without the extroc.
func (*TestEnvironment) EnvoyListenerPort ¶
func (e *TestEnvironment) EnvoyListenerPort() int
func (*TestEnvironment) EnvoyStdout ¶
func (e *TestEnvironment) EnvoyStdout() string
EnvoyStdout returns the content of Envoy's stdout (e.g. the access log).
func (*TestEnvironment) ExtProcAdminPort ¶ added in v0.4.0
func (e *TestEnvironment) ExtProcAdminPort() int
func (*TestEnvironment) LogOutput ¶
func (e *TestEnvironment) LogOutput(t testing.TB)
Click to show internal directories.
Click to hide internal directories.