gcs_testutils

package
v0.0.0-...-1b86ce5 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// GCS bucket where we store test data. Add a folder to this bucket
	// with the tests for a particular component.
	TEST_DATA_BUCKET = "skia-infra-testdata"
)

Variables

This section is empty.

Functions

func DownloadTestDataArchive

func DownloadTestDataArchive(t require.TestingT, bucket, gsPath, targetDir string) error

DownloadTestDataArchive downloads testfiles that are stored in a gz compressed tar archive and decompresses them into the provided target directory.

func DownloadTestDataFile

func DownloadTestDataFile(t require.TestingT, bucket, gsPath, targetPath string) error

DownloadTestDataFile downloads a file with test data from Google Storage. The uriPath identifies what to download from the test bucket in GCS. The content must be publicly accessible. The file will be downloaded and stored at provided target path (regardless of what the original name is). If the the uri ends with '.gz' it will be transparently unzipped.

Types

This section is empty.

Jump to

Keyboard shortcuts

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