mirror of
https://github.com/rustfs/rustfs.git
synced 2026-12-03 06:36:35 +00:00
fix(tests): use the large-stack fixture for gateway tests
Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>
This commit is contained in:
@@ -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),
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user