@camunda/e2e-test-suite 0.0.1665 → 0.0.1666

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.
@@ -59,13 +59,14 @@ _8_10_1.test.describe('Cluster Setup Tests', () => {
59
59
  await clusterDetailsPage.clickAPITab();
60
60
  const zeebeCredentials = await clusterDetailsPage.createAPIClientAndReturnVariables(apiClientName);
61
61
  await clusterDetailsPage.clickCloseModalButton();
62
- if (process.env.RUN_FULL_SUITE === 'true') {
63
- // Written to disk, not just process.env: the full-suite pass runs as
64
- // a separate `npm run test` process (see run-tests-smoke-int's
65
- // action.yml) that does not inherit this process's env mutations.
66
- // mode 0o600: this file holds a live Zeebe API client secret.
67
- fs_1.default.writeFileSync('cluster-credentials.json', JSON.stringify(zeebeCredentials), { mode: 0o600 });
68
- }
62
+ // Written to disk, not just process.env: a process that did not run this
63
+ // setup cannot inherit its env mutations. Two consumers need that -- the
64
+ // full-suite pass, which runs as a separate `npm run test` (see
65
+ // run-tests-smoke-int's action.yml), and the nightly's kept-org snapshot
66
+ // (run-tests-saas's action.yml), which the fix agent restores to verify a
67
+ // fix against the org that failed.
68
+ // mode 0o600: this file holds a live Zeebe API client secret.
69
+ fs_1.default.writeFileSync('cluster-credentials.json', JSON.stringify(zeebeCredentials), { mode: 0o600 });
69
70
  // Deliberately NOT extended to RUN_FULL_SUITE like the API client
70
71
  // above: clickConnectorSecretsTab hits the same pre-existing "click
71
72
  // after 3 attempts" UI-contention flakiness seen throughout this
@@ -130,13 +131,14 @@ _8_10_1.test.describe('Cluster Setup Tests', () => {
130
131
  await clusterPage.clickClusterLink(clusterName);
131
132
  await clusterDetailsPage.clickAPITab();
132
133
  const agenticCredentials = await clusterDetailsPage.createAPIClientAndReturnVariables(apiClientName, true, 'agentic_cluster');
133
- if (process.env.RUN_FULL_SUITE === 'true') {
134
- // Written to disk, not just process.env: the full-suite pass runs as
135
- // a separate `npm run test` process (see run-tests-smoke-int's
136
- // action.yml) that does not inherit this process's env mutations.
137
- // mode 0o600: this file holds a live Zeebe API client secret.
138
- fs_1.default.writeFileSync('agentic-cluster-credentials.json', JSON.stringify(agenticCredentials), { mode: 0o600 });
139
- }
134
+ // Written to disk, not just process.env: a process that did not run this
135
+ // setup cannot inherit its env mutations. Two consumers need that -- the
136
+ // full-suite pass, which runs as a separate `npm run test` (see
137
+ // run-tests-smoke-int's action.yml), and the nightly's kept-org snapshot
138
+ // (run-tests-saas's action.yml), which the fix agent restores to verify a
139
+ // fix against the org that failed.
140
+ // mode 0o600: this file holds a live Zeebe API client secret.
141
+ fs_1.default.writeFileSync('agentic-cluster-credentials.json', JSON.stringify(agenticCredentials), { mode: 0o600 });
140
142
  await clusterDetailsPage.clickCloseModalButton();
141
143
  const mcpCredentials = await clusterDetailsPage.createMCPClientAndReturnVariables(mcpClientName);
142
144
  await clusterDetailsPage.clickCloseModalButton();
@@ -54,13 +54,14 @@ _8_11_1.test.describe('Cluster Setup Tests', () => {
54
54
  await clusterDetailsPage.clickAPITab();
55
55
  const zeebeCredentials = await clusterDetailsPage.createAPIClientAndReturnVariables(apiClientName);
56
56
  await clusterDetailsPage.clickCloseModalButton();
57
- if (process.env.RUN_FULL_SUITE === 'true') {
58
- // Written to disk, not just process.env: the full-suite pass runs as
59
- // a separate `npm run test` process (see run-tests-smoke-int's
60
- // action.yml) that does not inherit this process's env mutations.
61
- // mode 0o600: this file holds a live Zeebe API client secret.
62
- fs_1.default.writeFileSync('cluster-credentials.json', JSON.stringify(zeebeCredentials), { mode: 0o600 });
63
- }
57
+ // Written to disk, not just process.env: a process that did not run this
58
+ // setup cannot inherit its env mutations. Two consumers need that -- the
59
+ // full-suite pass, which runs as a separate `npm run test` (see
60
+ // run-tests-smoke-int's action.yml), and the nightly's kept-org snapshot
61
+ // (run-tests-saas's action.yml), which the fix agent restores to verify a
62
+ // fix against the org that failed.
63
+ // mode 0o600: this file holds a live Zeebe API client secret.
64
+ fs_1.default.writeFileSync('cluster-credentials.json', JSON.stringify(zeebeCredentials), { mode: 0o600 });
64
65
  // Deliberately NOT extended to RUN_FULL_SUITE like the API client
65
66
  // above: clickConnectorSecretsTab hits the same pre-existing "click
66
67
  // after 3 attempts" UI-contention flakiness seen throughout this
@@ -114,13 +115,14 @@ _8_11_1.test.describe('Cluster Setup Tests', () => {
114
115
  await clusterPage.clickClusterLink(clusterName);
115
116
  await clusterDetailsPage.clickAPITab();
116
117
  const agenticCredentials = await clusterDetailsPage.createAPIClientAndReturnVariables(apiClientName, true, 'agentic_cluster');
117
- if (process.env.RUN_FULL_SUITE === 'true') {
118
- // Written to disk, not just process.env: the full-suite pass runs as
119
- // a separate `npm run test` process (see run-tests-smoke-int's
120
- // action.yml) that does not inherit this process's env mutations.
121
- // mode 0o600: this file holds a live Zeebe API client secret.
122
- fs_1.default.writeFileSync('agentic-cluster-credentials.json', JSON.stringify(agenticCredentials), { mode: 0o600 });
123
- }
118
+ // Written to disk, not just process.env: a process that did not run this
119
+ // setup cannot inherit its env mutations. Two consumers need that -- the
120
+ // full-suite pass, which runs as a separate `npm run test` (see
121
+ // run-tests-smoke-int's action.yml), and the nightly's kept-org snapshot
122
+ // (run-tests-saas's action.yml), which the fix agent restores to verify a
123
+ // fix against the org that failed.
124
+ // mode 0o600: this file holds a live Zeebe API client secret.
125
+ fs_1.default.writeFileSync('agentic-cluster-credentials.json', JSON.stringify(agenticCredentials), { mode: 0o600 });
124
126
  await clusterDetailsPage.clickCloseModalButton();
125
127
  const mcpCredentials = await clusterDetailsPage.createMCPClientAndReturnVariables(mcpClientName);
126
128
  await clusterDetailsPage.clickCloseModalButton();
@@ -65,13 +65,14 @@ _8_8_1.test.describe('Cluster Setup Tests', () => {
65
65
  await clusterDetailsPage.clickAPITab();
66
66
  const zeebeCredentials = await clusterDetailsPage.createAPIClientAndReturnVariables(apiClientName);
67
67
  await clusterDetailsPage.clickCloseModalButton();
68
- if (process.env.RUN_FULL_SUITE === 'true') {
69
- // Written to disk, not just process.env: the full-suite pass runs as
70
- // a separate `npm run test` process (see run-tests-smoke-int's
71
- // action.yml) that does not inherit this process's env mutations.
72
- // mode 0o600: this file holds a live Zeebe API client secret.
73
- fs_1.default.writeFileSync('cluster-credentials.json', JSON.stringify(zeebeCredentials), { mode: 0o600 });
74
- }
68
+ // Written to disk, not just process.env: a process that did not run this
69
+ // setup cannot inherit its env mutations. Two consumers need that -- the
70
+ // full-suite pass, which runs as a separate `npm run test` (see
71
+ // run-tests-smoke-int's action.yml), and the nightly's kept-org snapshot
72
+ // (run-tests-saas's action.yml), which the fix agent restores to verify a
73
+ // fix against the org that failed.
74
+ // mode 0o600: this file holds a live Zeebe API client secret.
75
+ fs_1.default.writeFileSync('cluster-credentials.json', JSON.stringify(zeebeCredentials), { mode: 0o600 });
75
76
  // Deliberately NOT extended to RUN_FULL_SUITE like the API client
76
77
  // above: connector-secrets creation is on test-setup's blocking
77
78
  // critical path, and its own transient flakiness would take down
@@ -51,13 +51,14 @@ _8_9_1.test.describe('Cluster Setup Tests', () => {
51
51
  await clusterDetailsPage.clickAPITab();
52
52
  const zeebeCredentials = await clusterDetailsPage.createAPIClientAndReturnVariables(apiClientName);
53
53
  await clusterDetailsPage.clickCloseModalButton();
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
- }
54
+ // Written to disk, not just process.env: a process that did not run this
55
+ // setup cannot inherit its env mutations. Two consumers need that -- the
56
+ // full-suite pass, which runs as a separate `npm run test` (see
57
+ // run-tests-smoke-int's action.yml), and the nightly's kept-org snapshot
58
+ // (run-tests-saas's action.yml), which the fix agent restores to verify a
59
+ // fix against the org that failed.
60
+ // mode 0o600: this file holds a live Zeebe API client secret.
61
+ fs_1.default.writeFileSync('cluster-credentials.json', JSON.stringify(zeebeCredentials), { mode: 0o600 });
61
62
  // Deliberately NOT extended to RUN_FULL_SUITE like the API client
62
63
  // above: connector-secrets creation is on test-setup's blocking
63
64
  // critical path, and its own transient flakiness would take down
@@ -92,7 +93,15 @@ _8_9_1.test.describe('Cluster Setup Tests', () => {
92
93
  await clusterPage.assertClusterHealthyStatusWithRetry(clusterName);
93
94
  await clusterPage.clickClusterLink(clusterName);
94
95
  await clusterDetailsPage.clickAPITab();
95
- await clusterDetailsPage.createAPIClientAndReturnVariables(apiClientName, true, 'agentic_cluster');
96
+ const agenticCredentials = await clusterDetailsPage.createAPIClientAndReturnVariables(apiClientName, true, 'agentic_cluster');
97
+ // Written to disk, not just process.env: a process that did not run this
98
+ // setup cannot inherit its env mutations. Two consumers need that -- the
99
+ // full-suite pass, which runs as a separate `npm run test` (see
100
+ // run-tests-smoke-int's action.yml), and the nightly's kept-org snapshot
101
+ // (run-tests-saas's action.yml), which the fix agent restores to verify a
102
+ // fix against the org that failed.
103
+ // mode 0o600: this file holds a live Zeebe API client secret.
104
+ fs_1.default.writeFileSync('agentic-cluster-credentials.json', JSON.stringify(agenticCredentials), { mode: 0o600 });
96
105
  await clusterDetailsPage.clickCloseModalButton();
97
106
  const mcpCredentials = await clusterDetailsPage.createMCPClientAndReturnVariables(mcpClientName);
98
107
  await clusterDetailsPage.clickCloseModalButton();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.1665",
3
+ "version": "0.0.1666",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",