n8n/packages/testing/playwright/tests/infrastructure/benchmarks/kafka/load-30n-10kb-steady.spec.ts
Declan Carroll 7c7c70f142
ci: Unify QA metrics pipeline to single webhook, format, and BigQuery table (no-changelog) (#27111)
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-17 05:50:10 +00:00

33 lines
851 B
TypeScript

import { test } from '../../../../fixtures/base';
import { kafkaDriver } from '../../../../utils/benchmark';
import { runLoadTest } from '../harness/load-harness';
test.use({ capability: { env: { TEST_ISOLATION: 'kafka-load-30n-10kb-steady' } } });
test.describe(
'Kafka Load: steady 30n/10KB',
{
annotation: [{ type: 'owner', description: 'Catalysts' }],
},
() => {
test('30 nodes, 10KB payload, steady 100 msg/s', async ({ api, services }, testInfo) => {
const handle = await kafkaDriver.setup({
api,
services,
scenario: { nodeCount: 30, payloadSize: '10KB' },
});
await runLoadTest({
handle,
api,
services,
testInfo,
load: { type: 'steady', ratePerSecond: 100, durationSeconds: 30 },
trigger: 'kafka',
nodeCount: 30,
nodeOutputSize: '10KB',
timeoutMs: 300_000,
});
});
},
);