@camunda/e2e-test-suite 0.0.530 → 0.0.531
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.
|
@@ -5,6 +5,7 @@ const test_1 = require("@playwright/test");
|
|
|
5
5
|
const LoginPage_1 = require("./LoginPage");
|
|
6
6
|
const sleep_1 = require("../../utils/sleep");
|
|
7
7
|
const constants_1 = require("../../utils/constants");
|
|
8
|
+
const env_1 = require("../../utils/env");
|
|
8
9
|
const ORCHESTRATION_CONTEXT_PATH = process.env.ORCHESTRATION_CONTEXT_PATH ?? '/orchestration';
|
|
9
10
|
const NORMALIZED_ORCHESTRATION_CONTEXT_PATH = ORCHESTRATION_CONTEXT_PATH.startsWith('/')
|
|
10
11
|
? ORCHESTRATION_CONTEXT_PATH
|
|
@@ -147,7 +148,7 @@ class NavigationPage {
|
|
|
147
148
|
: new Error(`goToKeycloak failed after ${maxRetries} attempts`);
|
|
148
149
|
}
|
|
149
150
|
async goToOCAdmin(sleepTimeout, credentials) {
|
|
150
|
-
await this.goTo(`${NORMALIZED_ORCHESTRATION_CONTEXT_PATH}/admin`, this.identityPageBanner, sleepTimeout, credentials);
|
|
151
|
+
await this.goTo(`${NORMALIZED_ORCHESTRATION_CONTEXT_PATH}/admin`, this.identityPageBanner, sleepTimeout, credentials, env_1.isOpenSearch ? 10 : 5);
|
|
151
152
|
}
|
|
152
153
|
async goToConsole(sleepTimeout, credentials) {
|
|
153
154
|
await this.goTo(CONSOLE_CONTEXT_PATH, this.consolePageBanner, sleepTimeout, credentials);
|
package/dist/utils/apiHelpers.js
CHANGED
|
@@ -338,8 +338,10 @@ async function createClusterVariableInternal(authToken, environment, variableNam
|
|
|
338
338
|
}
|
|
339
339
|
bodyText = await response.text();
|
|
340
340
|
lastErrorMessage = `HTTP ${status} - ${bodyText.slice(0, 200)}`;
|
|
341
|
-
// Retry on transient gateway / upstream errors
|
|
342
|
-
|
|
341
|
+
// Retry on transient gateway / upstream errors and on HTTP 500
|
|
342
|
+
// (search backend not ready yet — observed on fresh OpenSearch deploys).
|
|
343
|
+
if ((status === 500 || (status >= 502 && status <= 504)) &&
|
|
344
|
+
attempt < maxAttempts) {
|
|
343
345
|
console.warn(`createClusterVariable "${variableName}" attempt ${attempt}/${maxAttempts} got HTTP ${status}; retrying...`);
|
|
344
346
|
await new Promise((r) => setTimeout(r, baseDelayMs * attempt));
|
|
345
347
|
continue;
|