fix: make tests usable

This commit is contained in:
Maxim Dolgushin 2023-10-30 18:24:36 +07:00 committed by skeris
parent 3655c76289
commit 12cb0a6a27
2 changed files with 9 additions and 6 deletions

@ -39,9 +39,12 @@ services:
- 8082:8000 - 8082:8000
- 9092:9000 - 9092:9000
depends_on: depends_on:
- customer-db customer-db:
- customer-migration condition: service_started
- redpanda customer-migration:
condition: service_completed_successfully
redpanda:
condition: service_healthy
networks: networks:
- test - test
@ -106,8 +109,8 @@ services:
- test - test
healthcheck: healthcheck:
test: ["CMD-SHELL", "rpk cluster health | grep -E 'Healthy:.+true' || exit 1"] test: ["CMD-SHELL", "rpk cluster health | grep -E 'Healthy:.+true' || exit 1"]
interval: 15s interval: 2s
timeout: 3s timeout: 2s
retries: 5 retries: 5
start_period: 5s start_period: 5s

0
tools/migrate Normal file → Executable file