Documentation ¶
Index ¶
- func CheckAddPeer(t *testing.T, op *operator.Operator, kind operator.OpKind, containerID uint64)
- func CheckRemovePeer(t *testing.T, op *operator.Operator, containerID uint64)
- func CheckTransferLeader(t *testing.T, op *operator.Operator, kind operator.OpKind, ...)
- func CheckTransferLeaderFrom(t *testing.T, op *operator.Operator, kind operator.OpKind, sourceID uint64)
- func CheckTransferLearner(t *testing.T, op *operator.Operator, kind operator.OpKind, ...)
- func CheckTransferPeer(t *testing.T, op *operator.Operator, kind operator.OpKind, ...)
- func CheckTransferPeerWithLeaderTransfer(t *testing.T, op *operator.Operator, kind operator.OpKind, ...)
- func CheckTransferPeerWithLeaderTransferFrom(t *testing.T, op *operator.Operator, kind operator.OpKind, sourceID uint64)
- func WaitUntil(t *testing.T, f CheckFunc, opts ...WaitOption)
- type CheckFunc
- type WaitOp
- type WaitOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAddPeer ¶
CheckAddPeer checks if the operator is to add peer on specified container.
func CheckRemovePeer ¶
CheckRemovePeer checks if the operator is to remove peer on specified container.
func CheckTransferLeader ¶
func CheckTransferLeader(t *testing.T, op *operator.Operator, kind operator.OpKind, sourceID, targetID uint64)
CheckTransferLeader checks if the operator is to transfer leader between the specified source and target containers.
func CheckTransferLeaderFrom ¶
func CheckTransferLeaderFrom(t *testing.T, op *operator.Operator, kind operator.OpKind, sourceID uint64)
CheckTransferLeaderFrom checks if the operator is to transfer leader out of the specified container.
func CheckTransferLearner ¶
func CheckTransferLearner(t *testing.T, op *operator.Operator, kind operator.OpKind, sourceID, targetID uint64)
CheckTransferLearner checks if the operator is to transfer learner between the specified source and target containers.
func CheckTransferPeer ¶
func CheckTransferPeer(t *testing.T, op *operator.Operator, kind operator.OpKind, sourceID, targetID uint64)
CheckTransferPeer checks if the operator is to transfer peer between the specified source and target containers.
func CheckTransferPeerWithLeaderTransfer ¶
func CheckTransferPeerWithLeaderTransfer(t *testing.T, op *operator.Operator, kind operator.OpKind, sourceID, targetID uint64)
CheckTransferPeerWithLeaderTransfer checks if the operator is to transfer peer between the specified source and target containers and it meanwhile transfers the leader out of source container.
func CheckTransferPeerWithLeaderTransferFrom ¶
func CheckTransferPeerWithLeaderTransferFrom(t *testing.T, op *operator.Operator, kind operator.OpKind, sourceID uint64)
CheckTransferPeerWithLeaderTransferFrom checks if the operator is to transfer peer out of the specified container and it meanwhile transfers the leader out of the container.
Types ¶
type CheckFunc ¶
CheckFunc is a condition checker that passed to WaitUntil. Its implementation may call c.Fatal() to abort the test, or c.Log() to add more information.
type WaitOption ¶
type WaitOption func(op *WaitOp)
WaitOption configures WaitOp
func WithSleepInterval ¶
func WithSleepInterval(sleep time.Duration) WaitOption
WithSleepInterval specify the sleep duration