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

Add Kafka driver #476

Merged
merged 1 commit into from
Aug 26, 2020
Merged

Add Kafka driver #476

merged 1 commit into from
Aug 26, 2020

Conversation

yuxuan-ms
Copy link
Contributor

No description provided.

@yuxuan-ms yuxuan-ms requested a review from Pyifan as a code owner August 13, 2020 08:38
@yuxuan-ms yuxuan-ms force-pushed the kafka branch 9 times, most recently from 28f2546 to af05357 Compare August 18, 2020 09:04
@yuxuan-ms yuxuan-ms changed the title (WIP) Add Kafka driver Add Kafka driver Aug 18, 2020
@@ -0,0 +1,107 @@
#!/usr/bin/env python
"""
Demostrates Zookeeper driver usage from within the testcases.
Copy link
Contributor

Choose a reason for hiding this comment

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

Zookeeper -> Kafka

ConfigOption("cfg_template"): str,
ConfigOption("zookeeper_connect"): Or(str, context.is_context),
ConfigOption("port"): int,
ConfigOption("env", default=None): Or(None, dict),
Copy link
Contributor

Choose a reason for hiding this comment

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

env is already available in App driver

self.config = None
self.port = port

def pre_start(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we use App's pre_start as well?

def get_options(cls):
return {
ConfigOption("cfg_template"): str,
ConfigOption("zookeeper_connect"): Or(str, context.is_context),
Copy link
Contributor

Choose a reason for hiding this comment

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

If this is only used in config file, maybe we don't need this ConfigOption? We can refer to zk driver's property directly in kafka's config file.

@yuxuan-ms yuxuan-ms force-pushed the kafka branch 4 times, most recently from 72e2375 to 58d022a Compare August 25, 2020 08:11
@yuxuan-ms yuxuan-ms merged commit b4e03b4 into morganstanley:master Aug 26, 2020
dcm pushed a commit to dcm/testplan that referenced this pull request Sep 2, 2020
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