Add builders for bucket methods: (#76)

- list buckets
- get bucket versioning
This commit is contained in:
Aditya Manthramurthy
2024-04-02 17:59:40 -07:00
committed by GitHub
parent 6a34d4c677
commit 35954da61d
7 changed files with 236 additions and 134 deletions

View File

@@ -163,11 +163,7 @@ impl ClientTest {
}
let mut count = 0;
let resp = self
.client
.list_buckets(&ListBucketsArgs::new())
.await
.unwrap();
let resp = self.client.list_buckets().send().await.unwrap();
for bucket in resp.buckets.iter() {
if names.contains(&bucket.name) {
count += 1;
@@ -1016,7 +1012,8 @@ impl ClientTest {
let resp = self
.client
.get_bucket_versioning(&GetBucketVersioningArgs::new(&bucket_name).unwrap())
.get_bucket_versioning(&bucket_name)
.send()
.await
.unwrap();
assert!(match resp.status {
@@ -1031,7 +1028,8 @@ impl ClientTest {
let resp = self
.client
.get_bucket_versioning(&GetBucketVersioningArgs::new(&bucket_name).unwrap())
.get_bucket_versioning(&bucket_name)
.send()
.await
.unwrap();
assert!(