Expand description
§s2-testcontainers
Testcontainers helpers for the S2 Docker image, with a paved path for s2-lite integration tests.
See examples/s2_lite.rs for a complete example that
starts s2-lite, builds an SDK client, and ensures a basin/stream.
For lower-level composition with testcontainers, use s2_image() for the raw S2 Docker image or s2_lite_image() for a container request with the lite subcommand configured:
use s2_testcontainers::{s2_config_for_endpoint, s2_image, s2_lite_image};
let image = s2_image();
let request = s2_lite_image();
let config = s2_config_for_endpoint("http://localhost:8080", "ignored").unwrap();Structs§
- S2Lite
- Running s2-lite Testcontainers instance.
Enums§
- Error
- Errors from s2-testcontainers helpers.
Constants§
- DEFAULT_
ACCESS_ TOKEN - Default access token used by
S2Lite::client. - DEFAULT_
TAG - Default S2 image tag.
- IMAGE
- Image repository for the S2 Docker image.
- PORT
- Port exposed by s2-lite.
Functions§
- s2_
config_ for_ endpoint - Build an
S2Configwired to use an endpoint for both account and basin APIs. - s2_
image - Return the default S2 Docker
GenericImage. - s2_
image_ with_ tag - Return an S2 Docker
GenericImagewith a specific tag. - s2_
lite_ image - Return the default S2 Docker
ContainerRequestconfigured to runs2 lite. - s2_
lite_ image_ with_ tag - Return an S2 Docker
ContainerRequestwith a specific tag configured to runs2 lite.
Type Aliases§
- Result
- Result type for this crate.