mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-13 16:52:56 +00:00
* feat: adds s3 object storage configuration * feat: adds s3 integration test * chore: use map * fix: forgot license header * fix: checking if bucket is empty in test_on * chore: address CR issues * refactor: run s3 test with dotenv * chore: randomize grpc port for test * fix: README in tests-integration * chore: remove redundant comments
27 lines
492 B
Markdown
27 lines
492 B
Markdown
## Setup
|
|
|
|
To run the integration test, please copy `.env.example` to `.env` in the project root folder and change the values on need.
|
|
|
|
Take `s3` for example. You need to set your S3 bucket, access key id and secret key:
|
|
|
|
```sh
|
|
# Settings for s3 test
|
|
GT_S3_BUCKET=S3 bucket
|
|
GT_S3_ACCESS_KEY_ID=S3 access key id
|
|
GT_S3_ACCESS_KEY=S3 secret access key
|
|
```
|
|
|
|
## Run
|
|
|
|
Execute the following command in the project root folder:
|
|
|
|
```
|
|
cargo test integration
|
|
```
|
|
|
|
Test s3 storage:
|
|
|
|
```
|
|
cargo test s3
|
|
```
|