testutils

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FirstFatalError

func FirstFatalError(_ *testing.T, output string) (model.TestFatalErrorHandlerContents, error)

func GetJobFromTestOutput

func GetJobFromTestOutput(ctx context.Context, t *testing.T, c clientv2.API, out string) *models.Job

func GetJobFromTestOutputLegacy added in v1.1.0

func GetJobFromTestOutputLegacy(ctx context.Context, t *testing.T, c *client.APIClient, out string) model.Job

func IsIPFSEnabled added in v1.4.0

func IsIPFSEnabled(ipfsConnect string) bool

IsIPFSEnabled will return true if the test is running in an environment that can support IPFS.

func MakeJobWithOpts added in v1.0.4

func MakeJobWithOpts(t testing.TB, opts ...legacy_job.SpecOpt) model.Job

func MakeNoopJob

func MakeNoopJob(t testing.TB) *model.Job

func MakeSpecWithOpts added in v1.0.4

func MakeSpecWithOpts(t testing.TB, opts ...legacy_job.SpecOpt) model.Spec

func MustHaveIPFS added in v1.4.0

func MustHaveIPFS(t testing.TB, ipfsConnect string)

MustHaveIPFS will skip the test if the test is running in an environment that cannot support IPFS.

func SkipIfArm

func SkipIfArm(_ *testing.T, _ string)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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