@camunda/e2e-test-suite 0.0.1657 → 0.0.1659
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.
- package/dist/tests/8.11/access-user-role-management.spec.js +1 -2
- package/dist/tests/8.11/agentic-ai-user-flows.spec.js +1 -2
- package/dist/tests/8.11/aws-cluster-user-flows.spec.js +1 -2
- package/dist/tests/8.11/aws-connectors-user-flows.spec.js +1 -2
- package/dist/tests/8.11/cluster-variables.spec.js +1 -2
- package/dist/tests/8.11/connectors-cors.spec.js +1 -2
- package/dist/tests/8.11/connectors-user-flows.spec.js +1 -2
- package/dist/tests/8.11/console-user-flows.spec.js +1 -2
- package/dist/tests/8.11/hto-user-flows.spec.js +1 -2
- package/dist/tests/8.11/idp-user-flows.spec.js +1 -2
- package/dist/tests/8.11/login-negative-tests.spec.js +1 -2
- package/dist/tests/8.11/login.spec.js +1 -2
- package/dist/tests/8.11/navigation.spec.js +1 -2
- package/dist/tests/8.11/operate-access-flow.spec.js +1 -2
- package/dist/tests/8.11/optimize-agentic-control-panel-api.spec.js +1 -2
- package/dist/tests/8.11/optimize-agentic-control-panel-ui.spec.js +1 -2
- package/dist/tests/8.11/optimize-api-tests.spec.js +8 -16
- package/dist/tests/8.11/optimize-collections-api.spec.js +3 -4
- package/dist/tests/8.11/optimize-collections-ui.spec.js +1 -2
- package/dist/tests/8.11/optimize-data-filters-api.spec.js +1 -2
- package/dist/tests/8.11/optimize-data-filters-ui.spec.js +1 -2
- package/dist/tests/8.11/optimize-exporter-filters-importer-e2e.spec.js +2 -4
- package/dist/tests/8.11/optimize-sharing-alerts-export-api.spec.js +1 -2
- package/dist/tests/8.11/optimize-sharing-alerts-export-ui.spec.js +1 -2
- package/dist/tests/8.11/orchestration-cluster-mcp-server/api/mcp-processes-audit-log.spec.js +1 -2
- package/dist/tests/8.11/orchestration-cluster-mcp-server/api/mcp-processes-call-tools.spec.js +1 -2
- package/dist/tests/8.11/orchestration-cluster-mcp-server/api/mcp-processes-e2e-flow.spec.js +1 -2
- package/dist/tests/8.11/orchestration-cluster-mcp-server/api/mcp-processes-list-tools.spec.js +2 -2
- package/dist/tests/8.11/orchestration-cluster-mcp-server/mcp-cluster-tools.spec.js +1 -2
- package/dist/tests/8.11/orchestration-cluster-mcp-server/mcp-incident-tools.spec.js +1 -2
- package/dist/tests/8.11/orchestration-cluster-mcp-server/mcp-user-task-tools.spec.js +1 -2
- package/dist/tests/8.11/orchestration-cluster-mcp-server/mcp-variable-tools.spec.js +1 -2
- package/dist/tests/8.11/play.spec.js +1 -2
- package/dist/tests/8.11/prod-cluster-cleanup.spec.js +1 -2
- package/dist/tests/8.11/rba-enabled-v2-user-flows.spec.js +1 -2
- package/dist/tests/8.11/saas-migration-path-user-flows.spec.js +1 -2
- package/dist/tests/8.11/smoke-tests.spec.js +1 -2
- package/dist/tests/8.11/test-setup.spec.js +1 -2
- package/dist/tests/8.11/web-modeler-user-flows.spec.js +1 -2
- package/dist/tests/api/v2/cluster/cluster-api-tests.spec.js +12 -4
- package/dist/utils/api/config.d.ts +11 -0
- package/dist/utils/api/config.js +27 -1
- package/package.json +1 -1
|
@@ -18,8 +18,7 @@ const testUser = (0, users_1.getTestUser)('mainUser');
|
|
|
18
18
|
const sharedWorkspaceName = 'Cross Component Test Project';
|
|
19
19
|
let workspaceGrantee;
|
|
20
20
|
_8_11_1.test.describe.configure({ mode: 'parallel' });
|
|
21
|
-
|
|
22
|
-
_8_11_1.test.describe.skip('User Roles User Flow', () => {
|
|
21
|
+
_8_11_1.test.describe('User Roles User Flow', () => {
|
|
23
22
|
const clusterNames = {
|
|
24
23
|
'Modeler Role User Flow': 'Modeler Role Cluster',
|
|
25
24
|
'Analyst Role User Flow': 'Analyst Role Cluster',
|
|
@@ -85,8 +85,7 @@ const regexTestCases = [
|
|
|
85
85
|
},
|
|
86
86
|
];
|
|
87
87
|
_8_11_1.test.describe.configure({ mode: 'parallel' });
|
|
88
|
-
|
|
89
|
-
_8_11_1.test.describe.skip('Agentic Orchestation User Flows', () => {
|
|
88
|
+
_8_11_1.test.describe('Agentic Orchestation User Flows', () => {
|
|
90
89
|
const clusterName = 'Test Cluster';
|
|
91
90
|
_8_11_1.test.beforeAll(async () => {
|
|
92
91
|
authToken = await (0, apiHelpers_1.authSaasAPI)();
|
|
@@ -11,8 +11,7 @@ const users_1 = require("../../utils/users");
|
|
|
11
11
|
const expectLocatorWithRetry_1 = require("../../utils/assertionHelpers/expectLocatorWithRetry");
|
|
12
12
|
const testUser = (0, users_1.getTestUser)('fifteenthUser');
|
|
13
13
|
_8_11_1.test.describe.configure({ mode: 'parallel' });
|
|
14
|
-
|
|
15
|
-
_8_11_1.test.describe.skip('AWS Cluster User Flows Test', () => {
|
|
14
|
+
_8_11_1.test.describe('AWS Cluster User Flows Test', () => {
|
|
16
15
|
const clusterName = 'AWS Cluster';
|
|
17
16
|
_8_11_1.test.beforeEach(async ({ page, loginPage }, testInfo) => {
|
|
18
17
|
await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage, testUser, (testInfo.workerIndex + 1) * 1000);
|
|
@@ -52,8 +52,7 @@ const users_1 = require("../../utils/users");
|
|
|
52
52
|
const testUser = (0, users_1.getTestUser)('fourteenthUser');
|
|
53
53
|
let authToken;
|
|
54
54
|
_8_11_1.test.describe.configure({ mode: 'parallel' });
|
|
55
|
-
|
|
56
|
-
_8_11_1.test.describe.skip('AWS Connectors User Flows', () => {
|
|
55
|
+
_8_11_1.test.describe('AWS Connectors User Flows', () => {
|
|
57
56
|
const clusterName = 'Test Cluster';
|
|
58
57
|
// The Zeebe token is taken here rather than in a beforeAll because
|
|
59
58
|
// ensureDefaultClusterApiCredentials needs a logged-in Console page, which
|
|
@@ -46,8 +46,7 @@ let jsonProcessKeyUpdate;
|
|
|
46
46
|
let stringProcessKeyDisplay;
|
|
47
47
|
let stringProcessKeyUpdate;
|
|
48
48
|
_8_11_1.test.describe.configure({ mode: 'parallel' });
|
|
49
|
-
|
|
50
|
-
_8_11_1.test.describe.skip('Cluster Variables User Flows', () => {
|
|
49
|
+
_8_11_1.test.describe('Cluster Variables User Flows', () => {
|
|
51
50
|
const clusterName = 'Test Cluster';
|
|
52
51
|
_8_11_1.test.beforeAll(async () => {
|
|
53
52
|
authToken = await (0, apiHelpers_1.authSaasAPI)();
|
|
@@ -10,8 +10,7 @@ const testUser = (0, users_1.getTestUser)('seventeenthUser');
|
|
|
10
10
|
const CLUSTER_NAME = 'Test Cluster';
|
|
11
11
|
const INBOUND_INSTANCES = /\/inbound-instances(\?|$)/;
|
|
12
12
|
_8_11_1.test.describe.configure({ mode: 'parallel' });
|
|
13
|
-
|
|
14
|
-
_8_11_1.test.describe.skip('Hub to connectors runtime CORS @tasklistV2', () => {
|
|
13
|
+
_8_11_1.test.describe('Hub to connectors runtime CORS @tasklistV2', () => {
|
|
15
14
|
_8_11_1.test.beforeEach(async ({ page, loginPage }, testInfo) => {
|
|
16
15
|
await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage, testUser, (testInfo.workerIndex + 1) * 1000);
|
|
17
16
|
});
|
|
@@ -15,8 +15,7 @@ const connectorSecrets_1 = require("../../utils/connectorSecrets");
|
|
|
15
15
|
const constants_1 = require("../../utils/constants");
|
|
16
16
|
const testUser = (0, users_1.getTestUser)('seventeenthUser');
|
|
17
17
|
_8_11_1.test.describe.configure({ mode: 'parallel' });
|
|
18
|
-
|
|
19
|
-
_8_11_1.test.describe.skip('Connectors User Flow Tests @tasklistV2', () => {
|
|
18
|
+
_8_11_1.test.describe('Connectors User Flow Tests @tasklistV2', () => {
|
|
20
19
|
const defaultClusterName = 'Test Cluster';
|
|
21
20
|
const awsCluster = 'AWS Cluster';
|
|
22
21
|
_8_11_1.test.beforeEach(async ({ page, loginPage }, testInfo) => {
|
|
@@ -12,8 +12,7 @@ const mailSlurpClient_1 = require("../../utils/mailSlurpClient");
|
|
|
12
12
|
const constants_1 = require("../../utils/constants");
|
|
13
13
|
const testUser = (0, users_1.getTestUser)('eighteenthUser');
|
|
14
14
|
_8_11_1.test.describe.configure({ mode: 'parallel' });
|
|
15
|
-
|
|
16
|
-
_8_11_1.test.describe.skip('Console User Flow Tests @tasklistV2', () => {
|
|
15
|
+
_8_11_1.test.describe('Console User Flow Tests @tasklistV2', () => {
|
|
17
16
|
const clusterName = 'Test Cluster';
|
|
18
17
|
let inbox = '';
|
|
19
18
|
_8_11_1.test.beforeEach(async ({ page, loginPage }, testInfo) => {
|
|
@@ -11,8 +11,7 @@ const expectTextWithRetry_1 = require("../../utils/assertionHelpers/expectTextWi
|
|
|
11
11
|
const users_1 = require("../../utils/users");
|
|
12
12
|
const testUser = (0, users_1.getTestUser)('nineteenthUser');
|
|
13
13
|
_8_11_1.test.describe.configure({ mode: 'parallel' });
|
|
14
|
-
|
|
15
|
-
_8_11_1.test.describe.skip('HTO User Flow Tests', () => {
|
|
14
|
+
_8_11_1.test.describe('HTO User Flow Tests', () => {
|
|
16
15
|
const clusterName = 'Test Cluster';
|
|
17
16
|
_8_11_1.test.beforeEach(async ({ page, loginPage }, testInfo) => {
|
|
18
17
|
await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage, testUser, (testInfo.workerIndex + 1) * 1000);
|
|
@@ -59,8 +59,7 @@ const classificationTestCases = [
|
|
|
59
59
|
},
|
|
60
60
|
];
|
|
61
61
|
_8_11_1.test.describe.configure({ mode: 'parallel' });
|
|
62
|
-
|
|
63
|
-
_8_11_1.test.describe.skip('IDP User Flow Tests', () => {
|
|
62
|
+
_8_11_1.test.describe('IDP User Flow Tests', () => {
|
|
64
63
|
const clusterName = 'Test Cluster';
|
|
65
64
|
_8_11_1.test.afterEach(async ({ page }, testInfo) => {
|
|
66
65
|
await (0, _setup_1.captureScreenshot)(page, testInfo);
|
|
@@ -5,8 +5,7 @@ const _setup_1 = require("../../test-setup.js");
|
|
|
5
5
|
const _8_11_1 = require("../../fixtures/8.11");
|
|
6
6
|
const sleep_1 = require("../../utils/sleep");
|
|
7
7
|
_8_11_1.test.describe.configure({ mode: 'parallel' });
|
|
8
|
-
|
|
9
|
-
_8_11_1.test.describe.skip('Login Tests - invalid-input - (negative) generated', () => {
|
|
8
|
+
_8_11_1.test.describe('Login Tests - invalid-input - (negative) generated', () => {
|
|
10
9
|
_8_11_1.test.beforeEach(async ({ page }, testInfo) => {
|
|
11
10
|
await page.goto('/');
|
|
12
11
|
await (0, sleep_1.sleep)((testInfo.workerIndex + 1) * 1000);
|
|
@@ -5,8 +5,7 @@ const _setup_1 = require("../../test-setup.js");
|
|
|
5
5
|
const _8_11_1 = require("../../fixtures/8.11");
|
|
6
6
|
const sleep_1 = require("../../utils/sleep");
|
|
7
7
|
_8_11_1.test.describe.configure({ mode: 'parallel' });
|
|
8
|
-
|
|
9
|
-
_8_11_1.test.describe.skip('Login Tests', () => {
|
|
8
|
+
_8_11_1.test.describe('Login Tests', () => {
|
|
10
9
|
_8_11_1.test.beforeEach(async ({ page }, testInfo) => {
|
|
11
10
|
await page.context().clearCookies();
|
|
12
11
|
await page.goto('/');
|
|
@@ -7,8 +7,7 @@ const UtilitiesPage_1 = require("../../pages/8.11/UtilitiesPage");
|
|
|
7
7
|
const users_1 = require("../../utils/users");
|
|
8
8
|
const testUser = (0, users_1.getTestUser)('twentyFirstUser');
|
|
9
9
|
_8_11_1.test.describe.configure({ mode: 'parallel' });
|
|
10
|
-
|
|
11
|
-
_8_11_1.test.describe.skip('Navigation Tests', () => {
|
|
10
|
+
_8_11_1.test.describe('Navigation Tests', () => {
|
|
12
11
|
const clusterName = 'Test Cluster';
|
|
13
12
|
_8_11_1.test.beforeEach(async ({ page, loginPage }, testInfo) => {
|
|
14
13
|
await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage, testUser, (testInfo.workerIndex + 1) * 1000);
|
|
@@ -19,8 +19,7 @@ const testUser = (0, users_1.getTestUser)('twentySecondUser');
|
|
|
19
19
|
// of this spec that POSTed V2 paths to it always saw 200/HTML and never
|
|
20
20
|
// the auth response under test).
|
|
21
21
|
_8_11_1.test.describe.configure({ mode: 'parallel' });
|
|
22
|
-
|
|
23
|
-
_8_11_1.test.describe.skip('Cluster V2 API requires authentication @tasklistV2', () => {
|
|
22
|
+
_8_11_1.test.describe('Cluster V2 API requires authentication @tasklistV2', () => {
|
|
24
23
|
let clientName;
|
|
25
24
|
const clusterName = 'Test Cluster';
|
|
26
25
|
_8_11_1.test.beforeEach(async ({ page, loginPage }, testInfo) => {
|
|
@@ -19,8 +19,7 @@ const clusterName = 'Test Cluster';
|
|
|
19
19
|
// absorbed by loginWithRetry and have never been traced to a failure
|
|
20
20
|
// (docs/saas-login-investigation.md). See docs/serial-specs.md.
|
|
21
21
|
_8_11_1.test.describe.configure({ mode: 'serial' });
|
|
22
|
-
|
|
23
|
-
_8_11_1.test.describe.skip('Agentic Control Plane Dashboard API Tests @agentic-dashboard-api @8.11', () => {
|
|
22
|
+
_8_11_1.test.describe('Agentic Control Plane Dashboard API Tests @agentic-dashboard-api @8.11', () => {
|
|
24
23
|
_8_11_1.test.beforeEach(async ({ page, loginPage }, testInfo) => {
|
|
25
24
|
await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage, testUser, (testInfo.workerIndex + 1) * 1000);
|
|
26
25
|
});
|
|
@@ -9,8 +9,7 @@ const agenticDashboardHelpers_1 = require("../../utils/agenticDashboardHelpers")
|
|
|
9
9
|
const testUser = (0, users_1.getTestUser)('twentyFirstUser');
|
|
10
10
|
const clusterName = 'Test Cluster';
|
|
11
11
|
_8_11_1.test.describe.configure({ mode: 'parallel' });
|
|
12
|
-
|
|
13
|
-
_8_11_1.test.describe.skip('Agentic Control Plane Dashboard UI Tests @agentic-dashboard-ui @8.11', () => {
|
|
12
|
+
_8_11_1.test.describe('Agentic Control Plane Dashboard UI Tests @agentic-dashboard-ui @8.11', () => {
|
|
14
13
|
_8_11_1.test.beforeEach(async ({ page, loginPage }, testInfo) => {
|
|
15
14
|
await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage, testUser, (testInfo.workerIndex + 1) * 1000);
|
|
16
15
|
});
|
|
@@ -31,8 +31,7 @@ const assertUnauthorizedResponseBody = async (response) => {
|
|
|
31
31
|
}
|
|
32
32
|
expectUnauthorizedErrorBody(body);
|
|
33
33
|
};
|
|
34
|
-
|
|
35
|
-
_8_11_1.test.describe.skip('API optimize SaaS Tests', () => {
|
|
34
|
+
_8_11_1.test.describe('API optimize SaaS Tests', () => {
|
|
36
35
|
let optimizeCookie;
|
|
37
36
|
let csrfToken;
|
|
38
37
|
let optimizeBearerToken;
|
|
@@ -381,8 +380,7 @@ _8_11_1.test.describe.skip('API optimize SaaS Tests', () => {
|
|
|
381
380
|
(0, test_1.expect)(response.status()).toBe(404);
|
|
382
381
|
});
|
|
383
382
|
});
|
|
384
|
-
|
|
385
|
-
_8_11_1.test.describe.skip('API optimize SaaS Tests - Conditional Events', () => {
|
|
383
|
+
_8_11_1.test.describe('API optimize SaaS Tests - Conditional Events', () => {
|
|
386
384
|
let optimizeCookie;
|
|
387
385
|
let csrfToken;
|
|
388
386
|
let optimizeBearerToken;
|
|
@@ -571,8 +569,7 @@ _8_11_1.test.describe.skip('API optimize SaaS Tests - Conditional Events', () =>
|
|
|
571
569
|
});
|
|
572
570
|
});
|
|
573
571
|
});
|
|
574
|
-
|
|
575
|
-
_8_11_1.test.describe.skip('API optimize SaaS Tests - Health Readiness', () => {
|
|
572
|
+
_8_11_1.test.describe('API optimize SaaS Tests - Health Readiness', () => {
|
|
576
573
|
let baseUrl;
|
|
577
574
|
_8_11_1.test.beforeAll(async () => {
|
|
578
575
|
baseUrl = process.env.CAMUNDA_OPTIMIZE_BASE_URL;
|
|
@@ -593,8 +590,7 @@ _8_11_1.test.describe.skip('API optimize SaaS Tests - Health Readiness', () => {
|
|
|
593
590
|
});
|
|
594
591
|
});
|
|
595
592
|
});
|
|
596
|
-
|
|
597
|
-
_8_11_1.test.describe.skip('API optimize SaaS Tests - Sharing', () => {
|
|
593
|
+
_8_11_1.test.describe('API optimize SaaS Tests - Sharing', () => {
|
|
598
594
|
let optimizeBearerToken;
|
|
599
595
|
let baseUrl;
|
|
600
596
|
_8_11_1.test.beforeAll(async () => {
|
|
@@ -668,8 +664,7 @@ _8_11_1.test.describe.skip('API optimize SaaS Tests - Sharing', () => {
|
|
|
668
664
|
});
|
|
669
665
|
});
|
|
670
666
|
});
|
|
671
|
-
|
|
672
|
-
_8_11_1.test.describe.skip('API optimize SaaS Tests - Dashboard and Report GET edge cases', () => {
|
|
667
|
+
_8_11_1.test.describe('API optimize SaaS Tests - Dashboard and Report GET edge cases', () => {
|
|
673
668
|
let optimizeBearerToken;
|
|
674
669
|
let optimizeCookie;
|
|
675
670
|
let csrfToken;
|
|
@@ -729,8 +724,7 @@ _8_11_1.test.describe.skip('API optimize SaaS Tests - Dashboard and Report GET e
|
|
|
729
724
|
});
|
|
730
725
|
});
|
|
731
726
|
});
|
|
732
|
-
|
|
733
|
-
_8_11_1.test.describe.skip('API optimize SaaS Tests - Export edge cases', () => {
|
|
727
|
+
_8_11_1.test.describe('API optimize SaaS Tests - Export edge cases', () => {
|
|
734
728
|
let optimizeBearerToken;
|
|
735
729
|
let optimizeCookie;
|
|
736
730
|
let csrfToken;
|
|
@@ -872,8 +866,7 @@ _8_11_1.test.describe.skip('API optimize SaaS Tests - Export edge cases', () =>
|
|
|
872
866
|
});
|
|
873
867
|
});
|
|
874
868
|
});
|
|
875
|
-
|
|
876
|
-
_8_11_1.test.describe.skip('API optimize SaaS Tests - Auth edge cases', () => {
|
|
869
|
+
_8_11_1.test.describe('API optimize SaaS Tests - Auth edge cases', () => {
|
|
877
870
|
let baseUrl;
|
|
878
871
|
_8_11_1.test.beforeAll(async () => {
|
|
879
872
|
baseUrl = process.env.CAMUNDA_OPTIMIZE_BASE_URL;
|
|
@@ -901,8 +894,7 @@ _8_11_1.test.describe.skip('API optimize SaaS Tests - Auth edge cases', () => {
|
|
|
901
894
|
});
|
|
902
895
|
});
|
|
903
896
|
});
|
|
904
|
-
|
|
905
|
-
_8_11_1.test.describe.skip('API V2 tests on SaaS cluster', () => {
|
|
897
|
+
_8_11_1.test.describe('API V2 tests on SaaS cluster', () => {
|
|
906
898
|
let bearerToken;
|
|
907
899
|
const apiUrl = () => process.env.ZEEBE_API_URL;
|
|
908
900
|
_8_11_1.test.beforeAll(async () => {
|
|
@@ -5,8 +5,7 @@ const _8_11_1 = require("../../fixtures/8.11");
|
|
|
5
5
|
const apiHelpers_1 = require("../../utils/apiHelpers");
|
|
6
6
|
const randomName_1 = require("../../utils/randomName");
|
|
7
7
|
_8_11_1.test.describe.configure({ mode: 'parallel' });
|
|
8
|
-
|
|
9
|
-
_8_11_1.test.describe.skip('API Optimize Collections Lifecycle Tests @optimize-collections-api @8.11', () => {
|
|
8
|
+
_8_11_1.test.describe('API Optimize Collections Lifecycle Tests @optimize-collections-api @8.11', () => {
|
|
10
9
|
let optimizeCookie;
|
|
11
10
|
let csrfToken;
|
|
12
11
|
let optimizeBearerToken;
|
|
@@ -18,7 +17,7 @@ _8_11_1.test.describe.skip('API Optimize Collections Lifecycle Tests @optimize-c
|
|
|
18
17
|
optimizeBearerToken = await (0, apiHelpers_1.authSaasAPI)(process.env.OPTIMIZE_API_TOKEN_AUDIENCE);
|
|
19
18
|
baseUrl = process.env.CAMUNDA_OPTIMIZE_BASE_URL;
|
|
20
19
|
});
|
|
21
|
-
(0, _8_11_1.test)('Create a collection and retrieve it by ID (200)', async ({ request
|
|
20
|
+
(0, _8_11_1.test)('Create a collection and retrieve it by ID (200)', async ({ request }) => {
|
|
22
21
|
const collectionName = await (0, randomName_1.randomNameAgregator)('Collection Create');
|
|
23
22
|
const collectionId = await (0, apiHelpers_1.createCollection)(request, {
|
|
24
23
|
name: collectionName,
|
|
@@ -131,7 +130,7 @@ _8_11_1.test.describe.skip('API Optimize Collections Lifecycle Tests @optimize-c
|
|
|
131
130
|
await (0, apiHelpers_1.assertUnauthorizedResponseBody)(response);
|
|
132
131
|
});
|
|
133
132
|
});
|
|
134
|
-
(0, _8_11_1.test)('Get collection without auth cookie returns 401', async ({ request
|
|
133
|
+
(0, _8_11_1.test)('Get collection without auth cookie returns 401', async ({ request }) => {
|
|
135
134
|
const collectionName = await (0, randomName_1.randomNameAgregator)('Collection Auth Get');
|
|
136
135
|
const collectionId = await (0, apiHelpers_1.createCollection)(request, {
|
|
137
136
|
name: collectionName,
|
|
@@ -8,8 +8,7 @@ const users_1 = require("../../utils/users");
|
|
|
8
8
|
const testUser = (0, users_1.getTestUser)('twentySecondUser');
|
|
9
9
|
const clusterName = 'Test Cluster';
|
|
10
10
|
_8_11_1.test.describe.configure({ mode: 'parallel' });
|
|
11
|
-
|
|
12
|
-
_8_11_1.test.describe.skip('Optimize Collections Lifecycle UI Tests @optimize-collections-ui @8.11', () => {
|
|
11
|
+
_8_11_1.test.describe('Optimize Collections Lifecycle UI Tests @optimize-collections-ui @8.11', () => {
|
|
13
12
|
_8_11_1.test.beforeEach(async ({ page, loginPage }, testInfo) => {
|
|
14
13
|
await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage, testUser, (testInfo.workerIndex + 1) * 1000);
|
|
15
14
|
});
|
|
@@ -59,8 +59,7 @@ _8_11_1.test.afterAll(async () => {
|
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
});
|
|
62
|
-
|
|
63
|
-
_8_11_1.test.describe.skip('Optimize Data Filters API @optimize-data-filters-api @8.11', () => {
|
|
62
|
+
_8_11_1.test.describe('Optimize Data Filters API @optimize-data-filters-api @8.11', () => {
|
|
64
63
|
_8_11_1.test.slow();
|
|
65
64
|
(0, _8_11_1.test)('T11728029 business_* variable filter enabled by default', async () => {
|
|
66
65
|
skipIfUnavailable();
|
|
@@ -25,8 +25,7 @@ const skipIfUnavailable = () => {
|
|
|
25
25
|
// negative tests would survive parallelising on their own, but they share the
|
|
26
26
|
// form with the ones that save. See docs/serial-specs.md.
|
|
27
27
|
_8_11_1.test.describe.configure({ mode: 'serial' });
|
|
28
|
-
|
|
29
|
-
_8_11_1.test.describe.skip('Optimize Data Filters UI @optimize-data-filters-ui @8.11', () => {
|
|
28
|
+
_8_11_1.test.describe('Optimize Data Filters UI @optimize-data-filters-ui @8.11', () => {
|
|
30
29
|
_8_11_1.test.slow();
|
|
31
30
|
_8_11_1.test.beforeAll(async ({ browser }) => {
|
|
32
31
|
const context = await browser.newContext();
|
|
@@ -226,8 +226,7 @@ _8_11_1.test.afterAll(async ({ request }) => {
|
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
228
|
});
|
|
229
|
-
|
|
230
|
-
_8_11_1.test.describe.skip('Optimize exporter filters — variable value type exclusion @optimize-exporter-filters-importer-e2e @8.11', () => {
|
|
229
|
+
_8_11_1.test.describe('Optimize exporter filters — variable value type exclusion @optimize-exporter-filters-importer-e2e @8.11', () => {
|
|
231
230
|
_8_11_1.test.slow();
|
|
232
231
|
_8_11_1.test.beforeAll(async () => {
|
|
233
232
|
if (!dataFiltersAvailable) {
|
|
@@ -284,8 +283,7 @@ _8_11_1.test.describe.skip('Optimize exporter filters — variable value type ex
|
|
|
284
283
|
});
|
|
285
284
|
});
|
|
286
285
|
});
|
|
287
|
-
|
|
288
|
-
_8_11_1.test.describe.skip('Optimize exporter filters — Optimize mode restricted record export @optimize-exporter-filters-importer-e2e @8.11', () => {
|
|
286
|
+
_8_11_1.test.describe('Optimize exporter filters — Optimize mode restricted record export @optimize-exporter-filters-importer-e2e @8.11', () => {
|
|
289
287
|
_8_11_1.test.slow();
|
|
290
288
|
_8_11_1.test.beforeAll(async () => {
|
|
291
289
|
if (!dataFiltersAvailable) {
|
|
@@ -103,8 +103,7 @@ const createRawDataReport = async (request, options) => (0, apiHelpers_1.retryOn
|
|
|
103
103
|
(0, test_1.expect)(body).toHaveProperty('id');
|
|
104
104
|
return body.id;
|
|
105
105
|
}, 'createRawDataReport');
|
|
106
|
-
|
|
107
|
-
_8_11_1.test.describe.skip('API Optimize Sharing, Alerts & Export Tests @optimize-sharing-alerts-export-api @8.11', () => {
|
|
106
|
+
_8_11_1.test.describe('API Optimize Sharing, Alerts & Export Tests @optimize-sharing-alerts-export-api @8.11', () => {
|
|
108
107
|
let optimizeCookie;
|
|
109
108
|
let csrfToken;
|
|
110
109
|
let optimizeBearerToken;
|
|
@@ -11,8 +11,7 @@ const testUser = (0, users_1.getTestUser)('mainUser');
|
|
|
11
11
|
const clusterName = 'Test Cluster';
|
|
12
12
|
const DEFINITION_KEY = 'customer_onboarding_en';
|
|
13
13
|
_8_11_1.test.describe.configure({ mode: 'parallel' });
|
|
14
|
-
|
|
15
|
-
_8_11_1.test.describe.skip('Optimize Sharing & Export UI Tests @optimize-sharing-alerts-export-ui @8.11', () => {
|
|
14
|
+
_8_11_1.test.describe('Optimize Sharing & Export UI Tests @optimize-sharing-alerts-export-ui @8.11', () => {
|
|
16
15
|
let baseUrl;
|
|
17
16
|
let optimizeCookie;
|
|
18
17
|
let csrfToken;
|
package/dist/tests/8.11/orchestration-cluster-mcp-server/api/mcp-processes-audit-log.spec.js
CHANGED
|
@@ -28,8 +28,7 @@ let mcpSessionId = null;
|
|
|
28
28
|
let restProcessDefinitionKey;
|
|
29
29
|
let compositeToolName;
|
|
30
30
|
_8_11_1.test.describe.configure({ mode: 'parallel' });
|
|
31
|
-
|
|
32
|
-
_8_11_1.test.describe.skip('Orchestration Cluster MCP Server — audit log inbound channel', () => {
|
|
31
|
+
_8_11_1.test.describe('Orchestration Cluster MCP Server — audit log inbound channel', () => {
|
|
33
32
|
_8_11_1.test.beforeAll(async () => {
|
|
34
33
|
authToken = await (0, apiHelpers_1.authSaasAPI)(undefined, 'agentic_cluster');
|
|
35
34
|
mcpProcessesUrl = (0, apiHelpers_1.buildZeebeApiUrl)('/mcp/processes', 'saas', 'agentic_cluster');
|
package/dist/tests/8.11/orchestration-cluster-mcp-server/api/mcp-processes-call-tools.spec.js
CHANGED
|
@@ -25,8 +25,7 @@ let mcpSessionId = null;
|
|
|
25
25
|
// processInstanceKey of a pre-created instance used by SC-CALL-08 (getProcessInstance smoke).
|
|
26
26
|
let smokeProcessInstanceKey = null;
|
|
27
27
|
_8_11_1.test.describe.configure({ mode: 'parallel' });
|
|
28
|
-
|
|
29
|
-
_8_11_1.test.describe.skip('Orchestration Cluster MCP Server — /mcp/processes tools/call', () => {
|
|
28
|
+
_8_11_1.test.describe('Orchestration Cluster MCP Server — /mcp/processes tools/call', () => {
|
|
30
29
|
_8_11_1.test.beforeAll(async () => {
|
|
31
30
|
authToken = await (0, apiHelpers_1.authSaasAPI)(undefined, 'agentic_cluster');
|
|
32
31
|
mcpProcessesUrl = (0, apiHelpers_1.buildZeebeApiUrl)('/mcp/processes', 'saas', 'agentic_cluster');
|
|
@@ -22,8 +22,7 @@ let messageSubscriptionsSearchUrl;
|
|
|
22
22
|
let processInstancesSearchUrl;
|
|
23
23
|
let mcpSessionId = null;
|
|
24
24
|
_8_11_1.test.describe.configure({ mode: 'parallel' });
|
|
25
|
-
|
|
26
|
-
_8_11_1.test.describe.skip('Orchestration Cluster MCP Server — /mcp/processes full E2E flows', () => {
|
|
25
|
+
_8_11_1.test.describe('Orchestration Cluster MCP Server — /mcp/processes full E2E flows', () => {
|
|
27
26
|
_8_11_1.test.beforeAll(async () => {
|
|
28
27
|
authToken = await (0, apiHelpers_1.authSaasAPI)(undefined, 'agentic_cluster');
|
|
29
28
|
mcpProcessesUrl = (0, apiHelpers_1.buildZeebeApiUrl)('/mcp/processes', 'saas', 'agentic_cluster');
|
package/dist/tests/8.11/orchestration-cluster-mcp-server/api/mcp-processes-list-tools.spec.js
CHANGED
|
@@ -23,8 +23,8 @@ let authToken;
|
|
|
23
23
|
let mcpProcessesUrl;
|
|
24
24
|
let messageSubscriptionsSearchUrl;
|
|
25
25
|
let mcpSessionId = null;
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
_8_11_1.test.describe
|
|
27
|
+
.parallel('Orchestration Cluster MCP Server — /mcp/processes tools/list', () => {
|
|
28
28
|
_8_11_1.test.beforeAll(async () => {
|
|
29
29
|
authToken = await (0, apiHelpers_1.authSaasAPI)(undefined, 'agentic_cluster');
|
|
30
30
|
mcpProcessesUrl = (0, apiHelpers_1.buildZeebeApiUrl)('/mcp/processes', 'saas', 'agentic_cluster');
|
|
@@ -10,8 +10,7 @@ const testUser = (0, users_1.getTestUser)('fourteenthUser');
|
|
|
10
10
|
let authToken;
|
|
11
11
|
let instanceKey;
|
|
12
12
|
_8_11_1.test.describe.configure({ mode: 'parallel' });
|
|
13
|
-
|
|
14
|
-
_8_11_1.test.describe.skip('Orchestration Cluster MCP Server - Cluster Tools @tasklistV2', () => {
|
|
13
|
+
_8_11_1.test.describe('Orchestration Cluster MCP Server - Cluster Tools @tasklistV2', () => {
|
|
15
14
|
const clusterName = 'Agentic Orchestration Cluster';
|
|
16
15
|
_8_11_1.test.beforeAll(async () => {
|
|
17
16
|
authToken = await (0, apiHelpers_1.authSaasAPI)(undefined, 'agentic_cluster');
|
|
@@ -11,8 +11,7 @@ const testUser = (0, users_1.getTestUser)('fifteenthUser');
|
|
|
11
11
|
let authToken;
|
|
12
12
|
let toolsInstanceKey;
|
|
13
13
|
_8_11_1.test.describe.configure({ mode: 'parallel' });
|
|
14
|
-
|
|
15
|
-
_8_11_1.test.describe.skip('Orchestration Cluster MCP Server - Incident Tools @tasklistV2', () => {
|
|
14
|
+
_8_11_1.test.describe('Orchestration Cluster MCP Server - Incident Tools @tasklistV2', () => {
|
|
16
15
|
const clusterName = 'Agentic Orchestration Cluster';
|
|
17
16
|
_8_11_1.test.beforeAll(async () => {
|
|
18
17
|
authToken = await (0, apiHelpers_1.authSaasAPI)(undefined, 'agentic_cluster');
|
|
@@ -9,8 +9,7 @@ const users_1 = require("../../../utils/users");
|
|
|
9
9
|
const test_1 = require("@playwright/test");
|
|
10
10
|
const testUser = (0, users_1.getTestUser)('fourteenthUser');
|
|
11
11
|
_8_11_1.test.describe.configure({ mode: 'parallel' });
|
|
12
|
-
|
|
13
|
-
_8_11_1.test.describe.skip('Orchestration Cluster MCP Server - User Task Tools @tasklistV2', () => {
|
|
12
|
+
_8_11_1.test.describe('Orchestration Cluster MCP Server - User Task Tools @tasklistV2', () => {
|
|
14
13
|
const clusterName = 'Agentic Orchestration Cluster';
|
|
15
14
|
const createTestData = async () => {
|
|
16
15
|
const authToken = await (0, apiHelpers_1.authSaasAPI)(undefined, 'agentic_cluster');
|
|
@@ -9,8 +9,7 @@ const users_1 = require("../../../utils/users");
|
|
|
9
9
|
const test_1 = require("@playwright/test");
|
|
10
10
|
const testUser = (0, users_1.getTestUser)('sixteenthUser');
|
|
11
11
|
_8_11_1.test.describe.configure({ mode: 'parallel' });
|
|
12
|
-
|
|
13
|
-
_8_11_1.test.describe.skip('Orchestration Cluster MCP Server - Variable Tools @tasklistV2', () => {
|
|
12
|
+
_8_11_1.test.describe('Orchestration Cluster MCP Server - Variable Tools @tasklistV2', () => {
|
|
14
13
|
const clusterName = 'Agentic Orchestration Cluster';
|
|
15
14
|
const createTestData = async () => {
|
|
16
15
|
const authToken = await (0, apiHelpers_1.authSaasAPI)(undefined, 'agentic_cluster');
|
|
@@ -8,8 +8,7 @@ const UtilitiesPage_1 = require("../../pages/8.11/UtilitiesPage");
|
|
|
8
8
|
const users_1 = require("../../utils/users");
|
|
9
9
|
const testUser = (0, users_1.getTestUser)('twentyFourthUser');
|
|
10
10
|
_8_11_1.test.describe.configure({ mode: 'parallel' });
|
|
11
|
-
|
|
12
|
-
_8_11_1.test.describe.skip('Deploy and run a process in Play', () => {
|
|
11
|
+
_8_11_1.test.describe('Deploy and run a process in Play', () => {
|
|
13
12
|
const clusterName = 'Test Cluster';
|
|
14
13
|
_8_11_1.test.beforeEach(async ({ page, loginPage }, testInfo) => {
|
|
15
14
|
await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage, testUser, (testInfo.workerIndex + 1) * 1000);
|
|
@@ -7,8 +7,7 @@ const prodClusterCleanup_1 = require("../../utils/prodClusterCleanup");
|
|
|
7
7
|
// Runs as its own project after the prod smoke (see the "Delete the clusters"
|
|
8
8
|
// step in .github/actions/run-tests-smoke/action.yml), not as part of the
|
|
9
9
|
// regular suite.
|
|
10
|
-
|
|
11
|
-
_8_11_1.test.describe.skip('Prod smoke cleanup', () => {
|
|
10
|
+
_8_11_1.test.describe('Prod smoke cleanup', () => {
|
|
12
11
|
(0, _8_11_1.test)('Delete the clusters created by the prod smoke', async ({ page, loginPage, }, testInfo) => {
|
|
13
12
|
_8_11_1.test.skip(process.env.IS_PROD !== 'true', 'Only the prod smoke org has a cluster quota to free up');
|
|
14
13
|
_8_11_1.test.slow();
|
|
@@ -12,8 +12,7 @@ const users_1 = require("../../utils/users");
|
|
|
12
12
|
const expectLocatorWithRetry_1 = require("../../utils/assertionHelpers/expectLocatorWithRetry");
|
|
13
13
|
const consoleApiHelpers_1 = require("../../utils/consoleApiHelpers");
|
|
14
14
|
const mainUser = (0, users_1.getTestUser)('twentySixthUser');
|
|
15
|
-
|
|
16
|
-
_8_11_1.test.describe.skip('RBA Enabled User Flows Test @tasklistV2', () => {
|
|
15
|
+
_8_11_1.test.describe.parallel('RBA Enabled User Flows Test @tasklistV2', () => {
|
|
17
16
|
const clusterNames = {
|
|
18
17
|
'RBA On User Flow - No User Permission': 'First RBA V2 Cluster',
|
|
19
18
|
'RBA On User Flow - Permission for One Process': 'Second RBA V2 Cluster',
|
|
@@ -26,8 +26,7 @@ const testUser = process.env.IS_MIGRATION === 'true'
|
|
|
26
26
|
password: process.env.C8_PASSWORD,
|
|
27
27
|
}
|
|
28
28
|
: (0, users_1.getTestUser)('twentyFirstUser');
|
|
29
|
-
|
|
30
|
-
_8_11_1.test.describe.skip('SaaS Migration Path Tests', () => {
|
|
29
|
+
_8_11_1.test.describe('SaaS Migration Path Tests', () => {
|
|
31
30
|
_8_11_1.test.beforeEach(async ({ page, loginPage }, testInfo) => {
|
|
32
31
|
// Skip if not in migration mode
|
|
33
32
|
if (process.env.IS_MIGRATION !== 'true') {
|
|
@@ -20,8 +20,7 @@ const constants_1 = require("../../utils/constants");
|
|
|
20
20
|
const testUser = (0, users_1.getTestUser)('thirteenthUser');
|
|
21
21
|
const CLUSTER_NAME = 'Test Cluster';
|
|
22
22
|
_8_11_1.test.describe.configure({ mode: 'parallel' });
|
|
23
|
-
|
|
24
|
-
_8_11_1.test.describe.skip('Smoke Tests', () => {
|
|
23
|
+
_8_11_1.test.describe('Smoke Tests', () => {
|
|
25
24
|
_8_11_1.test.beforeEach(async ({ page, loginPage }, testInfo) => {
|
|
26
25
|
await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage, testUser, (testInfo.workerIndex + 1) * 1000);
|
|
27
26
|
});
|
|
@@ -13,8 +13,7 @@ const UtilitiesPage_1 = require("../../pages/8.11/UtilitiesPage");
|
|
|
13
13
|
const users_1 = require("../../utils/users");
|
|
14
14
|
const consoleApiHelpers_1 = require("../../utils/consoleApiHelpers");
|
|
15
15
|
_8_11_1.test.describe.configure({ mode: 'parallel' });
|
|
16
|
-
|
|
17
|
-
_8_11_1.test.describe.skip('Cluster Setup Tests', () => {
|
|
16
|
+
_8_11_1.test.describe('Cluster Setup Tests', () => {
|
|
18
17
|
_8_11_1.test.afterEach(async ({ page }, testInfo) => {
|
|
19
18
|
await (0, _setup_1.captureScreenshot)(page, testInfo);
|
|
20
19
|
await (0, _setup_1.captureFailureVideo)(page, testInfo);
|
|
@@ -18,8 +18,7 @@ const mailSlurpClient_1 = require("../../utils/mailSlurpClient");
|
|
|
18
18
|
const users_1 = require("../../utils/users");
|
|
19
19
|
const testUser = (0, users_1.getTestUser)('eleventhUser');
|
|
20
20
|
_8_11_1.test.describe.configure({ mode: 'parallel' });
|
|
21
|
-
|
|
22
|
-
_8_11_1.test.describe.skip('Web Modeler User Flow Tests', () => {
|
|
21
|
+
_8_11_1.test.describe('Web Modeler User Flow Tests', () => {
|
|
23
22
|
const clusterName = 'Test Cluster';
|
|
24
23
|
const inboxes = {
|
|
25
24
|
'Invite New C8 User To Web Modeler Flow @tasklistV2': '',
|
|
@@ -33,15 +33,23 @@ api_1.test.describe('Cluster and authentication', () => {
|
|
|
33
33
|
(0, test_1.expect)(me.username, 'a user principal is identified by name').toBeTruthy();
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
|
-
//
|
|
37
|
-
//
|
|
38
|
-
//
|
|
36
|
+
// A protected cluster refuses an anonymous caller of /v2/authentication/me.
|
|
37
|
+
// An unprotected one (c8Run's default) answers it with the anonymous
|
|
38
|
+
// principal from 8.10.10 on — camunda/camunda#66964, backported to
|
|
39
|
+
// stable/8.10 in #68796 — so there the test asserts that contract instead.
|
|
39
40
|
(0, api_1.test)('rejects an unauthenticated principal lookup', async ({ api }) => {
|
|
40
41
|
const response = await api.get('/authentication/me', {
|
|
41
42
|
tenant: 'none',
|
|
42
43
|
authorization: null,
|
|
43
44
|
});
|
|
44
|
-
|
|
45
|
+
if (capabilities_1.unauthenticatedAccessAllowed === false || !(0, config_1.atLeastRelease)('8.10.10')) {
|
|
46
|
+
await (0, assertions_1.assertUnauthorized)(response);
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
const me = (await (0, assertions_1.assertOk)(response));
|
|
50
|
+
(0, test_1.expect)(me.isAnonymous, 'the caller is reported as anonymous').toBe(true);
|
|
51
|
+
(0, test_1.expect)(me.username, 'an anonymous caller has no username').toBeNull();
|
|
52
|
+
(0, test_1.expect)(me.authorizedComponents).toEqual(['*']);
|
|
45
53
|
});
|
|
46
54
|
(0, api_1.test)('reports cluster topology with at least one broker', async ({ api }) => {
|
|
47
55
|
const response = await api.get('/topology', { tenant: 'none' });
|
|
@@ -27,6 +27,11 @@ export interface ApiConfig {
|
|
|
27
27
|
tenantId: string;
|
|
28
28
|
/** Minor version under test, e.g. `8.8`. Gates version-specific expectations. */
|
|
29
29
|
zeebeVersion: string;
|
|
30
|
+
/**
|
|
31
|
+
* Full product version under test, e.g. `8.10.10-SNAPSHOT`, or empty when
|
|
32
|
+
* unknown. Gates behavior that changed in a patch release.
|
|
33
|
+
*/
|
|
34
|
+
camundaVersion: string;
|
|
30
35
|
/**
|
|
31
36
|
* Whether the cluster serves `/v2/users/**` at all.
|
|
32
37
|
*
|
|
@@ -121,3 +126,9 @@ export declare const apiConfig: ApiConfig;
|
|
|
121
126
|
* Used to gate expectations for endpoints that only exist from a given release.
|
|
122
127
|
*/
|
|
123
128
|
export declare function atLeastVersion(minor: string): boolean;
|
|
129
|
+
/**
|
|
130
|
+
* True when the cluster runs at or above `release`, e.g.
|
|
131
|
+
* `atLeastRelease('8.10.10')`. A `-SNAPSHOT` or pre-release suffix compares
|
|
132
|
+
* as its base version. Without `CAMUNDA_VERSION` it falls back to the minor.
|
|
133
|
+
*/
|
|
134
|
+
export declare function atLeastRelease(release: string): boolean;
|
package/dist/utils/api/config.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* consumed, so the CI workflows that export them keep working unchanged.
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.atLeastVersion = exports.apiConfig = exports.loadApiConfig = void 0;
|
|
9
|
+
exports.atLeastRelease = exports.atLeastVersion = exports.apiConfig = exports.loadApiConfig = void 0;
|
|
10
10
|
function env(name, fallback = '') {
|
|
11
11
|
const value = process.env[name];
|
|
12
12
|
return value === undefined || value === '' ? fallback : value;
|
|
@@ -32,6 +32,7 @@ function loadApiConfig() {
|
|
|
32
32
|
multiTenancy: env('MT', 'true') === 'true',
|
|
33
33
|
tenantId: env('TENANT_ID', '<default>'),
|
|
34
34
|
zeebeVersion: env('ZEEBE_VERSION', '8.8'),
|
|
35
|
+
camundaVersion: env('CAMUNDA_VERSION', ''),
|
|
35
36
|
// The SM Helm flows this suite runs in deploy Keycloak and drive the API
|
|
36
37
|
// with client credentials, so `oauth2` means the cluster is in OIDC mode.
|
|
37
38
|
// `USERS_API_ENABLED` overrides that for a deployment where the two come
|
|
@@ -70,3 +71,28 @@ function atLeastVersion(minor) {
|
|
|
70
71
|
return major > reqMajor || (major === reqMajor && minorPart >= reqMinor);
|
|
71
72
|
}
|
|
72
73
|
exports.atLeastVersion = atLeastVersion;
|
|
74
|
+
/**
|
|
75
|
+
* True when the cluster runs at or above `release`, e.g.
|
|
76
|
+
* `atLeastRelease('8.10.10')`. A `-SNAPSHOT` or pre-release suffix compares
|
|
77
|
+
* as its base version. Without `CAMUNDA_VERSION` it falls back to the minor.
|
|
78
|
+
*/
|
|
79
|
+
function atLeastRelease(release) {
|
|
80
|
+
const parse = (v) => v
|
|
81
|
+
.split('-')[0]
|
|
82
|
+
.split('.')
|
|
83
|
+
.map((part) => parseInt(part, 10));
|
|
84
|
+
if (!exports.apiConfig.camundaVersion) {
|
|
85
|
+
return atLeastVersion(release.split('.').slice(0, 2).join('.'));
|
|
86
|
+
}
|
|
87
|
+
const actual = parse(exports.apiConfig.camundaVersion);
|
|
88
|
+
const required = parse(release);
|
|
89
|
+
if (actual.some(Number.isNaN))
|
|
90
|
+
return true;
|
|
91
|
+
for (let i = 0; i < required.length; i++) {
|
|
92
|
+
const a = actual[i] ?? 0;
|
|
93
|
+
if (a !== required[i])
|
|
94
|
+
return a > required[i];
|
|
95
|
+
}
|
|
96
|
+
return true;
|
|
97
|
+
}
|
|
98
|
+
exports.atLeastRelease = atLeastRelease;
|