✨ Object storage backend for e2e tests (#446)
* feat: e2e test run with object storage backend * ref: one test suit
This commit is contained in:
@@ -55,7 +55,7 @@ jobs:
|
|||||||
- setup
|
- setup
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: e2e-mongo-test
|
- name: e2e-mongo-s3-test
|
||||||
run: |
|
run: |
|
||||||
cd tdrive
|
cd tdrive
|
||||||
docker-compose -f docker-compose.tests.yml run --rm -e NODE_OPTIONS=--unhandled-rejections=warn -e SEARCH_DRIVER=mongodb -e DB_DRIVER=mongodb -e PUBSUB_TYPE=local node npm run test:all
|
docker-compose -f docker-compose.tests.yml run --rm -e NODE_OPTIONS=--unhandled-rejections=warn -e SEARCH_DRIVER=mongodb -e DB_DRIVER=mongodb -e PUBSUB_TYPE=local node npm run test:all
|
||||||
|
|||||||
@@ -24,6 +24,29 @@ services:
|
|||||||
- "6379:6379"
|
- "6379:6379"
|
||||||
environment:
|
environment:
|
||||||
- REDIS_REPLICATION_MODE=master
|
- REDIS_REPLICATION_MODE=master
|
||||||
|
minio:
|
||||||
|
image: minio/minio
|
||||||
|
ports:
|
||||||
|
- "9000:9000"
|
||||||
|
volumes:
|
||||||
|
- ./test/.minio/data:/export
|
||||||
|
- ./test/.minio/config:/root/.minio
|
||||||
|
environment:
|
||||||
|
- MINIO_ROOT_USER=admin
|
||||||
|
- MINIO_ROOT_PASSWORD=adminminio
|
||||||
|
command: server /export
|
||||||
|
|
||||||
|
createbucket:
|
||||||
|
image: minio/mc
|
||||||
|
depends_on:
|
||||||
|
- minio
|
||||||
|
entrypoint: >
|
||||||
|
/bin/sh -c "
|
||||||
|
/usr/bin/mc config host add myminio http://minio:9000 admin adminminio;
|
||||||
|
/usr/bin/mc rm -r --force myminio/drive;
|
||||||
|
/usr/bin/mc mb myminio/drive;
|
||||||
|
exit 0;
|
||||||
|
"
|
||||||
node:
|
node:
|
||||||
image: tdrive/tdrive-node:test
|
image: tdrive/tdrive-node:test
|
||||||
build:
|
build:
|
||||||
@@ -39,11 +62,17 @@ services:
|
|||||||
- PUBSUB_URLS=amqp://guest:guest@rabbitmq:5672
|
- PUBSUB_URLS=amqp://guest:guest@rabbitmq:5672
|
||||||
- SEARCH_ES_ENDPOINT=http://elasticsearch:9200
|
- SEARCH_ES_ENDPOINT=http://elasticsearch:9200
|
||||||
- SEARCH_ES_FLUSHINTERVAL=1
|
- SEARCH_ES_FLUSHINTERVAL=1
|
||||||
|
- STORAGE_DRIVER=S3
|
||||||
|
- STORAGE_S3_BUCKET=drive
|
||||||
|
- STORAGE_S3_ENDPOINT=minio
|
||||||
|
- STORAGE_S3_ACCESS_KEY=admin
|
||||||
|
- STORAGE_S3_SECRET_KEY=adminminio
|
||||||
depends_on:
|
depends_on:
|
||||||
- mongo
|
- mongo
|
||||||
- scylladb
|
- scylladb
|
||||||
- rabbitmq
|
- rabbitmq
|
||||||
- elasticsearch
|
- elasticsearch
|
||||||
|
- createbucket
|
||||||
links:
|
links:
|
||||||
- mongo
|
- mongo
|
||||||
- scylladb
|
- scylladb
|
||||||
|
|||||||
Reference in New Issue
Block a user