From ec701cc5cd2234ac1c824fd5d3e4b0eb1eabb6eb Mon Sep 17 00:00:00 2001 From: Hauser Zhi Date: Mon, 30 Nov 2026 12:46:08 +0800 Subject: [PATCH] fix(tests): use the large-stack fixture for gateway tests Co-Authored-By: heihutu Co-Authored-By: zhi22915 Co-Authored-By: qunjiazhu --- .../src/server/gateway_handlers/object_write_test.rs | 11 +++++++++-- .../native_admin_tests/metadata_route_parity_tests.rs | 8 ++++++-- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/rustfs/src/server/gateway_handlers/object_write_test.rs b/rustfs/src/server/gateway_handlers/object_write_test.rs index 33c7eec008..70b5d74021 100644 --- a/rustfs/src/server/gateway_handlers/object_write_test.rs +++ b/rustfs/src/server/gateway_handlers/object_write_test.rs @@ -284,9 +284,16 @@ impl PayloadStream for Frames { } } -#[tokio::test] +#[test] #[serial] -async fn native_put_frames_reach_checksum_validation_and_storage() { +fn native_put_frames_reach_checksum_validation_and_storage() { + crate::app::gating_test_env::run_large_stack_test( + "native_put_frames_reach_checksum_validation_and_storage", + exercise_native_put_frames, + ); +} + +async fn exercise_native_put_frames() { let (server, bucket) = fixture(&["s3:PutObject"]).await; for (case, length, checksum, producer_error, expected) in [ ("valid", 3, "NSRBwg==", false, None), diff --git a/rustfs/src/server/http/tests/native_admin_tests/metadata_route_parity_tests.rs b/rustfs/src/server/http/tests/native_admin_tests/metadata_route_parity_tests.rs index c320b7c9e8..a148d4190f 100644 --- a/rustfs/src/server/http/tests/native_admin_tests/metadata_route_parity_tests.rs +++ b/rustfs/src/server/http/tests/native_admin_tests/metadata_route_parity_tests.rs @@ -550,9 +550,13 @@ async fn metadata_listing_documents_carry_the_extension_and_the_callers_read_rig /// The gateway handler's listing authorization attaches the table snapshot, so a caller without /// table access never receives a warehouse or catalog key. Without the snapshot the use case lists /// the bucket unfiltered, so the filtering is observed on what the caller receives. -#[tokio::test] +#[test] #[serial_test::serial] -async fn a_metadata_listing_of_a_table_bucket_hides_the_keys_the_caller_has_no_table_access_to() { +fn a_metadata_listing_of_a_table_bucket_hides_the_keys_the_caller_has_no_table_access_to() { + crate::app::gating_test_env::run_large_stack_test("metadata_listing_table_access", exercise_metadata_listing_table_access); +} + +async fn exercise_metadata_listing_table_access() { let (_env, edge) = stack().await; for query in ["list-type=2&metadata=true", "metadata=true&versions="] { let anonymous = website_request(Method::GET, &format!("/{TABLES}?{query}"), S3_HOST, None);