@camunda/e2e-test-suite 0.0.1070 → 0.0.1071
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.
|
@@ -29,8 +29,7 @@ _8_7_1.test.describe('Cluster Setup Tests', () => {
|
|
|
29
29
|
await clusterPage.assertClusterHealthyStatusWithRetry(clusterName);
|
|
30
30
|
}
|
|
31
31
|
else {
|
|
32
|
-
await (0, consoleApiHelpers_1.
|
|
33
|
-
const clusterUuid = await (0, consoleApiHelpers_1.createClusterViaApi)(page, clusterName);
|
|
32
|
+
const clusterUuid = await (0, consoleApiHelpers_1.ensureClusterViaApi)(page, clusterName);
|
|
34
33
|
await (0, consoleApiHelpers_1.waitForClusterHealthyViaApi)(page, clusterUuid);
|
|
35
34
|
await homePage.clickClusters();
|
|
36
35
|
}
|
|
@@ -48,8 +47,7 @@ _8_7_1.test.describe('Cluster Setup Tests', () => {
|
|
|
48
47
|
await clusterPage.assertClusterHealthyStatusWithRetry(clusterName, 300000, 1500000);
|
|
49
48
|
}
|
|
50
49
|
else {
|
|
51
|
-
await (0, consoleApiHelpers_1.
|
|
52
|
-
const clusterUuid = await (0, consoleApiHelpers_1.createClusterViaApi)(page, clusterName, 'AWS');
|
|
50
|
+
const clusterUuid = await (0, consoleApiHelpers_1.ensureClusterViaApi)(page, clusterName, 'AWS');
|
|
53
51
|
await (0, consoleApiHelpers_1.waitForClusterHealthyViaApi)(page, clusterUuid, 1500000);
|
|
54
52
|
await homePage.clickClusters();
|
|
55
53
|
}
|
|
@@ -450,12 +450,11 @@ async function ensureTasklistV2Enabled(page, clusterUuid) {
|
|
|
450
450
|
// tests that specifically require a real v2-upgraded backend, never on a
|
|
451
451
|
// cluster shared with anything that needs v1 (e.g. job-worker-based user
|
|
452
452
|
// tasks, draft variables, public start forms).
|
|
453
|
-
const token = await getUserToken(page);
|
|
454
453
|
const orgId = getOrgId();
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
});
|
|
454
|
+
// Same reason as the DELETE in deleteClusterViaApi: a bare page.request
|
|
455
|
+
// call inherits the 10s actionTimeout, which a cluster write on Console
|
|
456
|
+
// can exceed.
|
|
457
|
+
const response = await clusterApiRequest(page, 'PATCH', `${getConsoleBaseUrl()}/api/orgs/${orgId}/clusters/${clusterUuid}`, { tasklistV2Enabled: true });
|
|
459
458
|
if (response.status() !== 200 && response.status() !== 204) {
|
|
460
459
|
throw new Error(`Failed to upgrade cluster "${clusterUuid}" to Tasklist v2: ` +
|
|
461
460
|
`HTTP ${response.status()} - ${await response.text()}`);
|