diff options
author | Alex <alex@adnab.me> | 2023-03-13 17:26:21 +0000 |
---|---|---|
committer | Alex <alex@adnab.me> | 2023-03-13 17:26:21 +0000 |
commit | d6ffa57f4054c41c37a06686330e0080f8243430 (patch) | |
tree | e41175c99bee2bb6cc416f2b843fe55cf2c3ad98 /src/garage/tests/admin.rs | |
parent | 7fcc153e7cfbae61626ca288634a0f4fb4c4b709 (diff) | |
parent | 70b5424b9987ca348a1da97cc1827e2286bbfe4b (diff) | |
download | garage-d6ffa57f4054c41c37a06686330e0080f8243430.tar.gz garage-d6ffa57f4054c41c37a06686330e0080f8243430.zip |
Merge pull request 'Increase Garage tests robustness' (#526) from tests/increase-robustness into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/526
Reviewed-by: Alex <alex@adnab.me>
Reviewed-by: trinity-1686a <trinity.pointard@gmail.com>
Diffstat (limited to 'src/garage/tests/admin.rs')
-rw-r--r-- | src/garage/tests/admin.rs | 27 |
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"); |