Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions crates/catalog/rest/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ uuid = { workspace = true, features = ["v4"] }
[dev-dependencies]
bytes = { workspace = true }
futures = { workspace = true }
iceberg = { workspace = true, features = ["test-utils"] }
iceberg_test_utils = { path = "../../test_utils", features = ["tests"] }
mockito = { workspace = true }
# `stream` lets tests build a streaming body to exercise HttpRequestBody::Streaming.
Expand Down
5 changes: 4 additions & 1 deletion crates/iceberg/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ repository = { workspace = true }

[features]
default = []
# Exposes `iceberg::test_utils` for use by other crates' tests. Not public API;
# enable it from `[dev-dependencies]` only.
test-utils = ["dep:expect-test"]

[dependencies]
aes-gcm = { workspace = true }
Expand All @@ -54,7 +57,7 @@ bytes = { workspace = true }
chrono = { workspace = true }
crc32fast = { workspace = true }
derive_builder = { workspace = true }
expect-test = { workspace = true }
expect-test = { workspace = true, optional = true }
fastnum = { workspace = true }
flate2 = { workspace = true }
fnv = { workspace = true }
Expand Down
1 change: 0 additions & 1 deletion crates/iceberg/public-api.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3215,7 +3215,6 @@ pub fn iceberg::table::TableBuilder::readonly(self, readonly: bool) -> Self
pub fn iceberg::table::TableBuilder::runtime(self, runtime: iceberg::Runtime) -> Self
pub mod iceberg::test_utils
pub fn iceberg::test_utils::check_record_batches(record_batches: alloc::vec::Vec<arrow_array::record_batch::RecordBatch>, expected_schema: expect_test::Expect, expected_data: expect_test::Expect, ignore_check_columns: &[&str], sort_column: core::option::Option<&str>)
pub async fn iceberg::test_utils::make_encrypted_table() -> iceberg::table::Table
pub fn iceberg::test_utils::test_runtime() -> iceberg::Runtime
pub mod iceberg::transaction
pub struct iceberg::transaction::ActionCommit
Expand Down
2 changes: 1 addition & 1 deletion crates/iceberg/src/inspect/history.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ mod tests {

use crate::TableIdent;
use crate::io::FileIO;
use crate::scan::tests::TableTestFixture;
use crate::spec::TableMetadata;
use crate::table::Table;
use crate::test_utils::scan::TableTestFixture;
use crate::test_utils::{check_record_batches, test_runtime};

fn table_from_metadata_json(metadata_json: &str) -> Table {
Expand Down
2 changes: 1 addition & 1 deletion crates/iceberg/src/inspect/manifests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -289,9 +289,9 @@ mod tests {
use expect_test::expect;
use futures::TryStreamExt;

use crate::scan::tests::TableTestFixture;
use crate::spec::TableMetadata;
use crate::test_utils::check_record_batches;
use crate::test_utils::scan::TableTestFixture;

#[tokio::test]
async fn test_manifests_table() {
Expand Down
2 changes: 1 addition & 1 deletion crates/iceberg/src/inspect/snapshots.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ mod tests {
use expect_test::expect;
use futures::TryStreamExt;

use crate::scan::tests::TableTestFixture;
use crate::test_utils::check_record_batches;
use crate::test_utils::scan::TableTestFixture;

#[tokio::test]
async fn test_snapshots_table() {
Expand Down
1 change: 1 addition & 0 deletions crates/iceberg/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ pub use runtime::{JoinHandle, Runtime, RuntimeHandle};
pub mod arrow;
pub(crate) mod delete_file_index;
pub mod encryption;
#[cfg(any(test, feature = "test-utils"))]
pub mod test_utils;
pub mod writer;

Expand Down
Loading