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 TestingT, requireNewUpstream func(t TestingT, out io.Writer, port int), upstreamPortDefault int, extprocBin, extprocConfig string, extprocEnv []string, envoyConfig string, okToDumpLogOnFailure, extProcInProcess bool, ) *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) EnvoyStdoutReset ¶
func (e *TestEnvironment) EnvoyStdoutReset()
EnvoyStdoutReset sets Envoy's stdout log to zero length.
func (*TestEnvironment) ExtProcMetricsPort ¶
func (e *TestEnvironment) ExtProcMetricsPort() int
func (*TestEnvironment) LogOutput ¶
func (e *TestEnvironment) LogOutput(t TestingT)
Click to show internal directories.
Click to hide internal directories.