Expand description
This crate contains common utilities for testing.
It’s not intended for use outside of iceberg-rust.
Macros§
- normalize_
test_ name_ with_ parts - Macro to generate a normalized test name with module path prefix. Takes one or more string parts and joins them with the module path.
Constants§
- DEFAULT_
GCS_ PORT - DEFAULT_
GLUE_ PORT - DEFAULT_
HMS_ PORT - DEFAULT_
MINIO_ PORT - DEFAULT_
REST_ CATALOG_ PORT - ENV_
GCS_ ENDPOINT - ENV_
GLUE_ ENDPOINT - ENV_
HMS_ ENDPOINT - ENV_
MINIO_ ENDPOINT - ENV_
REST_ CATALOG_ ENDPOINT
Functions§
- cleanup_
namespace - Helper to clean up a namespace and its tables before a test runs. This handles the case where previous test runs left data in the persistent database.
- get_
gcs_ endpoint - Returns the GCS (fake-gcs-server) endpoint. Checks ICEBERG_TEST_GCS_ENDPOINT env var, otherwise returns localhost default.
- get_
glue_ endpoint - Returns the Glue (Moto mock) endpoint. Checks ICEBERG_TEST_GLUE_ENDPOINT env var, otherwise returns localhost default.
- get_
hms_ endpoint - Returns the HMS (Hive Metastore) endpoint. Checks ICEBERG_TEST_HMS_ENDPOINT env var, otherwise returns localhost default.
- get_
minio_ endpoint - Returns the MinIO S3-compatible endpoint. Checks ICEBERG_TEST_MINIO_ENDPOINT env var, otherwise returns localhost default.
- get_
rest_ catalog_ endpoint - Returns the REST catalog endpoint. Checks ICEBERG_TEST_REST_ENDPOINT env var, otherwise returns localhost default.
- normalize_
test_ name - set_up