Documentation ¶
Overview ¶
Package testutils collects common test utilities. Functions here create test stacks meant for integration tests
Index ¶
- func FirstFatalError(_ *testing.T, output string) (model.TestFatalErrorHandlerContents, error)
- func GetJobFromTestOutput(ctx context.Context, t *testing.T, c *publicapi.RequesterAPIClient, out string) model.Job
- func MakeGenericJob() *model.Job
- func MakeJob(engineType model.Engine, verifierType model.Verifier, ...) *model.Job
- func MakeNoopJob() *model.Job
- func SetupTest(ctx context.Context, t *testing.T, nodes int, badActors int, lotusNode bool, ...) (*devstack.DevStack, *system.CleanupManager)
- func SetupTestWithDefaultConfigs(ctx context.Context, t *testing.T, nodes int, badActors int, lotusNode bool, ...) (*devstack.DevStack, *system.CleanupManager)
- func SetupTestWithNoopExecutor(ctx context.Context, t *testing.T, options devstack.DevStackOptions, ...) *devstack.DevStack
- func SkipIfArm(_ *testing.T, _ string)
- func WaitForNodeDiscovery(t *testing.T, requesterNode *node.Node, expectedNodeCount int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FirstFatalError ¶
func GetJobFromTestOutput ¶
func MakeGenericJob ¶
func MakeNoopJob ¶
func SetupTest ¶
func SetupTest( ctx context.Context, t *testing.T, nodes int, badActors int, lotusNode bool, computeConfig node.ComputeConfig, requesterConfig node.RequesterConfig, nodeOverrides ...node.NodeConfig, ) (*devstack.DevStack, *system.CleanupManager)
func SetupTestWithDefaultConfigs ¶ added in v0.3.26
func SetupTestWithNoopExecutor ¶
func SetupTestWithNoopExecutor( ctx context.Context, t *testing.T, options devstack.DevStackOptions, computeConfig node.ComputeConfig, requesterConfig node.RequesterConfig, executorConfig noop_executor.ExecutorConfig, nodeOverrides ...node.NodeConfig, ) *devstack.DevStack
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.