Skip to content

Conversation

@jvorcak
Copy link
Collaborator

@jvorcak jvorcak commented Dec 27, 2025

This should allow us to create multiple e2e variants (with different BE configurations + owlshop configs) for different e2e tests.

Note to self: enterprise tests fail for me in master after recent changes, so I need to solve this first. I think it might be related to https://github.com/redpanda-data/console/pull/2103/changes

Comment on lines +16 to +17
const getStateFile = (variantName) =>
resolve(__dirname, '..', `.testcontainers-state-${variantName}.json`);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Biome] reported by reviewdog 🐶

Suggested change
const getStateFile = (variantName) =>
resolve(__dirname, '..', `.testcontainers-state-${variantName}.json`);
const getStateFile = (variantName) => resolve(__dirname, '..', `.testcontainers-state-${variantName}.json`);

Comment on lines +23 to +26
redpandaKafka: 19092,
redpandaSchemaRegistry: 18081,
redpandaAdmin: 19644,
kafkaConnect: 18083,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Biome] reported by reviewdog 🐶

Suggested change
redpandaKafka: 19092,
redpandaSchemaRegistry: 18081,
redpandaAdmin: 19644,
kafkaConnect: 18083,
redpandaKafka: 19_092,
redpandaSchemaRegistry: 18_081,
redpandaAdmin: 19_644,
kafkaConnect: 18_083,

Comment on lines +31 to +34
redpandaKafka: 19192,
redpandaSchemaRegistry: 18181,
redpandaAdmin: 19744,
kafkaConnect: 18183,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Biome] reported by reviewdog 🐶

Suggested change
redpandaKafka: 19192,
redpandaSchemaRegistry: 18181,
redpandaAdmin: 19744,
kafkaConnect: 18183,
redpandaKafka: 19_192,
redpandaSchemaRegistry: 18_181,
redpandaAdmin: 19_744,
kafkaConnect: 18_183,

Comment on lines +36 to +38
destRedpandaKafka: 19193,
destRedpandaSchemaRegistry: 18191,
destRedpandaAdmin: 19745,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Biome] reported by reviewdog 🐶

Suggested change
destRedpandaKafka: 19193,
destRedpandaSchemaRegistry: 18191,
destRedpandaAdmin: 19745,
destRedpandaKafka: 19_193,
destRedpandaSchemaRegistry: 18_191,
destRedpandaAdmin: 19_745,

writeFileSync(licensePath, process.env.ENTERPRISE_LICENSE_CONTENT);
} else {
const defaultLicensePath = resolve(__dirname, '../../../console-enterprise/configs/shared/redpanda.license');
const defaultLicensePath = resolve(__dirname, '../../../../console-enterprise/frontend/tests/config/redpanda.license');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Biome] reported by reviewdog 🐶

Suggested change
const defaultLicensePath = resolve(__dirname, '../../../../console-enterprise/frontend/tests/config/redpanda.license');
const defaultLicensePath = resolve(
__dirname,
'../../../../console-enterprise/frontend/tests/config/redpanda.license'
);

Comment on lines 812 to 814
console.log(
`🚀 GLOBAL SETUP STARTED ${isEnterprise ? '(ENTERPRISE MODE)' : '(OSS MODE)'}${needsShadowlink ? ' + SHADOWLINK' : ''}`
`🚀 GLOBAL SETUP: ${variantName}${needsShadowlink ? ' + SHADOWLINK' : ''}`
);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Biome] reported by reviewdog 🐶

Suggested change
console.log(
`🚀 GLOBAL SETUP STARTED ${isEnterprise ? '(ENTERPRISE MODE)' : '(OSS MODE)'}${needsShadowlink ? ' + SHADOWLINK' : ''}`
`🚀 GLOBAL SETUP: ${variantName}${needsShadowlink ? ' + SHADOWLINK' : ''}`
);
console.log(`🚀 GLOBAL SETUP: ${variantName}${needsShadowlink ? ' + SHADOWLINK' : ''}`);

configFile,
isEnterprise,
needsShadowlink,
ports
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Biome] reported by reviewdog 🐶

Suggested change
ports
ports,

Comment on lines +11 to +12
const getStateFile = (variantName) =>
resolve(__dirname, '..', `.testcontainers-state-${variantName}.json`);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Biome] reported by reviewdog 🐶

Suggested change
const getStateFile = (variantName) =>
resolve(__dirname, '..', `.testcontainers-state-${variantName}.json`);
const getStateFile = (variantName) => resolve(__dirname, '..', `.testcontainers-state-${variantName}.json`);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants