From c3e8ccf7c726989a8c2b9b4d55aa18c86f80ac3b Mon Sep 17 00:00:00 2001 From: Denozordec Date: Fri, 23 Oct 2026 17:57:42 +0700 Subject: [PATCH] =?UTF-8?q?fix(ci):=20smoke=20=E2=80=94=20=D0=BF=D1=80?= =?UTF-8?q?=D0=BE=D0=B2=D0=B5=D1=80=D0=BA=D0=B0=20404=20=D0=BD=D0=B5=20?= =?UTF-8?q?=D0=B4=D0=BE=D0=BB=D0=B6=D0=BD=D0=B0=20=D0=BF=D0=B0=D0=B4=D0=B0?= =?UTF-8?q?=D1=82=D1=8C=20=D0=B8=D0=B7-=D0=B7=D0=B0=20pipefail?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/ci/smoke-image.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/ci/smoke-image.sh b/scripts/ci/smoke-image.sh index 41f635f..8c02e2f 100755 --- a/scripts/ci/smoke-image.sh +++ b/scripts/ci/smoke-image.sh @@ -84,8 +84,9 @@ wait_ready login | grep -q '"access_token"' || fail "логин администратора" kid1=$(jwks_kid) [ -n "$kid1" ] || fail "JWKS пуст" -docker exec "$NAME" wget -S -O /dev/null -T 5 "$BASE/oauth/nope" 2>&1 | grep -q "HTTP/1.[01] 404" \ - || fail "/oauth/nope: ожидался 404" +# wget на 404 завершается с ошибкой (pipefail!) — собираем вывод отдельно. +not_found=$(docker exec "$NAME" wget -S -O /dev/null -T 5 "$BASE/oauth/nope" 2>&1 || true) +echo "$not_found" | grep -q "HTTP/1.[01] 404" || fail "/oauth/nope: ожидался 404, получено: $not_found" # 3. память под нагрузкой логинов for _ in $(seq 1 10); do login >/dev/null; done