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