aboutsummaryrefslogtreecommitdiff
path: root/src/garage/tests/common/client.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/common/client.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/common/client.rs')
-rw-r--r--src/garage/tests/common/client.rs12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/garage/tests/common/client.rs b/src/garage/tests/common/client.rs
index 212588b5..e9d4849a 100644
--- a/src/garage/tests/common/client.rs
+++ b/src/garage/tests/common/client.rs
@@ -1,15 +1,9 @@
use aws_sdk_s3::{Client, Config, Credentials, Endpoint};
-use super::garage::Instance;
+use super::garage::{Instance, Key};
-pub fn build_client(instance: &Instance) -> Client {
- let credentials = Credentials::new(
- &instance.key.id,
- &instance.key.secret,
- None,
- None,
- "garage-integ-test",
- );
+pub fn build_client(instance: &Instance, key: &Key) -> Client {
+ let credentials = Credentials::new(&key.id, &key.secret, None, None, "garage-integ-test");
let endpoint = Endpoint::immutable(instance.s3_uri());
let config = Config::builder()