feat: tests-deploy для юзеров

This commit is contained in:
Naeel
2026-04-13 09:15:33 +03:00
parent 297f8a17a5
commit c855d5d5a5
5 changed files with 153 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
#!/bin/bash
# stress.sh — Стресс-тесты (23 проверки, ~7 минут)
set -e
SCRIPT_DIR="\$(cd \"\$(dirname \"\${BASH_SOURCE[0]}\")\" && pwd)"
REPO_ROOT="\$(dirname \"\$SCRIPT_DIR\")"
VALUES_FILE=\${REPO_ROOT}/deploy/values.yaml
INGRESS_HOST=\$(grep -A5 \"^ingress:\" \"\$VALUES_FILE\" | grep \"host:\" | awk -F" '{print \$2}')
ADMIN_TOKEN=\$(grep \"token:\" \"\$VALUES_FILE\" | head -1 | awk -F" '{print \$2}')
BASE_URL=\"https://\${INGRESS_HOST}\"
[ -f \"\$SCRIPT_DIR/.env.local\" ] && source \"\$SCRIPT_DIR/.env.local\"
cd \"\$REPO_ROOT\"
BASE_URL=\"\$BASE_URL\" ADMIN_TOKEN=\"\$ADMIN_TOKEN\" bash tests/stress_test.sh