Documentation ¶
Index ¶
- func WaitForACLReplication(t *testing.T, rpc rpcFn, dc string, ...)
- func WaitForActiveCARoot(t *testing.T, rpc rpcFn, dc string, expect *structs.CARoot)
- func WaitForAntiEntropySync() waitOption
- func WaitForLeader(t *testing.T, rpc rpcFn, dc string, options ...waitOption)
- func WaitForServiceIntentions(t *testing.T, rpc rpcFn, dc string)
- func WaitForTestAgent(t *testing.T, rpc rpcFn, dc string, options ...waitOption)
- func WaitUntilNoLeader(t *testing.T, rpc rpcFn, dc string, options ...waitOption)
- func WithToken(token string) waitOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WaitForACLReplication ¶ added in v1.7.0
func WaitForActiveCARoot ¶ added in v1.7.0
WaitForActiveCARoot polls until the server returns an active Connect root CA with the same ID field as expect. If expect is nil, it just waits until _any_ active root is returned. This is useful because initializing CA happens after raft leadership is gained so WaitForLeader isn't sufficient to be sure that the CA is fully initialized.
func WaitForAntiEntropySync ¶ added in v1.6.2
func WaitForAntiEntropySync() waitOption
func WaitForLeader ¶
WaitForLeader ensures we have a leader and a node registration.
func WaitForServiceIntentions ¶ added in v1.9.0
WaitForServiceIntentions waits until the server can accept config entry kinds of service-intentions meaning any migration bootstrapping from pre-1.9 intentions has completed.
func WaitForTestAgent ¶ added in v1.2.3
WaitForTestAgent ensures we have a node with serfHealth check registered
func WaitUntilNoLeader ¶ added in v1.2.3
WaitUntilNoLeader ensures no leader is present, useful for testing lost leadership.
Types ¶
This section is empty.