@camunda/e2e-test-suite 0.0.1210 → 0.0.1211
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -408,6 +408,15 @@ _curl_common() {
|
|
|
408
408
|
# small for a pod restart; this widens it to ~90s. A sustained outage still
|
|
409
409
|
# returns the real 502/503/504 once the budget is exhausted, so it surfaces
|
|
410
410
|
# as a genuine FAILED (not masked).
|
|
411
|
+
#
|
|
412
|
+
# The orchestration REST API itself also answers 503 UNAVAILABLE ("The
|
|
413
|
+
# search client could not connect to the search server") while its search
|
|
414
|
+
# client is briefly unable to reach Elasticsearch/OpenSearch — e.g. while
|
|
415
|
+
# the search backend pod is rolling during an upgrade-minor run, the same
|
|
416
|
+
# window the nginx case above targets. That response carries a real JSON
|
|
417
|
+
# body (not nginx's HTML page), so the nginx-only check let it through as
|
|
418
|
+
# "final" and skipped the widened retry entirely. Treat it the same as the
|
|
419
|
+
# nginx 503.
|
|
411
420
|
local gw_attempt=0 gw_max=12 gw_response gw_status
|
|
412
421
|
while :; do
|
|
413
422
|
gw_response="$(curl --http1.1 --max-time 30 --connect-timeout 10 \
|
|
@@ -417,7 +426,8 @@ _curl_common() {
|
|
|
417
426
|
if [[ -n "$gw_status" && "$gw_status" != "502" \
|
|
418
427
|
&& "$gw_status" != "503" && "$gw_status" != "504" ]] \
|
|
419
428
|
|| [[ "$gw_status" == "503" \
|
|
420
|
-
&& "$gw_response" != *'<center>nginx</center>'*
|
|
429
|
+
&& "$gw_response" != *'<center>nginx</center>'* \
|
|
430
|
+
&& "$gw_response" != *'could not connect to the search server'* ]] \
|
|
421
431
|
|| (( gw_attempt >= gw_max )); then
|
|
422
432
|
printf '%s\n' "$gw_response"
|
|
423
433
|
return 0
|
package/package.json
CHANGED
|
@@ -408,6 +408,15 @@ _curl_common() {
|
|
|
408
408
|
# small for a pod restart; this widens it to ~90s. A sustained outage still
|
|
409
409
|
# returns the real 502/503/504 once the budget is exhausted, so it surfaces
|
|
410
410
|
# as a genuine FAILED (not masked).
|
|
411
|
+
#
|
|
412
|
+
# The orchestration REST API itself also answers 503 UNAVAILABLE ("The
|
|
413
|
+
# search client could not connect to the search server") while its search
|
|
414
|
+
# client is briefly unable to reach Elasticsearch/OpenSearch — e.g. while
|
|
415
|
+
# the search backend pod is rolling during an upgrade-minor run, the same
|
|
416
|
+
# window the nginx case above targets. That response carries a real JSON
|
|
417
|
+
# body (not nginx's HTML page), so the nginx-only check let it through as
|
|
418
|
+
# "final" and skipped the widened retry entirely. Treat it the same as the
|
|
419
|
+
# nginx 503.
|
|
411
420
|
local gw_attempt=0 gw_max=12 gw_response gw_status
|
|
412
421
|
while :; do
|
|
413
422
|
gw_response="$(curl --http1.1 --max-time 30 --connect-timeout 10 \
|
|
@@ -417,7 +426,8 @@ _curl_common() {
|
|
|
417
426
|
if [[ -n "$gw_status" && "$gw_status" != "502" \
|
|
418
427
|
&& "$gw_status" != "503" && "$gw_status" != "504" ]] \
|
|
419
428
|
|| [[ "$gw_status" == "503" \
|
|
420
|
-
&& "$gw_response" != *'<center>nginx</center>'*
|
|
429
|
+
&& "$gw_response" != *'<center>nginx</center>'* \
|
|
430
|
+
&& "$gw_response" != *'could not connect to the search server'* ]] \
|
|
421
431
|
|| (( gw_attempt >= gw_max )); then
|
|
422
432
|
printf '%s\n' "$gw_response"
|
|
423
433
|
return 0
|