@camunda/e2e-test-suite 0.0.1488 → 0.0.1489

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.
@@ -393,11 +393,25 @@ function pickSnapshotGeneration(channels, minorVersion) {
393
393
  }
394
394
  return undefined;
395
395
  }
396
- // Migration source cluster target: honor an explicit Source Generation (passed
397
- // via CLUSTER_VERSION) when set; otherwise auto-select the latest stable
398
- // generation for the source minor version.
396
+ // Migration source cluster target: honor an explicit Source Generation UUID
397
+ // (SOURCE_GENERATION_ID) or name (CLUSTER_VERSION) when set; otherwise
398
+ // auto-select the latest stable generation for the source minor version.
399
399
  async function resolveMigrationTarget(page) {
400
400
  const channels = await fetchClusterChannels(page);
401
+ // Console hides generations past their unsupported date (e.g. 8.7 after
402
+ // 8.10 GA) from /clusters/parameters for orgs without the legacyStreams
403
+ // limit, but cluster creation still validates against the channel's full
404
+ // generation list. A UUID therefore reaches a generation the org cannot list.
405
+ const sourceGenerationId = (process.env.SOURCE_GENERATION_ID ?? '').trim();
406
+ if (sourceGenerationId) {
407
+ const stable = channels.find((channel) => channel.name === STABLE_CHANNEL_NAME);
408
+ if (!stable) {
409
+ throw new Error(`No "${STABLE_CHANNEL_NAME}" channel found in cluster parameters`);
410
+ }
411
+ console.log(`Using source generation ${sourceGenerationId} from SOURCE_GENERATION_ID ` +
412
+ `in channel "${stable.name}" (${stable.uuid})`);
413
+ return { channelId: stable.uuid, generationId: sourceGenerationId };
414
+ }
401
415
  const sourceGeneration = (process.env.CLUSTER_VERSION ?? '').trim();
402
416
  if (sourceGeneration) {
403
417
  return pickGenerationByName(channels, sourceGeneration);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.1488",
3
+ "version": "0.0.1489",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",