mirror of
https://github.com/rustfs/rustfs.git
synced 2026-09-01 17:58:22 +00:00
test(ecstore): pin default bucket config bytes (#6920)
This commit is contained in:
@@ -1205,6 +1205,23 @@ mod tests {
|
|||||||
use serial_test::serial;
|
use serial_test::serial;
|
||||||
use tempfile::TempDir;
|
use tempfile::TempDir;
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn g_d2_008_default_versioning_config_keeps_persisted_bytes() {
|
||||||
|
let bytes = crate::bucket::utils::serialize::<VersioningConfiguration>(&ENABLED_VERSIONING_CONFIG)
|
||||||
|
.expect("the default Versioning configuration must serialize");
|
||||||
|
assert_eq!(bytes, b"<VersioningConfiguration><Status>Enabled</Status></VersioningConfiguration>");
|
||||||
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn g_d2_009_default_object_lock_config_keeps_persisted_bytes() {
|
||||||
|
let bytes = crate::bucket::utils::serialize::<ObjectLockConfiguration>(&ENABLED_OBJECT_LOCK_CONFIG)
|
||||||
|
.expect("the default Object Lock configuration must serialize");
|
||||||
|
assert_eq!(
|
||||||
|
bytes,
|
||||||
|
b"<ObjectLockConfiguration><ObjectLockEnabled>Enabled</ObjectLockEnabled></ObjectLockConfiguration>"
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
async fn test_get_disk_infos() {
|
async fn test_get_disk_infos() {
|
||||||
let disks = vec![None, None]; // Empty disks for testing
|
let disks = vec![None, None]; // Empty disks for testing
|
||||||
|
|||||||
Reference in New Issue
Block a user