aboutsummaryrefslogtreecommitdiff
path: root/src/garage/tests/admin.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2023-03-13 15:03:54 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2023-03-13 15:06:05 +0100
commit70b5424b9987ca348a1da97cc1827e2286bbfe4b (patch)
tree0940c4c1cdf8d19a7b346aa138d3f760c785cb1a /src/garage/tests/admin.rs
parent2687fb7fa80f645a2e29822d60e8970433788889 (diff)
downloadgarage-70b5424b9987ca348a1da97cc1827e2286bbfe4b.tar.gz
garage-70b5424b9987ca348a1da97cc1827e2286bbfe4b.zip
use one key per context to isolate teststests/increase-robustness
Diffstat (limited to 'src/garage/tests/admin.rs')
-rw-r--r--src/garage/tests/admin.rs27
1 files changed, 3 insertions, 24 deletions
diff --git a/src/garage/tests/admin.rs b/src/garage/tests/admin.rs
index 37aefe38..d3becf0a 100644
--- a/src/garage/tests/admin.rs
+++ b/src/garage/tests/admin.rs
@@ -21,14 +21,7 @@ async fn test_admin_bucket_perms() {
ctx.garage
.command()
- .args([
- "bucket",
- "allow",
- "--read",
- "--key",
- &ctx.garage.key.id,
- BCKT_NAME,
- ])
+ .args(["bucket", "allow", "--read", "--key", &ctx.key.id, BCKT_NAME])
.quiet()
.expect_success_status("Could not create bucket");
@@ -36,14 +29,7 @@ async fn test_admin_bucket_perms() {
ctx.garage
.command()
- .args([
- "bucket",
- "deny",
- "--read",
- "--key",
- &ctx.garage.key.name,
- BCKT_NAME,
- ])
+ .args(["bucket", "deny", "--read", "--key", &ctx.key.id, BCKT_NAME])
.quiet()
.expect_success_status("Could not create bucket");
@@ -51,14 +37,7 @@ async fn test_admin_bucket_perms() {
ctx.garage
.command()
- .args([
- "bucket",
- "allow",
- "--read",
- "--key",
- &ctx.garage.key.name,
- BCKT_NAME,
- ])
+ .args(["bucket", "allow", "--read", "--key", &ctx.key.id, BCKT_NAME])
.quiet()
.expect_success_status("Could not create bucket");