Skip to main content

Module flora_stack

Module flora_stack 

Source
Expand description

Module with functions to create flora stack (currently, flora server and Typesense) as testcontainers, and functions to facilitate interacting with those in integration tests.

Structs§

FloraStack
Flora stack (flora server and Typesense), running in testcontainers, for integration testing.
FloraStackOptions
Optional parameters for FloraStack.
OmryAddrs
irpc and web socket addresses for the Omry server.

Functions§

api_container
Spawns a new API instance connected to the Omry server running in the given Docker container.
app_container
Returns an app configured to connect to the server running in the given container.
get_host_and_ports
Attempts to use testcontainers::ContainerAsync APIs to get the host and host-side port for the given container.
spawn_and_auth
Spawns a new OmryApi connected to the given address, and authenticates with the given token.