s2-testcontainers 0.36.8

Testcontainers helpers for the S2 Docker image
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# s2-testcontainers

Testcontainers helpers for the S2 Docker image, with a paved path for `s2-lite` integration tests.

See [`examples/s2_lite.rs`](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:

```rust
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();
```