ЛР7: clean clone использует собственный HTTPS-порт

This commit is contained in:
Ivan Melnikov
2026-12-06 19:12:50 +03:00
parent 927fc31389
commit dad5c984d7
2 changed files with 8 additions and 4 deletions
+3 -3
View File
@@ -31,9 +31,9 @@ rm -f .env.bak
( cd "$root" && ./scripts/compose.sh --env-file .env down >/dev/null 2>&1 || true )
make up
make check
make test CA_FILE="$PWD/.local-secrets/pki/edge-ca.crt"
make test-security CA_FILE="$PWD/.local-secrets/pki/edge-ca.crt"
make test-tls
make test BASE_URL=https://localhost:8547 CA_FILE="$PWD/.local-secrets/pki/edge-ca.crt"
make test-security BASE_URL=https://localhost:8547 CA_FILE="$PWD/.local-secrets/pki/edge-ca.crt"
make test-tls BASE_URL=https://localhost:8547 CA_FILE="$PWD/.local-secrets/pki/edge-ca.crt"
make test-openbao
make purge >/dev/null 2>&1 || true
cd "$root"
+5 -1
View File
@@ -4,7 +4,11 @@
set -eu
cd "$(dirname "$0")/.."
CA=${CA_FILE:-.local-secrets/pki/edge-ca.crt}
url=${1:-https://localhost:${LB_PORT:-8447}/health/ready}
port=${LB_PORT:-}
if [ -z "$port" ] && [ -f .env ]; then
port=$(sed -n 's/^LB_PORT=//p' .env | head -n1)
fi
url=${1:-https://localhost:${port:-8447}/health/ready}
attempts=0
while [ "$attempts" -lt 180 ]; do
if curl -fsS --cacert "$CA" -o /dev/null "$url" 2>/dev/null; then