@camunda/e2e-test-suite 0.0.1600 → 0.0.1602
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.
|
@@ -381,15 +381,26 @@ function hasGenerationUuid() {
|
|
|
381
381
|
// without the legacyStreams limit -- which includes every QA org -- so a name
|
|
382
382
|
// lookup cannot find them, but cluster creation still validates against the
|
|
383
383
|
// channel's full generation list. A UUID therefore reaches a generation the org
|
|
384
|
-
// cannot list. The channel is taken, in order, from
|
|
385
|
-
//
|
|
384
|
+
// cannot list. The channel is taken, in order, from the channel that lists the
|
|
385
|
+
// UUID, CLUSTER_CHANNEL_UUID, or the Stable channel. A listing is authoritative:
|
|
386
|
+
// release trains always send the Stable channel, but pre-release generations
|
|
387
|
+
// (e.g. "Camunda 8.11.0-alpha1") live only in the Alpha channel, and Console
|
|
388
|
+
// rejects that pairing with HTTP 400 "Generation is not part of allowed
|
|
389
|
+
// generations of selected channel". CLUSTER_CHANNEL_UUID therefore only decides
|
|
390
|
+
// the channel for a generation the org cannot list.
|
|
386
391
|
function pickGenerationByUuid(channels) {
|
|
387
392
|
const generationId = (process.env.CLUSTER_GENERATION_UUID ?? '').trim();
|
|
388
393
|
if (!generationId)
|
|
389
394
|
return undefined;
|
|
390
395
|
const listedIn = channels.find((channel) => (channel.allowedGenerations ?? []).some((generation) => generation.uuid === generationId));
|
|
391
|
-
const
|
|
392
|
-
|
|
396
|
+
const requestedChannelId = (process.env.CLUSTER_CHANNEL_UUID ?? '').trim();
|
|
397
|
+
if (listedIn && requestedChannelId && requestedChannelId !== listedIn.uuid) {
|
|
398
|
+
console.log(`CLUSTER_CHANNEL_UUID ${requestedChannelId} does not list generation ` +
|
|
399
|
+
`${generationId}; using channel "${listedIn.name}" (${listedIn.uuid}) ` +
|
|
400
|
+
`that does`);
|
|
401
|
+
}
|
|
402
|
+
const channelId = listedIn?.uuid ||
|
|
403
|
+
requestedChannelId ||
|
|
393
404
|
channels.find((channel) => channel.name === STABLE_CHANNEL_NAME)?.uuid;
|
|
394
405
|
if (!channelId) {
|
|
395
406
|
throw new Error(`No channel for generation ${generationId}: set CLUSTER_CHANNEL_UUID ` +
|