Package brokertest provides utilities for testing components requiring a live Gazette broker.
CreateJournals using the Broker Apply API, and wait for them to be allocated.
Journal returns |spec| after applying reasonable test defaults for fields which are not already set.
Broker is a lightweight, embedded Gazette broker suitable for testing client functionality which depends on the availability of the Gazette service.
NewBroker builds and returns an in-process Broker identified by |zone| and |suffix|.
Client returns a RoutedJournalClient wrapping the GRPCLoopback.
Endpoint of the test Broker.
Signal the Broker to exit. Wait on its |Tasks| to confirm it exited. Note other Broker(s) must be available to take over assignments.
WaitForConsistency of the named journal until the Context is cancelled. If |routeOut| is non-nil, it's populated with the current journal Route.