diff --git a/.config/e2e-full-selection.txt b/.config/e2e-full-selection.txt index dfad0f0bd..b6f9768f4 100644 --- a/.config/e2e-full-selection.txt +++ b/.config/e2e-full-selection.txt @@ -1,2 +1,2 @@ -sha256-darwin=9f767b37ed8b1c82da62ea441462d75487785c8086e56f08fb6f6cd89c6e2e52 -sha256-linux=fbdaf42b220958d4b1e8880e0f8b5a7992d38e21051bb60596dd4538424757d6 +sha256-darwin=c88d762eb265fd90f467e57c948a7e6806d5918dc75798651afe120af85c9d07 +sha256-linux=a032907138cb1790e3611cc59df549cb556ae59ea26089eaa5e75158fc2cef40 diff --git a/crates/e2e_test/src/data_usage_test.rs b/crates/e2e_test/src/data_usage_test.rs index 2dfd56eb5..141ab29c7 100644 --- a/crates/e2e_test/src/data_usage_test.rs +++ b/crates/e2e_test/src/data_usage_test.rs @@ -59,7 +59,6 @@ where /// Regression test for data usage accuracy (issue #1012). /// Launches rustfs, writes 1000 objects, then asserts admin data usage reports the full count. #[tokio::test(flavor = "multi_thread")] -#[ignore = "Starts a rustfs server and requires awscurl; enable when running full E2E"] async fn data_usage_reports_all_objects() -> Result<(), Box> { init_logging(); @@ -86,28 +85,20 @@ async fn data_usage_reports_all_objects() -> Result<(), Box= 1000 && bucket_usage.objects_count >= 1000) + .map(|bucket_usage| usage.objects_total_count == 1000 && bucket_usage.objects_count == 1000) .unwrap_or(false) }) .await?; - // Assert total object count and per-bucket count are not truncated + // Assert total object count and per-bucket count are exact. let bucket_usage = usage .buckets_usage .get(TEST_BUCKET) .cloned() .expect("bucket usage should exist"); - assert!( - usage.objects_total_count >= 1000, - "total object count should be at least 1000, got {}", - usage.objects_total_count - ); - assert!( - bucket_usage.objects_count >= 1000, - "bucket object count should be at least 1000, got {}", - bucket_usage.objects_count - ); + assert_eq!(usage.objects_total_count, 1000, "total object count should be exact"); + assert_eq!(bucket_usage.objects_count, 1000, "bucket object count should be exact"); env.stop_server(); Ok(()) @@ -116,7 +107,6 @@ async fn data_usage_reports_all_objects() -> Result<(), Box Result<(), Box> { init_logging(); diff --git a/docs/testing/e2e-suite-inventory.md b/docs/testing/e2e-suite-inventory.md index df2fc0847..6c7fd8c9f 100644 --- a/docs/testing/e2e-suite-inventory.md +++ b/docs/testing/e2e-suite-inventory.md @@ -41,6 +41,7 @@ | copy_object_version_restore_test | 2 | | | copy_source_invalid_date_test | 1 | ✅ | | create_bucket_region_test | 2 | ✅ | +| data_usage_test | 2 | | | degraded_read_eof_regression_test | 3 | | | delete_marker_migration_semantics_test | 2 | ✅ | | delete_object_no_content_length_test | 1 | | @@ -99,4 +100,4 @@ | tls_hot_reload_test | 1 | ✅ | | version_id_regression_test | 10 | ✅ | -**Total listed: 575 tests across 82 modules · PR smoke: 163 tests / 36 modules · merge/main full: 453 tests / 73 modules · nightly replication: 55 tests · nightly cluster faults: 28 tests / 7 modules · nightly protocols: 16 tests** · updated 2026-08-23. +**Total listed: 577 tests across 83 modules · PR smoke: 163 tests / 36 modules · merge/main full: 455 tests / 74 modules · nightly replication: 55 tests · nightly cluster faults: 28 tests / 7 modules · nightly protocols: 16 tests** · updated 2026-08-23.