Files
greptimedb/tests-integration/README.md
zyy17 cc35bab5e4 feat: record the migration events in metasrv (#6579)
* feat: collect procedure event

Signed-off-by: zyy17 <zyylsxm@gmail.com>

* feat: collect region migration events

Signed-off-by: zyy17 <zyylsxm@gmail.com>

* test: add integration test

Signed-off-by: zyy17 <zyylsxm@gmail.com>

* chore: fix docs error

Signed-off-by: zyy17 <zyylsxm@gmail.com>

* chore: fix integration test error

Signed-off-by: zyy17 <zyylsxm@gmail.com>

* chore: change status code for errors

Signed-off-by: zyy17 <zyylsxm@gmail.com>

* refactor: add `event()` in Procedure

Signed-off-by: zyy17 <zyylsxm@gmail.com>

* refactor: improve trait design

1. Add `user_metadata()` in `Procedure` trait;

2. Add `Eventable` trait;

Signed-off-by: zyy17 <zyylsxm@gmail.com>

* chore: polish the code

Signed-off-by: zyy17 <zyylsxm@gmail.com>

---------

Signed-off-by: zyy17 <zyylsxm@gmail.com>
2025-08-06 03:30:33 +00:00

57 lines
961 B
Markdown

## Setup tests for multiple storage backend
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_REGION=S3 region
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
```
Test oss storage:
```
cargo test oss
```
Test azblob storage:
```
cargo test azblob
```
## Setup tests with Kafka wal
To run the integration test, please copy `.env.example` to `.env` in the project root folder and change the values on need.
```sh
GT_KAFKA_ENDPOINTS = localhost:9092
```
### Setup kafka standalone
```
cd tests-integration/fixtures
docker compose -f docker-compose.yml up kafka
```