@camunda/e2e-test-suite 0.0.1223 → 0.0.1224
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.
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const fs_1 = __importDefault(require("fs"));
|
|
3
7
|
const test_1 = require("@playwright/test");
|
|
4
8
|
const _8_8_1 = require("../../fixtures/8.8");
|
|
5
9
|
const _setup_1 = require("../../test-setup.js");
|
|
@@ -43,16 +47,36 @@ _8_8_1.test.describe('Cluster Setup Tests', () => {
|
|
|
43
47
|
}
|
|
44
48
|
await clusterPage.clickClusterLink(clusterName);
|
|
45
49
|
await clusterDetailsPage.assertComponentsHealth();
|
|
46
|
-
|
|
50
|
+
// API-client creation is needed whenever this run will also exercise the
|
|
51
|
+
// full-suite pass: many of those specs call the Zeebe REST API directly
|
|
52
|
+
// and need CAMUNDA_OPTIMIZE_BASE_URL for Optimize session login, even
|
|
53
|
+
// though IS_AG=true skips this for the usual smoke-only case (mirrors
|
|
54
|
+
// tests/8.10/test-setup.spec.ts).
|
|
55
|
+
if ((process.env.IS_AG !== 'true' && process.env.IS_MIGRATION !== 'true') ||
|
|
56
|
+
process.env.RUN_FULL_SUITE === 'true') {
|
|
47
57
|
await clusterDetailsPage.clickAPITab();
|
|
48
|
-
await clusterDetailsPage.createAPIClientAndReturnVariables(apiClientName);
|
|
58
|
+
const zeebeCredentials = await clusterDetailsPage.createAPIClientAndReturnVariables(apiClientName);
|
|
49
59
|
await clusterDetailsPage.clickCloseModalButton();
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
60
|
+
if (process.env.RUN_FULL_SUITE === 'true') {
|
|
61
|
+
// Written to disk, not just process.env: the full-suite pass runs as
|
|
62
|
+
// a separate `npm run test` process (see run-tests-smoke-int's
|
|
63
|
+
// action.yml) that does not inherit this process's env mutations.
|
|
64
|
+
// mode 0o600: this file holds a live Zeebe API client secret.
|
|
65
|
+
fs_1.default.writeFileSync('cluster-credentials.json', JSON.stringify(zeebeCredentials), { mode: 0o600 });
|
|
66
|
+
}
|
|
67
|
+
// Deliberately NOT extended to RUN_FULL_SUITE like the API client
|
|
68
|
+
// above: connector-secrets creation is on test-setup's blocking
|
|
69
|
+
// critical path, and its own transient flakiness would take down
|
|
70
|
+
// cluster provisioning entirely (see the identical comment in
|
|
71
|
+
// tests/8.10/test-setup.spec.ts).
|
|
72
|
+
if (process.env.IS_AG !== 'true' && process.env.IS_MIGRATION !== 'true') {
|
|
73
|
+
await clusterPage.clickConnectorSecretsTab(clusterName);
|
|
74
|
+
await clusterSecretsPage.createSetOfSecrets(clusterName, connectorSecrets_1.awsSecretsValues);
|
|
75
|
+
await clusterSecretsPage.createSetOfSecrets(clusterName, connectorSecrets_1.openAiSecretsValues);
|
|
76
|
+
await clusterSecretsPage.createSetOfSecrets(clusterName, connectorSecrets_1.gcpSecretsValues);
|
|
77
|
+
await clusterSecretsPage.createSetOfSecrets(clusterName, connectorSecrets_1.azureSecretsValues);
|
|
78
|
+
await clusterSecretsPage.createSetOfSecrets(clusterName, connectorSecrets_1.connectorSecretsValues);
|
|
79
|
+
}
|
|
56
80
|
}
|
|
57
81
|
});
|
|
58
82
|
(0, _8_8_1.test)('Create AWS Cluster', async ({ page, loginPage, homePage, clusterPage, clusterDetailsPage, clusterSecretsPage, }, testInfo) => {
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const fs_1 = __importDefault(require("fs"));
|
|
3
7
|
const test_1 = require("@playwright/test");
|
|
4
8
|
const _8_9_1 = require("../../fixtures/8.9");
|
|
5
9
|
const _setup_1 = require("../../test-setup.js");
|
|
@@ -38,16 +42,35 @@ _8_9_1.test.describe('Cluster Setup Tests', () => {
|
|
|
38
42
|
}
|
|
39
43
|
await clusterPage.clickClusterLink(clusterName);
|
|
40
44
|
await clusterDetailsPage.assertComponentsHealth();
|
|
41
|
-
|
|
45
|
+
// API-client creation is needed whenever this run will also exercise the
|
|
46
|
+
// full-suite pass: many of those specs call the Zeebe REST API directly
|
|
47
|
+
// and need CAMUNDA_OPTIMIZE_BASE_URL for Optimize session login, even
|
|
48
|
+
// though IS_AG=true skips this for the usual smoke-only case (mirrors
|
|
49
|
+
// tests/8.10/test-setup.spec.ts).
|
|
50
|
+
if (process.env.IS_AG !== 'true' || process.env.RUN_FULL_SUITE === 'true') {
|
|
42
51
|
await clusterDetailsPage.clickAPITab();
|
|
43
|
-
await clusterDetailsPage.createAPIClientAndReturnVariables(apiClientName);
|
|
52
|
+
const zeebeCredentials = await clusterDetailsPage.createAPIClientAndReturnVariables(apiClientName);
|
|
44
53
|
await clusterDetailsPage.clickCloseModalButton();
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
54
|
+
if (process.env.RUN_FULL_SUITE === 'true') {
|
|
55
|
+
// Written to disk, not just process.env: the full-suite pass runs as
|
|
56
|
+
// a separate `npm run test` process (see run-tests-smoke-int's
|
|
57
|
+
// action.yml) that does not inherit this process's env mutations.
|
|
58
|
+
// mode 0o600: this file holds a live Zeebe API client secret.
|
|
59
|
+
fs_1.default.writeFileSync('cluster-credentials.json', JSON.stringify(zeebeCredentials), { mode: 0o600 });
|
|
60
|
+
}
|
|
61
|
+
// Deliberately NOT extended to RUN_FULL_SUITE like the API client
|
|
62
|
+
// above: connector-secrets creation is on test-setup's blocking
|
|
63
|
+
// critical path, and its own transient flakiness would take down
|
|
64
|
+
// cluster provisioning entirely (see the identical comment in
|
|
65
|
+
// tests/8.10/test-setup.spec.ts).
|
|
66
|
+
if (process.env.IS_AG !== 'true') {
|
|
67
|
+
await clusterPage.clickConnectorSecretsTab(clusterName);
|
|
68
|
+
await clusterSecretsPage.createSetOfSecrets(clusterName, connectorSecrets_1.awsSecretsValues);
|
|
69
|
+
await clusterSecretsPage.createSetOfSecrets(clusterName, connectorSecrets_1.openAiSecretsValues);
|
|
70
|
+
await clusterSecretsPage.createSetOfSecrets(clusterName, connectorSecrets_1.gcpSecretsValues);
|
|
71
|
+
await clusterSecretsPage.createSetOfSecrets(clusterName, connectorSecrets_1.azureSecretsValues);
|
|
72
|
+
await clusterSecretsPage.createSetOfSecrets(clusterName, connectorSecrets_1.connectorSecretsValues);
|
|
73
|
+
}
|
|
51
74
|
}
|
|
52
75
|
});
|
|
53
76
|
(0, _8_9_1.test)('Create Agentic Orchestration Cluster @tasklistV2', async ({ page, loginPage, homePage, clusterPage, clusterDetailsPage, clusterSecretsPage, }, testInfo) => {
|