test

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

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

func RequireEnvoyVersionsTestServer(t *testing.T, v version.PatchVersion) *httptest.Server

RequireEnvoyVersionsTestServer serves "/envoy-versions.json", containing download links a fake Envoy archive.

func RequireFakeEnvoyTarGz

func RequireFakeEnvoyTarGz(t *testing.T, v version.PatchVersion) ([]byte, version.SHA256Sum)

RequireFakeEnvoyTarGz makes a fake envoy.tar.gz

func TarballURL

func TarballURL(baseURL, goos, goarch string, v version.PatchVersion) version.TarballURL

TarballURL gives the expected download URL for the given runtime.GOOS and Envoy version.

Types

This section is empty.

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.

Jump to

Keyboard shortcuts

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