aboutsummaryrefslogtreecommitdiff
path: root/src/garage/tests/simple.rs
diff options
context:
space:
mode:
authorJill <kokakiwi@deuxfleurs.fr>2022-02-04 17:55:54 +0100
committerJill <kokakiwi@deuxfleurs.fr>2022-02-10 17:55:50 +0100
commitd7decda3f4423602e2a8064fa398181736b3a3ab (patch)
treef8b8ee686989bc987e036d47a897864016c7656e /src/garage/tests/simple.rs
parentcd13ea461b5e6011ddda28c4923260315d67482a (diff)
downloadgarage-d7decda3f4423602e2a8064fa398181736b3a3ab.tar.gz
garage-d7decda3f4423602e2a8064fa398181736b3a3ab.zip
garage(tests): Add random suffix to created buckets.
Diffstat (limited to 'src/garage/tests/simple.rs')
-rw-r--r--src/garage/tests/simple.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/garage/tests/simple.rs b/src/garage/tests/simple.rs
index a627c770..bf88d8c2 100644
--- a/src/garage/tests/simple.rs
+++ b/src/garage/tests/simple.rs
@@ -5,13 +5,13 @@ async fn test_simple() {
use aws_sdk_s3::ByteStream;
let ctx = common::context();
- ctx.create_bucket("test-simple");
+ let bucket = ctx.create_bucket("test-simple");
let data = ByteStream::from_static(b"Hello world!");
ctx.client
.put_object()
- .bucket("test-simple")
+ .bucket(&bucket)
.key("test")
.body(data)
.send()
@@ -21,7 +21,7 @@ async fn test_simple() {
let res = ctx
.client
.get_object()
- .bucket("test-simple")
+ .bucket(&bucket)
.key("test")
.send()
.await
@@ -35,13 +35,13 @@ async fn test_simple_2() {
use aws_sdk_s3::ByteStream;
let ctx = common::context();
- ctx.create_bucket("test-simple-2");
+ let bucket = ctx.create_bucket("test-simple-2");
let data = ByteStream::from_static(b"Hello world!");
ctx.client
.put_object()
- .bucket("test-simple-2")
+ .bucket(&bucket)
.key("test")
.body(data)
.send()
@@ -51,7 +51,7 @@ async fn test_simple_2() {
let res = ctx
.client
.get_object()
- .bucket("test-simple-2")
+ .bucket(&bucket)
.key("test")
.send()
.await