@camunda/e2e-test-suite 0.0.1706 → 0.0.1708
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.
|
@@ -114,6 +114,12 @@ _8_11_1.test.describe('Cluster Setup Tests', () => {
|
|
|
114
114
|
await clusterPage.assertClusterHealthyStatusWithRetry(clusterName, undefined, undefined, (0, UtilitiesPage_1.consoleSessionRecovery)(page, page.url()));
|
|
115
115
|
await clusterPage.clickClusterLink(clusterName);
|
|
116
116
|
await clusterDetailsPage.clickAPITab();
|
|
117
|
+
// On retry the cluster is reused (found by name), so clear the clients a
|
|
118
|
+
// prior attempt left behind -- stacking onto them leaves Console's "Create
|
|
119
|
+
// new client" button disabled (run 44503087059).
|
|
120
|
+
if (testInfo.retry > 0) {
|
|
121
|
+
await clusterDetailsPage.deleteAPIClientsIfExist();
|
|
122
|
+
}
|
|
117
123
|
const agenticCredentials = await clusterDetailsPage.createAPIClientAndReturnVariables(apiClientName, true, 'agentic_cluster');
|
|
118
124
|
// Written to disk, not just process.env: a process that did not run this
|
|
119
125
|
// setup cannot inherit its env mutations. Two consumers need that -- the
|
|
@@ -127,6 +133,14 @@ _8_11_1.test.describe('Cluster Setup Tests', () => {
|
|
|
127
133
|
const mcpCredentials = await clusterDetailsPage.createMCPClientAndReturnVariables(mcpClientName);
|
|
128
134
|
await clusterDetailsPage.clickCloseModalButton();
|
|
129
135
|
await clusterPage.clickConnectorSecretsTab(clusterName);
|
|
136
|
+
// Pairs with the API-client reset above. The MCP secrets are keyed by
|
|
137
|
+
// fixed names and the import never overwrites an existing one, so a
|
|
138
|
+
// retry that recreated the MCP client would otherwise keep secrets
|
|
139
|
+
// pointing at the deleted client. Clear them first so createSetOfSecrets
|
|
140
|
+
// rewrites them against the new client's credentials.
|
|
141
|
+
if (testInfo.retry > 0) {
|
|
142
|
+
await clusterSecretsPage.deleteConnectorSecretsIfExist();
|
|
143
|
+
}
|
|
130
144
|
await clusterSecretsPage.createSetOfSecrets(clusterName, (0, mcpSecrets_1.mcpSecretsValues)(mcpCredentials));
|
|
131
145
|
});
|
|
132
146
|
(0, _8_11_1.test)('Create AWS Cluster', async ({ page, loginPage, homePage, clusterPage, clusterDetailsPage, clusterSecretsPage, }, testInfo) => {
|