test:mc cp

This commit is contained in:
weisd
2024-07-05 18:02:27 +08:00
parent 98df9b91ba
commit c71e62e810
+15
View File
@@ -98,10 +98,21 @@ impl S3 for FS {
Ok(S3Response::new(output))
}
async fn get_object_lock_configuration(
&self,
_req: S3Request<GetObjectLockConfigurationInput>,
) -> S3Result<S3Response<GetObjectLockConfigurationOutput>> {
// mc cp step 1
let output = GetObjectLockConfigurationOutput::default();
Ok(S3Response::new(output))
}
#[tracing::instrument]
async fn get_object(&self, req: S3Request<GetObjectInput>) -> S3Result<S3Response<GetObjectOutput>> {
let input = req.input;
println!("get_object: {:?}", &input);
let output = GetObjectOutput { ..Default::default() };
Ok(S3Response::new(output))
}
@@ -110,6 +121,8 @@ impl S3 for FS {
async fn head_bucket(&self, req: S3Request<HeadBucketInput>) -> S3Result<S3Response<HeadBucketOutput>> {
let input = req.input;
// mc cp step 2
Ok(S3Response::new(HeadBucketOutput::default()))
}
@@ -191,6 +204,8 @@ impl S3 for FS {
) -> S3Result<S3Response<CreateMultipartUploadOutput>> {
let input = req.input;
// mc cp step 3
let output = CreateMultipartUploadOutput { ..Default::default() };
Ok(S3Response::new(output))