fix(ci): smoke — проверка 404 не должна падать из-за pipefail
quality / changes (push) Successful in 6s
quality / commitlint (push) Skipped
quality / web (push) Successful in 41s
quality / api (push) Successful in 48s
quality / docker-check (push) Successful in 1m6s
CD / quality (push) Successful in 2m44s
CD / publish (push) Successful in 1m54s

This commit is contained in:
Denozordec committed 2026-10-23 17:57:42 +07:00
1 parent 7cec86400b
commit c3e8ccf7c7
1 file changed
+3 -2
+3 -2
View File
@@ -84,8 +84,9 @@ wait_ready
login | grep -q '"access_token"' || fail "логин администратора" login | grep -q '"access_token"' || fail "логин администратора"
kid1=$(jwks_kid) kid1=$(jwks_kid)
[ -n "$kid1" ] || fail "JWKS пуст" [ -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" \ # wget на 404 завершается с ошибкой (pipefail!) — собираем вывод отдельно.
|| fail "/oauth/nope: ожидался 404" 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. память под нагрузкой логинов # 3. память под нагрузкой логинов
for _ in $(seq 1 10); do login >/dev/null; done for _ in $(seq 1 10); do login >/dev/null; done