aboutsummaryrefslogtreecommitdiff
path: root/src/garage/tests/s3/streaming_signature.rs
diff options
context:
space:
mode:
authorAlex <alex@adnab.me>2022-12-12 14:55:12 +0000
committerAlex <alex@adnab.me>2022-12-12 14:55:12 +0000
commitf7c65e830e66c9887d989a8281d8fae7f76f9c8c (patch)
tree1ee78730b1f7cb9d9c3fc4e93edfb7292e6a92f6 /src/garage/tests/s3/streaming_signature.rs
parent980572a8872c56ea9572ff03579ebb9a65013775 (diff)
parent0e61e3b6fbe00e518225d851b04b47f6f1ba07a6 (diff)
downloadgarage-f7c65e830e66c9887d989a8281d8fae7f76f9c8c.tar.gz
garage-f7c65e830e66c9887d989a8281d8fae7f76f9c8c.zip
Merge pull request 'Properly enforce allow_create_bucket' (#447) from fix-allow-create-bucket into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/447
Diffstat (limited to 'src/garage/tests/s3/streaming_signature.rs')
-rw-r--r--src/garage/tests/s3/streaming_signature.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/garage/tests/s3/streaming_signature.rs b/src/garage/tests/s3/streaming_signature.rs
index c68f7dfc..48da7607 100644
--- a/src/garage/tests/s3/streaming_signature.rs
+++ b/src/garage/tests/s3/streaming_signature.rs
@@ -1,6 +1,7 @@
use std::collections::HashMap;
use crate::common;
+use crate::common::ext::CommandExt;
use common::custom_requester::BodySignature;
use hyper::Method;
@@ -105,6 +106,13 @@ async fn test_create_bucket_streaming() {
let ctx = common::context();
let bucket = "createbucket-streaming";
+ ctx.garage
+ .command()
+ .args(["key", "allow"])
+ .args(["--create-bucket", &ctx.garage.key.id])
+ .quiet()
+ .expect_success_output("Could not allow key to create buckets");
+
{
// create bucket
let _ = ctx