Refactor bucket tags, bucket notification, and bucket replication (#132)

* refactor get-set-delete bucket notification

* refactor get-set-delete bucket notification

* refactor get-set-delete bucket notification
This commit is contained in:
Henk-Jan Lebbink
2025-03-12 20:44:45 +01:00
committed by GitHub
parent 8134acdd09
commit 8ea83b45ae
39 changed files with 1844 additions and 661 deletions

View File

@@ -17,7 +17,7 @@ mod common;
use crate::common::{TestContext, create_bucket_helper};
use minio::s3::builders::VersioningStatus;
use minio::s3::response::GetBucketVersioningResponse;
use minio::s3::response::{GetBucketVersioningResponse, SetBucketVersioningResponse};
use minio::s3::types::S3Api;
#[tokio::test(flavor = "multi_thread", worker_threads = 10)]
@@ -25,7 +25,8 @@ async fn set_get_delete_bucket_versioning() {
let ctx = TestContext::new_from_env();
let (bucket_name, _cleanup) = create_bucket_helper(&ctx).await;
ctx.client
let _resp: SetBucketVersioningResponse = ctx
.client
.set_bucket_versioning(&bucket_name)
.versioning_status(VersioningStatus::Enabled)
.send()
@@ -40,7 +41,8 @@ async fn set_get_delete_bucket_versioning() {
.unwrap();
assert_eq!(resp.status, Some(VersioningStatus::Enabled));
ctx.client
let _resp: SetBucketVersioningResponse = ctx
.client
.set_bucket_versioning(&bucket_name)
.versioning_status(VersioningStatus::Suspended)
.send()