Files

41 lines
2.1 KiB
Plaintext

=== make test-dependencies (отказы Redis и PostgreSQL; общая зависимость, локальный путь к БД у одной реплики, насыщение пула)
captured_at 2026-10-16T19:18:14Z
commit: 1b4aac7
cd app && E2E_COMPOSE_DIR="/home/tomato/Projects/VP/mtusi2026lab3" E2E_COMPOSE_ENV_FILE=".env" npm run test:dependencies
> app@0.0.1 test:dependencies
> E2E_DEPENDENCY_FAULTS=1 vitest run --config ./vitest.config.e2e.ts dependency-failures
The plugin "vite-tsconfig-paths" is detected. Vite now supports tsconfig paths resolution natively via the resolve.tsconfigPaths option. You can remove the plugin and set resolve.tsconfigPaths: true in your Vite config instead.
RUN v4.1.11 /home/tomato/Projects/VP/mtusi2026lab3/app
Test Files 1 passed (1)
Tests 4 passed (4)
Start at 22:18:15
Duration 38.20s (transform 80ms, setup 0ms, import 95ms, tests 38.01s, environment 0ms)
--- docker compose ps после теста (все реплики вернулись, зависимости снова работают):
api mtusi-lab3-api-3 running healthy
api mtusi-lab3-api-4 running healthy
haproxy mtusi-lab3-haproxy-1 running
postgres mtusi-lab3-postgres-1 running healthy
redis mtusi-lab3-redis-1 running healthy
--- слоты HAProxy после теста (проверка GET /health/ready, timeout check 500 ms):
api1 172.30.0.5:8080 status=UP L7OK 200 last_chk=
api2 172.30.0.4:8080 status=UP L7OK 200 last_chk=
--- pg_hba.conf после теста (временная reject-строка снята, владелец и режим не менялись):
-rw------- 1 postgres postgres 5743 Oct 16 19:18 /var/lib/postgresql/data/pg_hba.conf
ls: /var/lib/postgresql/data/pg_hba.conf.lab3-partial-fault.bak: No such file or directory
--- HEALTH_TIMEOUT_MS действующей реплики (бюджет пробы готовности):
HEALTH_TIMEOUT_MS=400 DRAIN_DELAY_MS=3000
11:# пула) меньше timeout check 500 ms, который равен интервалу inter. Обнаружение
50: option httpchk GET /health/ready
52: timeout check 500ms