Help us shape the future of Go! Take the 2026 Go Developer Survey

objtesting

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForeachStore

func ForeachStore(t *testing.T, testFn func(t *testing.T, bkt objstore.Bucket))

ForeachStore runs given test using all available objstore implementations. For each it creates a new bucket with a random name and a cleanup function that deletes it after test was run. Use THANOS_TEST_OBJSTORE_SKIP to skip explicitly certain object storages.

func IsObjStoreSkipped added in v0.26.0

func IsObjStoreSkipped(t *testing.T, provider client.ObjProvider) bool

IsObjStoreSkipped returns true if given provider ID is found in THANOS_TEST_OBJSTORE_SKIP array delimited by comma e.g: THANOS_TEST_OBJSTORE_SKIP=GCS,S3,AZURE,SWIFT,COS,ALIYUNOSS,BOS.

Types

This section is empty.

Jump to

Keyboard shortcuts

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