Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Created new test for running topology generation manually from t… #3609

Merged
merged 1 commit into from
Oct 18, 2019

Conversation

purplefox
Copy link
Contributor

Description

Fixes #3607

TopologyFileGenerator should only be run as a test as it requires test dependencies.

This PR removes the main() from the class to avoid temptation to run it directly in the IDE.

A new ignore manually test is added which should be run manually to generate the topology stuff.

Testing done

N/A

Reviewer checklist

  • Ensure docs are updated if necessary. (eg. if a user visible feature is being added or changed).
  • Ensure relevant issues are linked (description should include text like "Fixes #")

…he IDE, and removed main() from TopologyFileGenerator
@purplefox purplefox requested a review from a team as a code owner October 17, 2019 12:57
Copy link
Contributor

@agavra agavra left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for the fix :)

@agavra agavra requested a review from a team October 17, 2019 21:25
@purplefox purplefox merged commit 381e563 into confluentinc:master Oct 18, 2019
Copy link
Contributor

@big-andy-coates big-andy-coates left a comment

Choose a reason for hiding this comment

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

Thanks @purplefox - appreciate you looking into this.

@@ -86,10 +86,6 @@
private TopologyFileGenerator() {
}

public static void main(final String[] args) throws Exception {
Copy link
Contributor

Choose a reason for hiding this comment

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

Would you mind adding a link in the JavaDoc of this class to the test people should use to run this, i.e. link to the new ManualTopologyFileGeneratorTest test. Otherwise, people may struggle to find it.

@purplefox purplefox deleted the top_file_gen_test branch October 28, 2019 00:20
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.

TopologyFileGenerator fails to run.
3 participants