Documentation ¶
Index ¶
- Constants
- func RequireEnvoyVersionsTestServer(t *testing.T, v version.Version) *httptest.Server
- func RequireFakeEnvoy(t *testing.T, path string)
- func RequireFakeEnvoyTarGz(t *testing.T, v version.Version) ([]byte, version.SHA256Sum)
- func RequireRun(t *testing.T, shutdown func(), r Runner, stderr io.Reader, args ...string) (err error)
- func TarballURL(baseURL, goos, goarch string, v version.Version) version.TarballURL
- type Runner
Constants ¶
View Source
const ( // FakeReleaseDate helps us make sure main code doesn't accidentally write the system time instead of the expected. FakeReleaseDate = version.ReleaseDate("2020-12-31") )
Variables ¶
This section is empty.
Functions ¶
func RequireEnvoyVersionsTestServer ¶
RequireEnvoyVersionsTestServer serves "/envoy-versions.json", containing download links a fake Envoy archive.
func RequireFakeEnvoy ¶
RequireFakeEnvoy writes fakeEnvoyBin to the given path
func RequireFakeEnvoyTarGz ¶
RequireFakeEnvoyTarGz makes a fake envoy.tar.gz
func RequireRun ¶
func RequireRun(t *testing.T, shutdown func(), r Runner, stderr io.Reader, args ...string) (err error)
RequireRun executes Run on the given Runtime and calls shutdown after it started.
func TarballURL ¶
func TarballURL(baseURL, goos, goarch string, v version.Version) version.TarballURL
TarballURL gives the expected download URL for the given runtime.GOOS and Envoy version.
Types ¶
Directories ¶
Path | Synopsis |
---|---|
Package morerequire includes more require functions than "github.com/stretchr/testify/require" Do not add dependencies on any main code as it will cause cycles.
|
Package morerequire includes more require functions than "github.com/stretchr/testify/require" Do not add dependencies on any main code as it will cause cycles. |
Click to show internal directories.
Click to hide internal directories.