mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-05 21:02:58 +00:00
* fix: use `limit` params in jaeger http Signed-off-by: zyy17 <zyylsxm@gmail.com> * refactor: only parse `max_duration` and `min_duration` when it's not empty Signed-off-by: zyy17 <zyylsxm@gmail.com> * fix: handle the input for empty `limit` string Signed-off-by: zyy17 <zyylsxm@gmail.com> * fix: missing the fileter for `service_name` Signed-off-by: zyy17 <zyylsxm@gmail.com> * test: fix ci errors Signed-off-by: zyy17 <zyylsxm@gmail.com> * fix: incorrect behavior of find_traces Signed-off-by: zyy17 <zyylsxm@gmail.com> * fix: the logic of `find_traces()` The correct logic should be: 1. Get all trace ids that match the filters; 2. Get all traces that match the trace ids from the previous query; Signed-off-by: zyy17 <zyylsxm@gmail.com> * fix: integration test errors Signed-off-by: zyy17 <zyylsxm@gmail.com> * refactor: add `empty_string_as_none` Signed-off-by: zyy17 <zyylsxm@gmail.com> * refactor: refine naming Signed-off-by: zyy17 <zyylsxm@gmail.com> --------- Signed-off-by: zyy17 <zyylsxm@gmail.com>
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:
# 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.
GT_KAFKA_ENDPOINTS = localhost:9092
Setup kafka standalone
cd tests-integration/fixtures
docker compose -f docker-compose-standalone.yml up kafka