ЛР7: clean clone использует собственный HTTPS-порт
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user