Documentation
¶
Index ¶
- type Option
- type Permutation
- type PermutationOptions
- type Stalled
- func (f *Stalled) Cleanup(t *testing.T)
- func (f *Stalled) CountStalledEvents(t *testing.T, ctx context.Context, id api.InstanceID) int
- func (f *Stalled) FastPath() bool
- func (f *Stalled) ReconnectAsReplica(t *testing.T, ctx context.Context, name string)
- func (f *Stalled) RestartAsReplica(t *testing.T, ctx context.Context, name string)
- func (f *Stalled) Run(t *testing.T, ctx context.Context)
- func (f *Stalled) ScheduleWorkflow(t *testing.T, ctx context.Context) api.InstanceID
- func (f *Stalled) WaitForCompleted(t *testing.T, ctx context.Context, id api.InstanceID)
- func (f *Stalled) WaitForNumberOfOrchestrationStartedEvents(t *testing.T, ctx context.Context, id api.InstanceID, expected int)
- func (f *Stalled) WaitForStalled(t *testing.T, ctx context.Context, id api.InstanceID) *protos.ExecutionStalledEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Permutation ¶ added in v1.17.13
type Permutation struct {
// contains filtered or unexported fields
}
Permutation is a clustered deployment process which drives the stall-and-recover scenario for a given placement of worker clients.
func NewPermutation ¶ added in v1.17.13
func NewPermutation(t *testing.T, opts PermutationOptions) *Permutation
func (*Permutation) Cleanup ¶ added in v1.17.13
func (p *Permutation) Cleanup(t *testing.T)
type PermutationOptions ¶ added in v1.17.13
PermutationOptions configures the worker client placement for a Permutation. Each phase's slice lists the daprd index each worker client connects to; duplicates mean multiple clients on the same daprd.
type Stalled ¶
type Stalled struct {
CurrentClient *client.TaskHubGrpcClient
// contains filtered or unexported fields
}
func (*Stalled) CountStalledEvents ¶
func (*Stalled) FastPath ¶ added in v1.19.0
FastPath reports whether the underlying workflow harness runs its daprds with the WorkflowsFastPath feature flag enabled. Tests use this to branch assertions which differ between the two modes.
func (*Stalled) ReconnectAsReplica ¶ added in v1.17.13
ReconnectAsReplica switches the workflow replica by disconnecting the current client and connecting a new one, without restarting daprd.
func (*Stalled) RestartAsReplica ¶
func (*Stalled) ScheduleWorkflow ¶
func (*Stalled) WaitForCompleted ¶
func (*Stalled) WaitForNumberOfOrchestrationStartedEvents ¶
func (*Stalled) WaitForStalled ¶
func (f *Stalled) WaitForStalled(t *testing.T, ctx context.Context, id api.InstanceID) *protos.ExecutionStalledEvent