@camunda/e2e-test-suite 0.0.1130 → 0.0.1131
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.
|
@@ -83,7 +83,8 @@ _8_10_1.test.describe('Cluster Setup Tests', () => {
|
|
|
83
83
|
});
|
|
84
84
|
(0, _8_10_1.test)('Create Agentic Orchestration Cluster', async ({ page, loginPage, homePage, clusterPage, clusterDetailsPage, clusterSecretsPage, }, testInfo) => {
|
|
85
85
|
_8_10_1.test.skip(process.env.IS_PROD === 'true', 'Skipping test because not required on PROD test org');
|
|
86
|
-
_8_10_1.test.skip(process.env.IS_AG === 'true', 'Skipping test because not required when IS_AG is true'
|
|
86
|
+
_8_10_1.test.skip(process.env.IS_AG === 'true' && process.env.RUN_FULL_SUITE !== 'true', 'Skipping test because not required when IS_AG is true -- unless ' +
|
|
87
|
+
'RUN_FULL_SUITE also needs this cluster for the MCP suite.');
|
|
87
88
|
_8_10_1.test.slow();
|
|
88
89
|
const clusterName = 'Agentic Orchestration Cluster';
|
|
89
90
|
const apiClientName = 'Test_API_Client' + (await (0, _setup_1.generateRandomStringAsync)(3));
|
|
@@ -108,7 +109,14 @@ _8_10_1.test.describe('Cluster Setup Tests', () => {
|
|
|
108
109
|
await clusterPage.assertClusterHealthyStatusWithRetry(clusterName);
|
|
109
110
|
await clusterPage.clickClusterLink(clusterName);
|
|
110
111
|
await clusterDetailsPage.clickAPITab();
|
|
111
|
-
await clusterDetailsPage.createAPIClientAndReturnVariables(apiClientName, true, 'agentic_cluster');
|
|
112
|
+
const agenticCredentials = await clusterDetailsPage.createAPIClientAndReturnVariables(apiClientName, true, 'agentic_cluster');
|
|
113
|
+
if (process.env.RUN_FULL_SUITE === 'true') {
|
|
114
|
+
// Written to disk, not just process.env: the full-suite pass runs as
|
|
115
|
+
// a separate `npm run test` process (see run-tests-smoke-int's
|
|
116
|
+
// action.yml) that does not inherit this process's env mutations.
|
|
117
|
+
// mode 0o600: this file holds a live Zeebe API client secret.
|
|
118
|
+
fs_1.default.writeFileSync('agentic-cluster-credentials.json', JSON.stringify(agenticCredentials), { mode: 0o600 });
|
|
119
|
+
}
|
|
112
120
|
await clusterDetailsPage.clickCloseModalButton();
|
|
113
121
|
const mcpCredentials = await clusterDetailsPage.createMCPClientAndReturnVariables(mcpClientName);
|
|
114
122
|
await clusterDetailsPage.clickCloseModalButton();
|