Skip to content

Conversation

@shouples
Copy link
Contributor

@shouples shouples commented Nov 10, 2025

Summary of Changes

We had a few test suites that implemented their own logic to make sure a Kafka topic was created before the actual-test logic ran (and similarly implemented their own logic to delete said topic afterward).

This PR adds a new topic fixture to consolidate creation and deletion logic into one place. No functional changes, nor explicit behavioral changes to affected tests, but is required for #3021

Closes #3014

Optional: Any additional details or context that should be provided?

  • I also added a @requires-topic tag to make it easier to run these affected tests, and may extend the pattern in follow-up branches for things like @requires-schema. (I don't think we'll need @requires-kafka-cluster/@requires-schema-registry/@requires-flink-compute-poll anytime soon, but can revisit later.)

Pull request checklist

Please check if your PR fulfills the following (if applicable):

Tests

  • Added new
  • Updated existing
  • Deleted existing

Release notes

  • Does anything in this PR need to be mentioned in the user-facing CHANGELOG?

Comment on lines +90 to +94
/**
* Set up a topic based on the {@linkcode topicConfig} option and return the associated topic
* `name` for tests to reference.
*/
topic: string;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've debated making this return { name: string } but I don't know what else we would need to return in here in the future, and changing the fixture to topicName felt weird from the perspective of illustrating what the fixture does (setup- and teardown-wise)

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.

E2E Set up playwright fixture for topic creation/deletion

2 participants