diff options
author | trinity-1686a <trinity@deuxfleurs.fr> | 2022-03-11 17:35:08 +0100 |
---|---|---|
committer | Gitea <gitea@fake.local> | 2022-03-23 10:22:36 +0100 |
commit | 1eb7fdb08fed59a9e78adc24df2d96fda746c560 (patch) | |
tree | 4dd507a8676011c0793938cb37408870e93193a7 /src/garage/tests/common/mod.rs | |
parent | e934934f149da1f4288359dcc3b6d9b9b284525e (diff) | |
download | garage-1eb7fdb08fed59a9e78adc24df2d96fda746c560.tar.gz garage-1eb7fdb08fed59a9e78adc24df2d96fda746c560.zip |
add test framework for arbitraty S3 requests
and implement some basic test with it
Diffstat (limited to 'src/garage/tests/common/mod.rs')
-rw-r--r-- | src/garage/tests/common/mod.rs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/garage/tests/common/mod.rs b/src/garage/tests/common/mod.rs index 32fa3848..8f88c731 100644 --- a/src/garage/tests/common/mod.rs +++ b/src/garage/tests/common/mod.rs @@ -5,22 +5,31 @@ use ext::*; pub mod macros; pub mod client; +pub mod custom_requester; pub mod ext; pub mod garage; +use custom_requester::CustomRequester; + const REGION: Region = Region::from_static("garage-integ-test"); pub struct Context { pub garage: &'static garage::Instance, pub client: Client, + pub custom_request: CustomRequester, } impl Context { fn new() -> Self { let garage = garage::instance(); let client = client::build_client(garage); + let custom_request = CustomRequester::new(garage); - Context { garage, client } + Context { + garage, + client, + custom_request, + } } /// Create an unique bucket with a random suffix. |