feat: add a test macro (#170)
This commit is contained in:
@@ -24,16 +24,8 @@ use minio_common::test_context::TestContext;
|
||||
|
||||
const SQS_ARN: &str = "arn:minio:sqs::miniojavatest:webhook";
|
||||
|
||||
#[tokio::test(flavor = "multi_thread")]
|
||||
async fn test_bucket_notification() {
|
||||
let ctx = TestContext::new_from_env();
|
||||
if ctx.client.is_minio_express().await {
|
||||
println!("Skipping test because it is running in MinIO Express mode");
|
||||
return;
|
||||
}
|
||||
|
||||
let (bucket_name, _cleanup) = ctx.create_bucket_helper().await;
|
||||
|
||||
#[minio_macros::test(skip_if_express)]
|
||||
async fn test_bucket_notification(ctx: TestContext, bucket_name: String) {
|
||||
let config: NotificationConfig = create_bucket_notification_config_example();
|
||||
|
||||
let resp: PutBucketNotificationResponse = ctx
|
||||
|
||||
Reference in New Issue
Block a user