testutils

package
v1.5.0-alpha9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetJobFromTestOutput

func GetJobFromTestOutput(ctx context.Context, t *testing.T, c clientv2.API, out string) *models.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 MustHaveIPFS added in v1.4.0

func MustHaveIPFS(t testing.TB, cfg types.Bacalhau)

MustHaveIPFS will skip the test if the test is running in an environment that cannot support IPFS. Otherwise it returns an IPFS connect string

func SkipIfArm

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

func StartNats added in v1.5.0

func StartNats(t *testing.T) (*natsserver.Server, *nats.Conn)

StartNats will start a NATS server on a random port and return a server and client instances

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